Function at 0x4153a0
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 0x4b8228
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1190
call fcn.0049d400
mov eax, dword [0x4f52c0]
xor eax, esp
mov dword [esp + 0x118c], eax
push esi
push edi
mov eax, dword [0x4f52c0]
xor eax, esp
push eax
lea eax, [esp + 0x11a0]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x18]
xor esi, esi
cmp eax, esi
ja 0x4153fc
mov dword [ebx + 0x11c], 3
jmp 0x416307
xor eax, eax
push esi
mov word [esp + 0xe8], ax
push ecx
or eax, 0xffffffff
lea edi, [esp + 0xec]
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], esi
call fcn.00402020
mov dword [esp + 0x11a8], esi
mov eax, dword [esp + 0xe4]
mov edi, 8
cmp dword [esp + 0xf8], edi
jae 0x41544c
lea eax, [esp + 0xe4]
push 0x4c9a64
push eax
call fcn.0049ae11
add esp, 8
test eax, eax
jne 0x415467
push 3
mov eax, 0x4c9a64
jmp 0x41549b
mov eax, dword [esp + 0xe4]
cmp dword [esp + 0xf8], edi
jae 0x41547e
lea eax, [esp + 0xe4]
push 0x4c9a6c
push eax
call fcn.0049ae11
add esp, 8
test eax, eax
jne 0x4162e4
push 4
mov eax, 0x4c9a6c
lea ecx, [esp + 0xe8]
call fcn.004022e0
mov byte [esp + 0x12], 1
cmp dword [ebx], esi
jne 0x4154f7
cmp dword [ebx + 0x150], edi
lea eax, [ebx + 0x13c]
jb 0x4154c0
mov eax, dword [eax]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx], eax
cmp eax, esi
jne 0x4154f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp dword [esp + 0xf8], edi
jb 0x416307
mov ecx, dword [esp + 0xe4]
push ecx
jmp 0x4162ff
mov edx, dword [ebx + 0x1bc]
mov eax, dword [ebx + 0x1b8]
mov ecx, dword [ebx + 0x1b4]
push edx
mov edx, dword [ebx + 0x1b0]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0x206
lea edx, [esp + 0x362]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x368], cx
call fcn.0049dad0
add esp, 0xc
push 0xa26
lea ecx, [esp + 0x772]
xor eax, eax
push esi
push ecx
mov word [esp + 0x778], ax
call fcn.0049dad0
add esp, 0xc
push 0x3c
lea edx, [esp + 0xac]
push esi
push edx
call fcn.0049dad0
lea eax, [esp + 0x368]
mov dword [esp + 0xc4], eax
lea ecx, [esp + 0x778]
lea eax, [ebx + 8]
add esp, 0xc
mov dword [esp + 0xd4], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0xa8], 0x3c
mov dword [esp + 0xbc], 0x104
mov dword [esp + 0xd8], 0x514
mov dword [esp + 0xb0], 1
cmp dword [eax + 0x14], edi
jb 0x4155c4
mov eax, dword [eax]
lea edx, [esp + 0xa8]
push edx
push esi
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x4162c5
lea eax, [esp + 0x35c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4155e7
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebx + 0x24]
lea eax, [esp + 0x360]
call fcn.004022e0
mov eax, dword [esp + 0xc0]
mov edx, dword [ebx]
push esi
push eax
lea ecx, [esp + 0x364]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [esp + 0x90], edi
cmp edi, esi
je 0x4162c0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [esp + 0x9c]
push eax
push 0x44
push edi
mov dword [esp + 0xa8], 1
call esi
cmp dword [esp + 0xf8], 8
mov eax, dword [esp + 0xe4]
jae 0x415669
lea eax, [esp + 0xe4]
mov ecx, dword [esp + 0xd4]
push 0x40
push 0
push 0
push 0
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4162b9
cmp byte [ebx + 4], 0
jne 0x4156b1
cmp dword [esp + 0xb4], 2
jne 0x4156b1
push 4
lea edx, [esp + 0x2c]
push edx
push 0x1f
push eax
mov dword [esp + 0x38], 0x3100
call esi
mov byte [esp + 0x13], 0
mov dword [esp + 0x3c], 0
mov edi, edi
mov eax, dword [esp + 0x3c]
mov ecx, eax
inc eax
mov dword [esp + 0x3c], eax
cmp ecx, 1
jae 0x41629b
mov ecx, dword [ebx + 0xf4]
test ecx, ecx
je 0x415713
cmp dword [ebx + 0xf8], 8
lea eax, [ebx + 0xe4]
jb 0x4156ef
mov eax, dword [eax]
mov esi, dword [esp + 0x18]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x415717
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
jmp 0x415717
mov esi, dword [esp + 0x18]
cmp dword [ebx + 0xd0], 0
jbe 0x4157a4
mov eax, str.Cookie:
lea esi, [esp + 0x100]
call fcn.00402420
push 0
lea edx, [ebx + 0xc0]
push edx
or eax, 0xffffffff
mov edi, esi
mov byte [esp + 0x11b0], 1
call fcn.004194a0
cmp dword [esp + 0x114], 8
mov eax, dword [esp + 0x100]
jae 0x415763
mov eax, esi
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x18]
push 0x1000000
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x41578c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
lea esi, [esp + 0x100]
mov byte [esp + 0x11a8], 0
call fcn.0041ac10
mov esi, dword [esp + 0x18]
cmp dword [ebx + 0x110], 0
jbe 0x4158b7
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x15e]
mov dword [esp + 0xa4], eax
push ecx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xa8], 3
mov word [esp + 0x160], ax
call fcn.0049dad0
lea eax, [ebx + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4157ff
mov eax, dword [eax]
push eax
lea edx, [esp + 0x158]
push 0x104
push edx
call fcn.0049c3ad
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
push 0xc
lea ecx, [esp + 0xa0]
push ecx
push 0x26
lea eax, [esp + 0x160]
push esi
mov dword [esp + 0xb0], eax
call edi
test eax, eax
jne 0x415848
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x16c]
test ecx, ecx
je 0x4158b7
cmp dword [ebx + 0x170], 8
lea eax, [ebx + 0x15c]
jb 0x415863
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1002
push esi
call edi
test eax, eax
jne 0x415880
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x188]
test ecx, ecx
je 0x4158b7
cmp dword [ebx + 0x18c], 8
lea eax, [ebx + 0x178]
jb 0x41589b
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1003
push esi
call edi
test eax, eax
jne 0x4158b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov byte [esp + 0x43], 0
call edi
test eax, eax
jne 0x415af1
lea edx, [esp + 0x40]
push edx
xor esi, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x41627d
mov ecx, dword [esp + 0x44]
cmp ecx, esi
je 0x4159e9
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov eax, 1
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], eax
xor eax, eax
cmp dword [ebx + 0x1c], 8
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [ebx + 8]
mov dword [esp + 0x78], 3
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], esi
jb 0x415976
mov eax, dword [eax]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x7c]
push edx
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x415aad
mov esi, dword [esp + 0x18]
push 0xc
lea ecx, [esp + 0x70]
push ecx
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4159c2
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call edi
test eax, eax
je 0x4159c2
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4159d1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x415ab9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x415ab9
mov esi, dword [esp + 0x48]
test esi, esi
je 0x415ad7
xor eax, eax
xor edx, edx
mov dword [esp + 0x60], eax
push 0x206
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
push edx
lea eax, [esp + 0x15e]
push eax
mov dword [esp + 0x6c], 3
mov word [esp + 0x160], dx
call fcn.0049dad0
add esp, 0xc
push esi
lea ecx, [esp + 0x158]
push 0x104
push ecx
call fcn.0049c3ad
mov esi, dword [esp + 0x58]
add esp, 0xc
lea edx, [esp + 0x154]
mov dword [esp + 0x64], edx
test esi, esi
je 0x415a95
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x56e]
push ecx
mov word [esp + 0x570], ax
call fcn.0049dad0
add esp, 0xc
push esi
lea edx, [esp + 0x568]
push 0x104
push edx
call fcn.0049c3ad
lea eax, [esp + 0x570]
add esp, 0xc
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x18]
push 0xc
lea ecx, [esp + 0x64]
push ecx
push 0x26
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x415ab9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x415ac8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x415ad7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x415ae6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [esp + 0x27], 0
je 0x416289
mov eax, dword [ebx + 0xdc]
xor edi, edi
cmp eax, edi
je 0x415b29
mov edx, dword [ebx + 0xe0]
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x415b29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov esi, dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x41627d
push edi
lea ecx, [esp + 0x18]
push ecx
push edi
push edi
push 0x16
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, edi
jne 0x415b65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x415e77
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499075
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
je 0x415e77
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0049dad0
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push esi
push 0
push 0x16
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x415e6e
lea edi, [ebx + 0x40]
push edi
mov eax, esi
call fcn.004023f0
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, 0x4c8a90
lea esi, [esp + 0x100]
mov byte [esp + 0x11a8], 2
call fcn.00402420
mov byte [esp + 0x11a8], 3
cmp byte [ebx + 0x158], 0
jne 0x415c54
mov ecx, esi
push ecx
mov eax, str.charset_A_Za_z0_9___
call fcn.004023f0
mov edx, esi
push edx
lea edx, [esp + 0x30]
mov ecx, edi
call fcn.00414920
add esp, 4
test al, al
je 0x415c54
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x415c54
push 0
lea edi, [ebx + 0x78]
push esi
or eax, 0xffffffff
call fcn.00402020
lea ecx, [esp + 0x100]
push ecx
mov eax, str.Content_Length:__0_9_
call fcn.004023f0
lea edx, [esp + 0x100]
push edx
lea edx, [esp + 0x30]
lea ecx, [ebx + 0x40]
call fcn.00414920
add esp, 4
test al, al
je 0x415cb7
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x415cb7
cmp dword [esi + 0x14], 8
jb 0x415ca8
mov esi, dword [esi]
push esi
call fcn.0049bb52
add esp, 4
mov dword [ebx + 0xa0], eax
lea ecx, [esp + 0x100]
push ecx
mov eax, str.Location:__0_9_
call fcn.004023f0
lea edx, [esp + 0x100]
push edx
lea edx, [esp + 0x30]
lea ecx, [ebx + 0x40]
call fcn.00414920
add esp, 4
test al, al
je 0x415d14
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x415d14
push 0
push esi
lea edi, [ebx + 0x194]
or eax, 0xffffffff
call fcn.00402020
lea ecx, [esp + 0x100]
push ecx
mov eax, str.Set_Cookie:_b.__n
call fcn.004023f0
lea edx, [esp + 0x100]
push edx
lea edx, [esp + 0x30]
lea ecx, [ebx + 0x40]
call fcn.00414920
add esp, 4
test al, al
je 0x415e4d
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x415e4d
mov dword [esp + 0x20], 0
test esi, esi
je 0x415db5
mov eax, dword [esp + 0x2c]
lea edi, [ebx + 0xa4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
push 0
push ecx
or eax, 0xffffffff
call fcn.004194a0
lea eax, [esi - 1]
cmp dword [esp + 0x20], eax
je 0x415da3
push edi
mov eax, 0x4c9b48
call fcn.004186e0
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], 0x1c
inc eax
mov dword [esp + 0x20], eax
cmp eax, esi
jb 0x415d80
mov eax, 0x4c9a60
lea esi, [esp + 0x11c]
call fcn.00402420
lea edx, [esp + 0x11c]
push edx
lea esi, [ebx + 0xa4]
push esi
lea edx, [esp + 0x140]
mov byte [esp + 0x11b0], 4
call fcn.00414ce0
add esp, 8
mov edi, eax
mov byte [esp + 0x11a8], 5
call fcn.004018f0
lea esi, [esp + 0x138]
call fcn.0041ac10
lea esi, [esp + 0x11c]
mov byte [esp + 0x11a8], 3
call fcn.0041ac10
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x415e4d
cmp dword [ebx + 0xb8], 8
lea ecx, [ebx + 0xa4]
jb 0x415e38
mov edx, dword [ecx]
jmp 0x415e3a
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x3b
je 0x415e4d
push ecx
mov eax, 0x4c9b50
call fcn.004186e0
lea esi, [esp + 0x100]
call fcn.0041ac10
lea esi, [esp + 0x2c]
mov byte [esp + 0x11a8], 0
call fcn.00418760
mov esi, dword [esp + 0x28]
push esi
call fcn.0049a88f
add esp, 4
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x13
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x415ea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x415f0e
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499075
mov esi, eax
add esp, 4
test esi, esi
je 0x415f0e
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0049dad0
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push esi
push 0
push 0x13
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x415f05
lea ecx, [ebx + 0x120]
push ecx
mov eax, esi
call fcn.004023f0
push esi
call fcn.0049a88f
add esp, 4
mov eax, dword [ebx + 0x94]
xor edi, edi
mov dword [esp + 0x20], 0x2800
test eax, eax
je 0x415f31
push eax
call fcn.0049a88f
add esp, 4
mov dword [ebx + 0x94], edi
push 0x2800
call fcn.00499075
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x416296
push 0x2800
push 0
push eax
call fcn.0049dad0
add esp, 0xc
lea esp, [esp]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x416068
push edi
mov edx, ebx
call fcn.004163d0
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
call fcn.00499075
mov esi, eax
add esp, 4
mov dword [esp + 0x94], esi
test esi, esi
je 0x416074
mov edx, dword [esp + 0x14]
inc edx
push edx
push 0
push esi
call fcn.0049dad0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41605d
mov eax, dword [esp + 0x1c]
add eax, edi
cmp eax, dword [esp + 0x20]
jbe 0x416042
mov eax, dword [esp + 0x20]
mov esi, dword [ebx + 0x94]
add eax, eax
push eax
mov dword [esp + 0x2c], eax
call fcn.00499075
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x416081
mov ecx, dword [esp + 0x28]
push ecx
push 0
push eax
mov dword [esp + 0x2c], ecx
call fcn.0049dad0
mov ecx, dword [ebx + 0x94]
add esp, 0xc
push edi
push esi
push ecx
call fcn.0049d430
add esp, 0xc
push esi
call fcn.0049a88f
mov esi, dword [esp + 0x98]
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x94]
push edx
add eax, edi
push esi
push eax
call fcn.0049d430
add esp, 0xc
add edi, dword [esp + 0x1c]
push esi
call fcn.0049a88f
add esp, 4
jmp 0x416074
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp dword [esp + 0x14], 0
ja 0x415f60
jmp 0x41608c
mov dword [ebx + 0x94], esi
mov byte [esp + 0x12], 0
push edi
mov edx, ebx
call fcn.004163d0
lea eax, [ebx + 0x78]
mov dword [ebx + 0x98], edi
xor esi, esi
cmp dword [eax + 0x14], 8
mov dword [esp + 0x1c], 1
jb 0x4160af
mov eax, dword [eax]
push 5
push 0x4c9b54
push eax
call fcn.0049c0c2
add esp, 0xc
test eax, eax
jne 0x4160cc
mov esi, 0xfde9
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0x98]
mov edx, dword [ebx + 0x94]
mov eax, dword [esp + 0x1c]
push 0
push 0
inc ecx
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x41611b
mov ecx, dword [ebx + 0x98]
mov edx, dword [ebx + 0x94]
xor esi, esi
push esi
push esi
inc ecx
push ecx
push edx
push 1
push esi
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x416190
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499075
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x416190
mov ecx, dword [esp + 0x20]
lea eax, [edi + edi]
push eax
push 0
push ecx
call fcn.0049dad0
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x94]
add esp, 0xc
push edi
push edx
mov edx, dword [esp + 0x24]
inc eax
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x416183
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [esp + 0x24]
call fcn.004023f0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0049a88f
add esp, 4
mov ecx, dword [esp + 0xf4]
mov edi, 3
lea eax, [esp + 0xe4]
mov byte [esp + 0x13], 1
call fcn.0041a7e0
test eax, eax
jne 0x4162a7
mov eax, str._html_
lea esi, [esp + 0x100]
call fcn.00402420
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov edx, esi
push edx
lea edx, [esp + 0x54]
lea ecx, [ebx + 0x5c]
mov byte [esp + 0x11ac], 7
call fcn.00414920
add esp, 4
test al, al
je 0x41625e
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x50]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x41625e
mov ecx, esi
push ecx
mov eax, str.__html_
call fcn.004023f0
mov edx, esi
push edx
lea edx, [esp + 0x54]
lea ecx, [ebx + 0x5c]
call fcn.00414920
add esp, 4
test al, al
je 0x41624f
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x50]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x41625e
mov dword [ebx + 0x11c], 0xd
mov byte [esp + 0x13], 0
lea esi, [esp + 0x50]
call fcn.00418760
lea esi, [esp + 0x100]
mov byte [esp + 0x11a8], 0
call fcn.0041ac10
jmp 0x416289
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp byte [esp + 0x13], 0
je 0x4156c0
jmp 0x4162a7
mov byte [esp + 0x12], 0
cmp byte [esp + 0x13], 0
jne 0x4162a7
mov byte [esp + 0x12], 0
mov ecx, dword [esp + 0x18]
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 + 0xf8], edi
jb 0x4162de
mov edx, dword [esp + 0xe4]
push edx
call fcn.00499080
add esp, 4
mov al, byte [esp + 0x12]
jmp 0x416309
mov dword [ebx + 0x11c], 0x57
cmp dword [esp + 0xf8], edi
jb 0x416307
mov eax, dword [esp + 0xe4]
push eax
call fcn.00499080
add esp, 4
xor al, al
mov ecx, dword [esp + 0x11a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x118c]
xor ecx, esp
call fcn.0049908b
mov esp, ebp
pop ebp
ret