Function at 0x4041a0
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 0x48ca98
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1180
call fcn.0046b310
mov eax, dword [0x4ace70]
xor eax, esp
mov dword [esp + 0x117c], eax
push ebx
push edi
mov eax, dword [0x4ace70]
xor eax, esp
push eax
lea eax, [esp + 0x1190]
mov dword fs:[0], eax
mov eax, dword [esi + 0x1c]
xor ebx, ebx
cmp eax, ebx
ja 0x4041fc
mov dword [esi + 0x11c], 3
jmp 0x40515e
push 0xffffffffffffffff
push ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x134]
mov dword [esp + 0x14c], 7
mov dword [esp + 0x148], ebx
mov word [esp + 0x138], ax
call fcn.0040d190
mov dword [esp + 0x1198], ebx
mov eax, dword [esp + 0x12c]
mov edi, 8
cmp dword [esp + 0x140], edi
jae 0x40424b
lea eax, [esp + 0x12c]
push 0x494eac
push eax
call fcn.0046be01
add esp, 8
test eax, eax
jne 0x404266
push 3
push 0x494eac
jmp 0x40429a
mov eax, dword [esp + 0x12c]
cmp dword [esp + 0x140], edi
jae 0x40427d
lea eax, [esp + 0x12c]
push 0x494eb4
push eax
call fcn.0046be01
add esp, 8
test eax, eax
jne 0x40513b
push 4
push 0x494eb4
lea ecx, [esp + 0x130]
call fcn.0040d290
mov byte [esp + 0x13], 1
cmp dword [esi], ebx
jne 0x4042f3
cmp dword [esi + 0x154], edi
jb 0x4042bf
mov eax, dword [esi + 0x140]
jmp 0x4042c5
lea eax, [esi + 0x140]
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 0x4042f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x128]
mov dword [esi + 0x11c], eax
call fcn.0040a260
jmp 0x40515e
mov ecx, dword [esi + 0x1bc]
mov edx, dword [esi + 0x1b8]
mov eax, dword [esi + 0x1b4]
push ecx
mov ecx, dword [esi + 0x1b0]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0x206
lea ecx, [esp + 0x352]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x358], ax
call fcn.0046a210
add esp, 0xc
push 0xa26
lea eax, [esp + 0x762]
xor edx, edx
push ebx
push eax
mov word [esp + 0x768], dx
call fcn.0046a210
add esp, 0xc
push 0x3c
lea ecx, [esp + 0x9c]
push ebx
push ecx
call fcn.0046a210
lea eax, [esp + 0x768]
add esp, 0xc
lea edx, [esp + 0x34c]
mov dword [esp + 0xc4], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x98], 0x3c
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], 0x104
mov dword [esp + 0xc8], 0x514
mov dword [esp + 0xa0], 1
cmp dword [esi + 0x20], edi
jb 0x4043c0
mov ecx, dword [esi + 0xc]
jmp 0x4043c3
lea ecx, [esi + 0xc]
lea edx, [esp + 0x98]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x40511c
lea eax, [esp + 0x34c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4043e6
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x350]
push eax
lea ecx, [esi + 0x24]
call fcn.0040d290
mov ecx, dword [esp + 0xb0]
mov eax, dword [esi]
push ebx
push ecx
lea edx, [esp + 0x354]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [esp + 0x90], edi
cmp edi, ebx
je 0x405117
mov eax, dword [esp + 0x12c]
xor ecx, ecx
mov ebx, 2
cmp dword [esp + 0xa4], ebx
setne cl
dec ecx
and ecx, 0x800000
cmp dword [esp + 0x140], 8
jae 0x404461
lea eax, [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0xc8]
push 0
push 0
push 0
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x405110
cmp byte [esi + 4], 0
jne 0x4044ab
cmp dword [esp + 0xa4], ebx
jne 0x4044ab
push 4
lea edx, [esp + 0x2c]
push edx
push 0x1f
push eax
mov dword [esp + 0x38], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [esp + 0x12], 0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
mov ecx, eax
inc eax
mov dword [esp + 0x28], eax
cmp ecx, 3
jae 0x4050f2
mov ecx, dword [esi + 0xf8]
mov ebx, 8
test ecx, ecx
jbe 0x404515
cmp dword [esi + 0xfc], ebx
jb 0x4044eb
mov eax, dword [esi + 0xe8]
jmp 0x4044f1
lea eax, [esi + 0xe8]
mov edi, dword [esp + 0x1c]
push 0x1000000
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x404519
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
jmp 0x404519
mov edi, dword [esp + 0x1c]
cmp dword [esi + 0xd4], 0
jbe 0x4045a6
push str.Cookie:
lea ecx, [esp + 0x110]
call fcn.0040ac00
push 0xffffffffffffffff
push 0
lea edx, [esi + 0xc0]
push edx
lea ecx, [esp + 0x118]
mov byte [esp + 0x11a4], 1
call fcn.0040f2c0
mov eax, dword [esp + 0x110]
cmp dword [esp + 0x124], ebx
jae 0x40456d
lea eax, [esp + 0x110]
mov ecx, dword [esp + 0x120]
push 0x1000000
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x404592
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
lea ecx, [esp + 0x10c]
mov byte [esp + 0x1198], 0
call fcn.0040a260
cmp dword [esi + 0x114], 0
jbe 0x4046cf
xor eax, eax
xor edx, edx
mov dword [esp + 0x84], eax
push 0x206
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
push edx
lea eax, [esp + 0x14e]
push eax
mov dword [esp + 0x90], 3
mov word [esp + 0x150], dx
call fcn.0046a210
add esp, 0xc
cmp dword [esi + 0x118], ebx
jb 0x404605
mov eax, dword [esi + 0x104]
jmp 0x40460b
lea eax, [esi + 0x104]
push eax
lea ecx, [esp + 0x148]
push 0x104
push ecx
call fcn.0046b50a
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
push 0xc
lea eax, [esp + 0x88]
push eax
push 0x26
lea edx, [esp + 0x150]
push edi
mov dword [esp + 0x98], edx
call ebx
test eax, eax
jne 0x404654
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov ecx, dword [esi + 0x170]
test ecx, ecx
jbe 0x4046cf
cmp dword [esi + 0x174], 8
jb 0x40466f
mov eax, dword [esi + 0x160]
jmp 0x404675
lea eax, [esi + 0x160]
add ecx, ecx
push ecx
push eax
push 0x1002
push edi
call ebx
test eax, eax
jne 0x404691
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov ecx, dword [esi + 0x18c]
test ecx, ecx
jbe 0x4046cf
cmp dword [esi + 0x190], 8
jb 0x4046ac
mov eax, dword [esi + 0x17c]
jmp 0x4046b2
lea eax, [esi + 0x17c]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1003
push edi
call ebx
test eax, eax
jne 0x4046cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push 0
push 0
push 0
push 0
push 0
push edi
mov byte [esp + 0x3f], 0
call ebx
test eax, eax
jne 0x4048fa
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push eax
xor edi, edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x4050d4
mov ecx, dword [esp + 0x48]
cmp ecx, edi
je 0x4047f2
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov eax, 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x80], eax
xor eax, eax
cmp dword [esi + 0x20], 8
mov dword [esp + 0x6c], 3
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
jb 0x40477c
mov eax, dword [esi + 0xc]
jmp 0x40477f
lea eax, [esi + 0xc]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x70]
push edx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x4048b6
mov edi, dword [esp + 0x1c]
push 0xc
lea ecx, [esp + 0x64]
push ecx
push 0x26
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4047cb
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call ebx
test eax, eax
je 0x4047cb
mov byte [esp + 0x23], 1
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4047da
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4048c2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4048c2
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x4048e0
xor eax, eax
xor edx, edx
mov dword [esp + 0x54], eax
push 0x206
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
push edx
lea eax, [esp + 0x14e]
push eax
mov dword [esp + 0x60], 3
mov word [esp + 0x150], dx
call fcn.0046a210
add esp, 0xc
push edi
lea ecx, [esp + 0x148]
push 0x104
push ecx
call fcn.0046b50a
mov edi, dword [esp + 0x5c]
add esp, 0xc
lea edx, [esp + 0x144]
mov dword [esp + 0x58], edx
test edi, edi
je 0x40489e
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x55e]
push ecx
mov word [esp + 0x560], ax
call fcn.0046a210
add esp, 0xc
push edi
lea edx, [esp + 0x558]
push 0x104
push edx
call fcn.0046b50a
lea eax, [esp + 0x560]
add esp, 0xc
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x1c]
push 0xc
lea ecx, [esp + 0x58]
push ecx
push 0x26
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4048c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4048d1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4048e0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4048ef
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [esp + 0x23], 0
je 0x4050e0
mov eax, dword [esi + 0xdc]
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x404932
mov edx, dword [esi + 0xe0]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x404932
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4050d4
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x16
push edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, ebx
jne 0x40496a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404cba
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00468d75
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x404cba
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax]
push ecx
push 0
push ebx
call fcn.0046a210
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
push 0
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x404cb1
mov eax, dword [esp + 0x14]
lea ebx, [esi + 0x40]
push eax
mov ecx, ebx
call fcn.0040aca0
lea ecx, [esp + 0x2c]
call fcn.0042c150
push 0x494d30
lea ecx, [esp + 0x110]
mov byte [esp + 0x119c], 2
call fcn.0040ac00
mov byte [esp + 0x1198], 3
cmp byte [esi + 0x158], 0
jne 0x404a64
push str.charset_A_Za_z0_9___
lea ecx, [esp + 0x110]
call fcn.0040aca0
lea ecx, [esp + 0x10c]
push ebx
push ecx
lea ecx, [esp + 0x34]
call fcn.00403450
add esp, 8
test al, al
je 0x404a64
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404a64
push 0
lea ecx, [esp + 0x30]
call fcn.0040b160
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x78]
call fcn.0040d190
push str.Content_Length:__0_9_
lea ecx, [esp + 0x110]
call fcn.0040aca0
lea ecx, [esp + 0x10c]
push ebx
push ecx
lea ecx, [esp + 0x34]
call fcn.00403450
add esp, 8
test al, al
je 0x404ad3
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404ad3
push 0
lea ecx, [esp + 0x30]
call fcn.0040b160
cmp dword [eax + 0x18], 8
jb 0x404ac1
mov eax, dword [eax + 4]
jmp 0x404ac4
add eax, 4
push eax
call fcn.0046c02d
add esp, 4
mov dword [esi + 0xa0], eax
push str.Location:__0_9_
lea ecx, [esp + 0x110]
call fcn.0040aca0
lea ecx, [esp + 0x10c]
push ebx
push ecx
lea ecx, [esp + 0x34]
call fcn.00403450
add esp, 8
test al, al
je 0x404b35
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404b35
push 0
lea ecx, [esp + 0x30]
call fcn.0040b160
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x194]
call fcn.0040d190
push str.Set_Cookie:_b.__n
lea ecx, [esp + 0x110]
call fcn.0040aca0
lea ecx, [esp + 0x10c]
push ebx
push ecx
lea ecx, [esp + 0x34]
call fcn.00403450
add esp, 8
test al, al
je 0x404c90
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404c90
xor ebx, ebx
test eax, eax
jbe 0x404bfe
lea ebx, [ebx]
push ebx
lea ecx, [esp + 0x30]
call fcn.0040b160
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0xa4]
call fcn.0040f2c0
mov edi, dword [esp + 0x3c]
mov ecx, edi
sub ecx, dword [esp + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax - 1]
cmp ebx, ecx
je 0x404be2
lea eax, [esi + 0xa4]
push eax
mov edx, 0x494f90
call fcn.0040ac70
mov edi, dword [esp + 0x3c]
sub edi, dword [esp + 0x38]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jb 0x404b90
push 0x494e9c
lea ecx, [esp + 0xd8]
call fcn.0040ac00
lea ecx, [esp + 0xf0]
push ecx
lea ebx, [esi + 0xa4]
lea ecx, [esp + 0xd8]
mov byte [esp + 0x119c], 4
call fcn.004039b0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x11a4], 5
call fcn.0040d190
lea ecx, [esp + 0xf0]
call fcn.0040a260
lea ecx, [esp + 0xd4]
mov byte [esp + 0x1198], 3
call fcn.0040a260
mov eax, dword [esi + 0xb8]
test eax, eax
jbe 0x404c8c
dec eax
push eax
mov ecx, ebx
call fcn.0040acd0
cmp word [eax], 0x3b
je 0x404c8c
push ebx
mov edx, 0x494f98
call fcn.0040ac70
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x10c]
call fcn.0040a260
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1198], 0
call fcn.0040b110
mov ebx, dword [esp + 0x14]
push ebx
call fcn.004696d5
add esp, 4
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x13
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x404ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404d4b
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00468d75
mov edi, eax
add esp, 4
test edi, edi
je 0x404d4b
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax]
push ecx
push 0
push edi
call fcn.0046a210
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push 0
push 0x13
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x404d42
push edi
lea ecx, [esi + 0x120]
call fcn.0040aca0
push edi
call fcn.004696d5
add esp, 4
mov eax, dword [esi + 0x94]
xor ebx, ebx
mov dword [esp + 0x14], 0x2800
cmp eax, ebx
je 0x404d6e
push eax
call fcn.004696d5
add esp, 4
mov dword [esi + 0x94], ebx
push 0x2800
call fcn.00468d75
add esp, 4
mov dword [esi + 0x94], eax
cmp eax, ebx
je 0x4050ed
push 0x2800
push ebx
push eax
call fcn.0046a210
add esp, 0xc
jmp 0x404da0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x404ea8
push ebx
mov edx, esi
call fcn.004051f0
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.00468d75
mov edi, eax
add esp, 4
mov dword [esp + 0x94], edi
test edi, edi
je 0x404eb4
mov ecx, dword [esp + 0x18]
inc ecx
push ecx
push 0
push edi
call fcn.0046a210
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x34], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x404e9d
mov edx, dword [esp + 0x24]
add edx, ebx
cmp edx, dword [esp + 0x14]
jbe 0x404e82
mov eax, dword [esp + 0x14]
mov edi, dword [esi + 0x94]
add eax, eax
push eax
mov dword [esp + 0x18], eax
call fcn.00468d75
add esp, 4
mov dword [esi + 0x94], eax
test eax, eax
je 0x404ec1
mov ecx, dword [esp + 0x14]
push ecx
push 0
push eax
mov dword [esp + 0x20], ecx
call fcn.0046a210
mov eax, dword [esi + 0x94]
add esp, 0xc
push ebx
push edi
push eax
call fcn.0046a9e0
add esp, 0xc
push edi
call fcn.004696d5
mov edi, dword [esp + 0x98]
add esp, 4
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x94]
push ecx
add edx, ebx
push edi
push edx
call fcn.0046a9e0
add esp, 0xc
add ebx, dword [esp + 0x24]
push edi
call fcn.004696d5
add esp, 4
jmp 0x404eb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp dword [esp + 0x18], 0
ja 0x404da0
jmp 0x404ecc
mov dword [esi + 0x94], edi
mov byte [esp + 0x13], 0
push ebx
mov edx, esi
call fcn.004051f0
xor edi, edi
mov dword [esi + 0x98], ebx
cmp dword [esi + 0x90], 8
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], 1
jb 0x404ef6
mov eax, dword [esi + 0x7c]
jmp 0x404ef9
lea eax, [esi + 0x7c]
push 5
push 0x494f9c
push eax
call fcn.0046c37e
add esp, 0xc
test eax, eax
jne 0x404f19
mov dword [esp + 0x14], 0xfde9
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
mov edx, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
inc eax
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call ebx
mov edi, eax
test edi, edi
jg 0x404f73
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0x94]
push 0
push 0
inc ecx
push ecx
push edx
push 1
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 1
call ebx
mov edi, eax
test edi, edi
jle 0x404fda
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00468d75
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404fda
lea eax, [edi + edi]
push eax
push 0
push ebx
call fcn.0046a210
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0x94]
mov eax, dword [esp + 0x30]
add esp, 0xc
push edi
push ebx
inc ecx
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x404fd1
push ebx
lea ecx, [esi + 0x5c]
call fcn.0040aca0
push ebx
call fcn.004696d5
add esp, 4
lea edx, [esp + 0x128]
push 0x494eac
push edx
mov byte [esp + 0x1a], 1
call fcn.00413820
add esp, 8
test al, al
je 0x4050fe
push str._html_
lea ecx, [esp + 0x110]
call fcn.0040ac00
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1198], 6
call fcn.0042c150
lea edi, [esi + 0x5c]
lea eax, [esp + 0x10c]
push edi
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x11a0], 7
call fcn.00403450
add esp, 8
test al, al
je 0x4050b5
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x4050b5
push str.__html_
lea ecx, [esp + 0x110]
call fcn.0040aca0
lea edx, [esp + 0x10c]
push edi
push edx
lea ecx, [esp + 0x34]
call fcn.00403450
add esp, 8
test al, al
je 0x4050a6
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4050b5
mov dword [esi + 0x11c], 0xd
mov byte [esp + 0x12], 0
lea ecx, [esp + 0x2c]
call fcn.0040b110
lea ecx, [esp + 0x10c]
mov byte [esp + 0x1198], 0
call fcn.0040a260
jmp 0x4050e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp byte [esp + 0x12], 0
je 0x4044b8
jmp 0x4050fe
mov byte [esp + 0x13], 0
cmp byte [esp + 0x12], 0
jne 0x4050fe
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [esp + 0x90]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, 8
cmp dword [esp + 0x140], edi
jb 0x405135
mov edx, dword [esp + 0x12c]
push edx
call fcn.00469665
add esp, 4
mov al, byte [esp + 0x13]
jmp 0x405160
mov dword [esi + 0x11c], 0x57
cmp dword [esp + 0x140], edi
jb 0x40515e
mov eax, dword [esp + 0x12c]
push eax
call fcn.00469665
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x117c]
xor ecx, esp
call fcn.00469e0a
mov esp, ebp
pop ebp
ret