Function at 0x4029cd
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Read http header
Receive http response
Resolve function by parsing pe exports
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44eb4c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x11c0
call fcn.00431770
mov eax, dword [0x462700]
xor eax, esp
mov dword [esp + 0x11bc], eax
push ebx
push edi
mov eax, dword [0x462700]
xor eax, esp
push eax
lea eax, [esp + 0x11d0]
mov dword fs:[0], eax
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp eax, ebx
ja 0x402a29
mov dword [esi + 0x11c], 3
jmp 0x403868
push ecx
lea ecx, [esp + 0xe0]
call fcn.00402276
mov dword [esp + 0x11d8], ebx
cmp dword [esp + 0xf0], 8
mov eax, dword [esp + 0xdc]
jae 0x402a55
lea eax, [esp + 0xdc]
mov edi, 0x4561a8
push edi
push eax
call fcn.00432626
pop ecx
pop ecx
test eax, eax
je 0x402a95
cmp dword [esp + 0xf0], 8
mov eax, dword [esp + 0xdc]
jae 0x402a7f
lea eax, [esp + 0xdc]
mov edi, 0x4561b0
push edi
push eax
call fcn.00432626
pop ecx
pop ecx
test eax, eax
jne 0x403847
push edi
lea ecx, [esp + 0xe0]
call fcn.00401e93
mov byte [esp + 0xe], 1
cmp dword [esi], ebx
jne 0x402adb
lea eax, [esi + 0x13c]
cmp dword [eax + 0x14], 8
jb 0x402ab9
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
cmp eax, ebx
jne 0x402adb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
jmp 0x403851
push dword [esi + 0x1bc]
push dword [esi + 0x1b8]
push dword [esi + 0x1b4]
push dword [esi + 0x1b0]
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor eax, eax
push 0x206
mov word [esp + 0x390], ax
lea eax, [esp + 0x392]
push ebx
push eax
call fcn.004317b0
add esp, 0xc
xor eax, eax
push 0xa26
mov word [esp + 0x7a0], ax
lea eax, [esp + 0x7a2]
push ebx
push eax
call fcn.004317b0
add esp, 0xc
push 0x3c
pop edi
push edi
lea eax, [esp + 0xa4]
push ebx
push eax
call fcn.004317b0
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x398]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0x7a8]
mov dword [esp + 0xd8], eax
lea eax, [esi + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [esp + 0xa0], edi
mov dword [esp + 0xb4], 0x104
mov dword [esp + 0xd0], 0x514
mov dword [esp + 0xa8], 1
jb 0x402ba2
mov eax, dword [eax]
lea edx, [esp + 0xa0]
push edx
push ebx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x40382a
lea eax, [esp + 0x38c]
push eax
lea ecx, [esi + 0x24]
call fcn.00401e93
push ebx
push dword [esp + 0xbc]
lea eax, [esp + 0x394]
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esp + 0x50], eax
cmp eax, ebx
je 0x40382a
cmp dword [esp + 0xac], 2
jne 0x402c00
mov ecx, 0x800000
jmp 0x402c02
xor ecx, ecx
cmp dword [esp + 0xf0], 8
mov eax, dword [esp + 0xdc]
jae 0x402c1a
lea eax, [esp + 0xdc]
push ecx
push ebx
push ebx
push ebx
push dword [esp + 0xdc]
push eax
push dword [esp + 0x68]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x403820
cmp byte [esi + 4], bl
jne 0x402c63
cmp dword [esp + 0xac], 2
jne 0x402c63
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x1f
push eax
mov dword [esp + 0x34], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [esp + 0xf], bl
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x3c]
inc dword [esp + 0x3c]
cmp eax, 3
jae 0x40380c
mov ecx, dword [esi + 0xf4]
cmp ecx, ebx
jbe 0x402cb5
lea eax, [esi + 0xe4]
cmp dword [eax + 0x14], 8
jb 0x402c94
mov eax, dword [eax]
push 0x1000000
push ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x402cb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp dword [esi + 0xd0], ebx
jbe 0x402d61
xor eax, eax
push str.Cookie:
lea ecx, [esp + 0x118]
mov dword [esp + 0x12c], 7
mov dword [esp + 0x128], ebx
mov word [esp + 0x118], ax
call fcn.00401e93
mov byte [esp + 0x11d8], 1
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0xc0]
push eax
lea ecx, [esp + 0x120]
call fcn.0040181f
cmp dword [esp + 0x128], 8
mov eax, dword [esp + 0x114]
jae 0x402d24
lea eax, [esp + 0x114]
push 0x1000000
push dword [esp + 0x128]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x402d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov byte [esp + 0x11d8], bl
push ebx
push 1
lea ecx, [esp + 0x11c]
call fcn.0040229e
cmp dword [esi + 0x110], ebx
jbe 0x402e72
xor eax, eax
lea edi, [esp + 0x94]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push 0x206
mov word [esp + 0x188], ax
lea eax, [esp + 0x18a]
push ebx
push eax
mov dword [esp + 0xa0], 3
call fcn.004317b0
lea eax, [esi + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x402db2
mov eax, dword [eax]
push eax
lea eax, [esp + 0x188]
push 0x104
push eax
call fcn.004324c0
add esp, 0xc
lea eax, [esp + 0x184]
push 0xc
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x98]
push eax
push 0x26
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x402dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov ecx, dword [esi + 0x16c]
cmp ecx, ebx
jbe 0x402e72
lea eax, [esi + 0x15c]
cmp dword [eax + 0x14], 8
jb 0x402e14
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1002
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x402e37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov ecx, dword [esi + 0x188]
cmp ecx, ebx
jbe 0x402e72
lea eax, [esi + 0x178]
cmp dword [eax + 0x14], 8
jb 0x402e4f
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1003
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x402e72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x28]
mov byte [esp + 0x3f], bl
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40308b
lea edi, [esp + 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x403075
mov edx, dword [esp + 0x44]
cmp edx, ebx
je 0x402f77
xor eax, eax
push 6
pop ecx
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
inc eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], eax
xor eax, eax
lea edi, [esp + 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 8]
cmp dword [eax + 0x14], 8
mov dword [esp + 0x7c], 3
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
jb 0x402f00
mov eax, dword [eax]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x80]
push ecx
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x403037
push 0xc
lea eax, [esp + 0x68]
push eax
push 0x26
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x402f4e
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x28]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x402f4e
mov byte [esp + 0x23], 1
cmp dword [esp + 0x68], ebx
je 0x402f5e
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x6c], ebx
je 0x403043
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403043
cmp dword [esp + 0x48], ebx
je 0x403063
xor eax, eax
lea edi, [esp + 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push 0x206
mov word [esp + 0x188], ax
lea eax, [esp + 0x18a]
push ebx
push eax
mov dword [esp + 0x7c], 3
call fcn.004317b0
add esp, 0xc
push dword [esp + 0x48]
lea eax, [esp + 0x188]
push 0x104
push eax
call fcn.004324c0
add esp, 0xc
lea eax, [esp + 0x184]
mov dword [esp + 0x74], eax
cmp dword [esp + 0x4c], ebx
je 0x403020
xor eax, eax
push 0x206
mov word [esp + 0x598], ax
lea eax, [esp + 0x59a]
push ebx
push eax
call fcn.004317b0
add esp, 0xc
push dword [esp + 0x4c]
lea eax, [esp + 0x598]
push 0x104
push eax
call fcn.004324c0
lea eax, [esp + 0x5a0]
add esp, 0xc
mov dword [esp + 0x78], eax
push 0xc
lea eax, [esp + 0x74]
push eax
push 0x26
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x403043
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp dword [esp + 0x44], ebx
je 0x403053
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x48], ebx
je 0x403063
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x4c], ebx
je 0x403081
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403081
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp byte [esp + 0x23], bl
je 0x4037fc
mov eax, dword [esi + 0xdc]
cmp eax, ebx
je 0x4030bf
lea ecx, [esp + 0x24]
push ecx
push dword [esi + 0xe0]
mov dword [esp + 0x2c], ebx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4030bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
push ebx
push dword [esp + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4037f0
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push 0x16
push dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, ebx
jne 0x4030fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403408
mov eax, dword [esp + 0x14]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f6f3
mov edi, eax
pop ecx
mov dword [esp + 0x24], edi
cmp edi, ebx
je 0x403408
mov eax, dword [esp + 0x14]
add eax, eax
push eax
push ebx
push edi
call fcn.004317b0
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push 0x16
push dword [esp + 0x24]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4033fe
push edi
lea ecx, [esi + 0x40]
call fcn.00401e93
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x11d8], 2
xor eax, eax
push 0x4563d8
lea ecx, [esp + 0xfc]
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], ax
call fcn.00401e93
mov byte [esp + 0x11d8], 3
cmp byte [esi + 0x158], bl
jne 0x4031f6
push str.charset_A_Za_z0_9___
lea ecx, [esp + 0xfc]
call fcn.00401e93
lea eax, [esp + 0x2c]
push eax
lea edx, [esi + 0x40]
lea ecx, [esp + 0xfc]
call fcn.004022f1
pop ecx
test al, al
je 0x4031f6
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4031f6
push 0xffffffffffffffff
push ebx
push dword [esp + 0x34]
lea ecx, [esi + 0x78]
call fcn.004021db
push str.Content_Length:__0_9_
lea ecx, [esp + 0xfc]
call fcn.00401e93
lea eax, [esp + 0x2c]
push eax
lea edx, [esi + 0x40]
lea ecx, [esp + 0xfc]
call fcn.004022f1
pop ecx
test al, al
je 0x403249
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
push 0x1c
cdq
pop edi
idiv edi
test eax, eax
je 0x403249
cmp dword [ecx + 0x14], 8
jb 0x40323c
mov ecx, dword [ecx]
push ecx
call fcn.00431e3f
pop ecx
mov dword [esi + 0xa0], eax
push str.Location:__0_9_
lea ecx, [esp + 0xfc]
call fcn.00401e93
lea eax, [esp + 0x2c]
push eax
lea edx, [esi + 0x40]
lea ecx, [esp + 0xfc]
call fcn.004022f1
pop ecx
test al, al
je 0x403297
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x403297
push 0xffffffffffffffff
push ebx
push dword [esp + 0x34]
lea ecx, [esi + 0x194]
call fcn.004021db
push str.Set_Cookie:_b.__n
lea ecx, [esp + 0xfc]
call fcn.00401e93
lea eax, [esp + 0x2c]
push eax
lea edx, [esi + 0x40]
lea ecx, [esp + 0xfc]
call fcn.004022f1
pop ecx
test al, al
je 0x4033d7
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
push 0x1c
cdq
pop edi
idiv edi
mov edi, eax
cmp edi, ebx
jbe 0x4033d7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
push 0xffffffffffffffff
push ebx
push dword [esp + 0x24]
lea ecx, [esi + 0xa4]
call fcn.0040181f
lea eax, [edi - 1]
cmp dword [esp + 0x18], eax
je 0x403313
push 0x45628c
lea eax, [esi + 0xa4]
push eax
call fcn.004016ad
inc dword [esp + 0x18]
add dword [esp + 0x1c], 0x1c
cmp dword [esp + 0x18], edi
jb 0x4032e7
xor eax, eax
push 0x4561a4
lea ecx, [esp + 0x150]
mov dword [esp + 0x164], 7
mov dword [esp + 0x160], ebx
mov word [esp + 0x150], ax
call fcn.00401e93
mov byte [esp + 0x11d8], 4
lea edi, [esi + 0xa4]
lea ecx, [esp + 0x14c]
lea edx, [esp + 0x168]
call fcn.00402642
mov byte [esp + 0x11d8], 5
push eax
mov ecx, edi
call fcn.00401651
mov byte [esp + 0x11d8], 4
push ebx
push 1
lea ecx, [esp + 0x170]
call fcn.0040229e
mov byte [esp + 0x11d8], 3
push ebx
push 1
lea ecx, [esp + 0x154]
call fcn.0040229e
mov eax, dword [esi + 0xb4]
cmp eax, ebx
jbe 0x4033d7
cmp dword [edi + 0x14], 8
jb 0x4033c2
mov ecx, dword [edi]
jmp 0x4033c4
mov ecx, edi
cmp word [ecx + eax*2 - 2], 0x3b
je 0x4033d7
push 0x456294
push edi
call fcn.004016ad
mov byte [esp + 0x11d8], 2
push ebx
push 1
lea ecx, [esp + 0x100]
call fcn.0040229e
mov byte [esp + 0x11d8], bl
lea ecx, [esp + 0x2c]
call fcn.004017ea
push dword [esp + 0x24]
call fcn.0043179b
pop ecx
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push 0x13
push dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, ebx
jne 0x40342f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40348a
mov eax, dword [esp + 0x14]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f6f3
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40348a
mov eax, dword [esp + 0x14]
add eax, eax
push eax
push ebx
push edi
call fcn.004317b0
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push 0x13
push dword [esp + 0x24]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x403483
push edi
lea ecx, [esi + 0x120]
call fcn.00401e93
push edi
call fcn.0043179b
pop ecx
mov eax, dword [esi + 0x94]
xor edi, edi
mov dword [esp + 0x1c], 0x2800
cmp eax, ebx
je 0x4034ab
push eax
call fcn.0043179b
pop ecx
mov dword [esi + 0x94], ebx
push 0x2800
call fcn.0042f6f3
pop ecx
mov dword [esi + 0x94], eax
cmp eax, ebx
je 0x403808
push 0x2800
push ebx
push eax
call fcn.004317b0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4035ca
push edi
mov ecx, esi
call fcn.0040388d
mov eax, dword [esp + 0x14]
inc eax
push eax
call fcn.0042f6f3
pop ecx
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x4035d6
mov eax, dword [esp + 0x14]
inc eax
push eax
push ebx
push dword [esp + 0x30]
call fcn.004317b0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], ebx
push dword [esp + 0x30]
push dword [esp + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4035be
mov eax, dword [esp + 0x18]
add eax, edi
cmp eax, dword [esp + 0x1c]
jbe 0x4035a1
mov eax, dword [esi + 0x94]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
add eax, eax
push eax
mov dword [esp + 0x20], eax
call fcn.0042f6f3
pop ecx
mov dword [esi + 0x94], eax
cmp eax, ebx
je 0x4035e2
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push eax
mov dword [esp + 0x28], ecx
call fcn.004317b0
add esp, 0xc
push edi
push dword [esp + 0x28]
push dword [esi + 0x94]
call fcn.00430850
add esp, 0xc
push dword [esp + 0x24]
call fcn.0043179b
pop ecx
push dword [esp + 0x18]
mov eax, dword [esi + 0x94]
push dword [esp + 0x2c]
add eax, edi
push eax
call fcn.00430850
add esp, 0xc
add edi, dword [esp + 0x18]
push dword [esp + 0x28]
call fcn.0043179b
pop ecx
jmp 0x4035d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp dword [esp + 0x14], ebx
ja 0x4034d3
jmp 0x4035f0
mov eax, dword [esp + 0x24]
mov dword [esi + 0x94], eax
mov byte [esp + 0xe], bl
push edi
mov ecx, esi
call fcn.0040388d
lea eax, [esi + 0x78]
mov dword [esi + 0x98], edi
cmp dword [eax + 0x14], 8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], 1
jb 0x403615
mov eax, dword [eax]
push 5
push 0x456298
push eax
call fcn.00431fe8
add esp, 0xc
test eax, eax
jne 0x403635
mov dword [esp + 0x18], 0xfde9
mov dword [esp + 0x28], ebx
mov eax, dword [esi + 0x98]
push ebx
push ebx
inc eax
push eax
push dword [esi + 0x94]
push dword [esp + 0x38]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp edi, ebx
jg 0x403682
mov ecx, dword [esi + 0x98]
push ebx
xor eax, eax
inc eax
push ebx
inc ecx
push ecx
push dword [esi + 0x94]
mov dword [esp + 0x28], ebx
push eax
push ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp edi, ebx
jle 0x4036ed
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f6f3
pop ecx
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x4036ed
lea eax, [edi + edi]
push eax
push ebx
push dword [esp + 0x24]
call fcn.004317b0
mov eax, dword [esi + 0x98]
add esp, 0xc
push edi
push dword [esp + 0x20]
inc eax
push eax
push dword [esi + 0x94]
push dword [esp + 0x38]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jle 0x4036e3
push dword [esp + 0x1c]
lea ecx, [esi + 0x5c]
call fcn.00401e93
push dword [esp + 0x1c]
call fcn.0043179b
pop ecx
push 0x4561a8
lea ecx, [esp + 0xe0]
mov byte [esp + 0x13], 1
call fcn.00401c49
test eax, eax
jne 0x403816
push str._html_
lea ecx, [esp + 0x134]
mov dword [esp + 0x148], 7
mov dword [esp + 0x144], ebx
mov word [esp + 0x134], ax
call fcn.00401e93
mov byte [esp + 0x11d8], 6
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x11d8], 7
lea eax, [esp + 0x54]
push eax
lea edx, [esi + 0x5c]
lea ecx, [esp + 0x134]
call fcn.004022f1
pop ecx
test al, al
je 0x4037c7
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4037c7
push str.__html_
lea ecx, [esp + 0x134]
call fcn.00401e93
lea eax, [esp + 0x54]
push eax
lea edx, [esi + 0x5c]
lea ecx, [esp + 0x134]
call fcn.004022f1
pop ecx
test al, al
je 0x4037b9
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x4037c7
mov dword [esi + 0x11c], 0xd
mov byte [esp + 0xf], bl
mov byte [esp + 0x11d8], 6
lea ecx, [esp + 0x54]
call fcn.004017ea
mov byte [esp + 0x11d8], bl
push ebx
push 1
lea ecx, [esp + 0x138]
call fcn.0040229e
jmp 0x4037fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp byte [esp + 0xf], bl
je 0x402c6b
jmp 0x40380c
mov byte [esp + 0xe], bl
cmp byte [esp + 0xf], bl
jne 0x403816
mov byte [esp + 0xe], bl
push dword [esp + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [esp + 0x50]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
or dword [esp + 0x11d8], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.0040229e
mov al, byte [esp + 0xe]
jmp 0x40386a
mov dword [esi + 0x11c], 0x57
or dword [esp + 0x11d8], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0xe4]
call fcn.0040229e
xor al, al
mov ecx, dword [esp + 0x11d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x11bc]
xor ecx, esp
call fcn.004313d1
mov esp, ebp
pop ebp
ret