Function at 0x40db70
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429878
mov eax, dword fs:[0]
push eax
mov eax, 0x1180
call fcn.004141d0
mov eax, dword [0x434c18]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
ja 0x40dbbd
mov dword [esi + 0x11c], 3
jmp 0x40ec5f
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [ebp - 0x1088], cx
push eax
lea ecx, [ebp - 0x1088]
mov dword [ebp - 0x1074], 7
mov dword [ebp - 0x1078], edi
call fcn.00408bc0
mov eax, dword [ebp - 0x1088]
mov ebx, 8
mov dword [ebp - 4], edi
cmp dword [ebp - 0x1074], ebx
jae 0x40dc01
lea eax, [ebp - 0x1088]
push 0x42c724
push eax
call fcn.004142fe
add esp, 8
test eax, eax
jne 0x40dc1c
push 3
push 0x42c724
jmp 0x40dc4d
mov eax, dword [ebp - 0x1088]
cmp dword [ebp - 0x1074], ebx
jae 0x40dc30
lea eax, [ebp - 0x1088]
push str.POST
push eax
call fcn.004142fe
add esp, 8
test eax, eax
jne 0x40ec3e
push 4
push str.POST
lea ecx, [ebp - 0x1088]
call fcn.00408cc0
mov byte [ebp - 0x10c2], 1
cmp dword [esi], edi
jne 0x40dca8
cmp dword [esi + 0x150], ebx
lea eax, [esi + 0x13c]
jb 0x40dc73
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
cmp eax, edi
jne 0x40dca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp dword [ebp - 0x1074], ebx
jb 0x40ec5f
mov edx, dword [ebp - 0x1088]
push edx
jmp 0x40ec57
mov eax, dword [esi + 0x1bc]
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1b4]
push eax
mov eax, dword [esi + 0x1b0]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0x206
lea eax, [ebp - 0x41e]
xor edx, edx
push edi
push eax
mov word [ebp - 0x420], dx
call fcn.00412330
push 0xa26
lea edx, [ebp - 0x104e]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x1050], cx
call fcn.00412330
push 0x3c
lea eax, [ebp - 0x118c]
push edi
push eax
call fcn.00412330
lea ecx, [ebp - 0x420]
lea eax, [esi + 8]
add esp, 0x24
lea edx, [ebp - 0x1050]
mov dword [ebp - 0x117c], ecx
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x118c], 0x3c
mov dword [ebp - 0x1178], 0x104
mov dword [ebp - 0x1160], edx
mov dword [ebp - 0x115c], 0x514
mov dword [ebp - 0x1184], 1
cmp dword [eax + 0x14], ebx
jb 0x40dd62
mov eax, dword [eax]
lea edx, [ebp - 0x118c]
push edx
push edi
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x40ec1f
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov ebx, 2
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x40dd88
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [esi + 0x24]
call fcn.00408cc0
mov ecx, dword [ebp - 0x1174]
mov eax, dword [esi]
push 0
push ecx
lea edx, [ebp - 0x420]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x114c], edi
test edi, edi
je 0x40ec1a
mov eax, dword [ebp - 0x1088]
xor ecx, ecx
cmp dword [ebp - 0x1180], ebx
setne cl
dec ecx
and ecx, 0x800000
cmp dword [ebp - 0x1074], 8
jae 0x40ddf6
lea eax, [ebp - 0x1088]
push ecx
mov ecx, dword [ebp - 0x1160]
push 0
push 0
push 0
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x10d0], eax
test eax, eax
je 0x40ec13
cmp byte [esi + 4], 0
jne 0x40de44
cmp dword [ebp - 0x1180], ebx
jne 0x40de44
push 4
lea edx, [ebp - 0x10ec]
push edx
push 0x1f
push eax
mov dword [ebp - 0x10ec], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [ebp - 0x10c1], 0
mov dword [ebp - 0x10ec], 0
mov eax, dword [ebp - 0x10ec]
mov ecx, eax
inc eax
mov dword [ebp - 0x10ec], eax
cmp ecx, 3
jae 0x40ebf0
mov ecx, dword [esi + 0xf4]
mov ebx, 8
test ecx, ecx
je 0x40deb0
cmp dword [esi + 0xf8], ebx
lea eax, [esi + 0xe4]
jb 0x40de8c
mov eax, dword [eax]
mov edx, dword [ebp - 0x10d0]
push 0x1000000
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x40deb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp dword [esi + 0xd0], 0
mov edi, dword [ebp - 0x10d0]
jbe 0x40df30
push str.Cookie:
lea ecx, [ebp - 0x106c]
call fcn.0040aae0
push 0xffffffffffffffff
push 0
lea eax, [esi + 0xc0]
push eax
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 1
call fcn.004093d0
mov eax, dword [ebp - 0x106c]
cmp dword [ebp - 0x1058], ebx
jae 0x40defd
lea eax, [ebp - 0x106c]
mov ecx, dword [ebp - 0x105c]
push 0x1000000
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x40df21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 0
call fcn.00406d50
cmp dword [esi + 0x110], 0
jbe 0x40e03c
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1148], eax
push 0x206
mov dword [ebp - 0x1144], eax
mov dword [ebp - 0x1140], eax
push edx
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x1148], 3
mov word [ebp - 0x218], dx
call fcn.00412330
lea eax, [esi + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x40df86
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.00414389
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
push 0xc
lea eax, [ebp - 0x1148]
push eax
push 0x26
lea edx, [ebp - 0x218]
push edi
mov dword [ebp - 0x1144], edx
call ebx
test eax, eax
jne 0x40dfcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov ecx, dword [esi + 0x16c]
test ecx, ecx
je 0x40e042
cmp dword [esi + 0x170], 8
lea eax, [esi + 0x15c]
jb 0x40dfe6
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1002
push edi
call ebx
test eax, eax
jne 0x40e002
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x40e042
cmp dword [esi + 0x18c], 8
lea eax, [esi + 0x178]
jb 0x40e01d
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1003
push edi
call ebx
test eax, eax
jne 0x40e042
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
jmp 0x40e042
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp byte [ebp + 0xc], 0
je 0x40e070
push 4
lea eax, [ebp - 0x10c8]
push eax
push 0x3f
push edi
mov dword [ebp - 0x10c8], 2
call ebx
test eax, eax
jne 0x40e070
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 [ebp - 0x10d1], 0
call ebx
test eax, eax
jne 0x40e2da
lea ecx, [ebp - 0x10fc]
push ecx
xor edi, edi
mov dword [ebp - 0x10fc], eax
mov dword [ebp - 0x10f8], eax
mov dword [ebp - 0x10f4], eax
mov dword [ebp - 0x10f0], eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x40ebbf
mov ecx, dword [ebp - 0x10f8]
cmp ecx, edi
je 0x40e1c4
xor eax, eax
mov dword [ebp - 0x113c], eax
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x1134], eax
mov dword [ebp - 0x1130], eax
mov dword [ebp - 0x112c], eax
mov dword [ebp - 0x1128], eax
mov eax, 1
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x1128], eax
xor eax, eax
cmp dword [esi + 0x1c], 8
mov dword [ebp - 0x1118], eax
mov dword [ebp - 0x1114], eax
mov dword [ebp - 0x1110], eax
lea eax, [esi + 8]
mov dword [ebp - 0x113c], 3
mov dword [ebp - 0x1134], ecx
mov dword [ebp - 0x112c], edi
mov dword [ebp - 0x1130], edi
jb 0x40e143
mov eax, dword [eax]
lea edx, [ebp - 0x1118]
push edx
mov edx, dword [esi]
lea ecx, [ebp - 0x113c]
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x40e28e
mov edi, dword [ebp - 0x10d0]
push 0xc
lea eax, [ebp - 0x1118]
push eax
push 0x26
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40e199
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call ebx
test eax, eax
je 0x40e199
mov byte [ebp - 0x10d1], 1
mov eax, dword [ebp - 0x1114]
test eax, eax
je 0x40e1aa
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1110]
test eax, eax
je 0x40e29a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40e29a
mov edi, dword [ebp - 0x10f4]
test edi, edi
je 0x40e2bc
xor ecx, ecx
xor eax, eax
push 0x206
push ecx
lea edx, [ebp - 0x216]
mov dword [ebp - 0x1124], eax
push edx
mov dword [ebp - 0x1120], eax
mov dword [ebp - 0x111c], eax
mov dword [ebp - 0x1124], 3
mov word [ebp - 0x218], cx
call fcn.00412330
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00414389
mov edi, dword [ebp - 0x10f0]
add esp, 0x18
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x1120], ecx
test edi, edi
je 0x40e272
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x626]
push eax
mov word [ebp - 0x628], dx
call fcn.00412330
push edi
lea ecx, [ebp - 0x628]
push 0x104
push ecx
call fcn.00414389
lea edx, [ebp - 0x628]
add esp, 0x18
mov dword [ebp - 0x111c], edx
mov ecx, dword [ebp - 0x10d0]
push 0xc
lea eax, [ebp - 0x1124]
push eax
push 0x26
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x40e29a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov eax, dword [ebp - 0x10f8]
test eax, eax
je 0x40e2ab
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10f4]
test eax, eax
je 0x40e2bc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10f0]
test eax, eax
je 0x40e2cd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x10d1], 0
je 0x40ebcb
mov eax, dword [esi + 0xdc]
xor ebx, ebx
cmp eax, ebx
je 0x40e318
mov ecx, dword [esi + 0xe0]
lea edx, [ebp - 0x10c8]
push edx
mov edx, dword [ebp - 0x10d0]
push ecx
push eax
push edx
mov dword [ebp - 0x10c8], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x40e318
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
mov edi, dword [ebp - 0x10d0]
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40ebbf
push ebx
lea eax, [ebp - 0x10cc]
push eax
push ebx
push ebx
push 0x16
mov dword [ebp - 0x10cc], ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
call ebx
test eax, eax
jne 0x40e35c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40e744
mov eax, dword [ebp - 0x10cc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411721
mov edi, eax
add esp, 4
mov dword [ebp - 0x10d8], edi
test edi, edi
je 0x40e744
mov eax, dword [ebp - 0x10cc]
lea ecx, [eax + eax]
push ecx
push 0
push edi
call fcn.00412330
mov eax, dword [ebp - 0x10d0]
add esp, 0xc
push 0
lea edx, [ebp - 0x10cc]
push edx
push edi
push 0
push 0x16
push eax
call ebx
test eax, eax
je 0x40e73b
lea ebx, [esi + 0x40]
push edi
mov ecx, ebx
call fcn.0040ab30
xor eax, eax
mov dword [ebp - 0x10e8], eax
mov dword [ebp - 0x10e4], eax
mov dword [ebp - 0x10e0], eax
push 0x42c588
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 2
call fcn.0040aae0
cmp byte [esi + 0x158], 0
mov byte [ebp - 4], 3
jne 0x40e460
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x106c]
call fcn.0040ab30
push 0
lea ecx, [ebp - 0x10e8]
push ecx
push ebx
push 1
lea edx, [ebp - 0x106c]
push 0
push edx
call fcn.0040c9a0
add esp, 0x18
test al, al
je 0x40e460
mov ecx, dword [ebp - 0x10e4]
mov edi, dword [ebp - 0x10e8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40e460
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x78]
push edi
call fcn.00408bc0
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x106c]
call fcn.0040ab30
push 0
lea ecx, [ebp - 0x10e8]
push ecx
push ebx
push 1
lea edx, [ebp - 0x106c]
push 0
push edx
call fcn.0040c9a0
add esp, 0x18
test al, al
je 0x40e4cb
mov ecx, dword [ebp - 0x10e4]
mov edi, dword [ebp - 0x10e8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40e4cb
cmp dword [edi + 0x14], 8
jb 0x40e4bc
mov edi, dword [edi]
push edi
call fcn.00414402
add esp, 4
mov dword [esi + 0xa0], eax
push str.Location:__0_9_
lea ecx, [ebp - 0x106c]
call fcn.0040ab30
push 0
lea ecx, [ebp - 0x10e8]
push ecx
push ebx
push 1
lea edx, [ebp - 0x106c]
push 0
push edx
call fcn.0040c9a0
add esp, 0x18
test al, al
je 0x40e52f
mov ecx, dword [ebp - 0x10e4]
mov edi, dword [ebp - 0x10e8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40e52f
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esi + 0x194]
call fcn.00408bc0
push str.Content_Type:__A_Za_z0_9___.__n
lea ecx, [ebp - 0x106c]
call fcn.0040ab30
push 0
lea ecx, [ebp - 0x10e8]
push ecx
push ebx
push 1
lea edx, [ebp - 0x106c]
push 0
push edx
call fcn.0040c9a0
add esp, 0x18
test al, al
je 0x40e593
mov ecx, dword [ebp - 0x10e4]
mov edi, dword [ebp - 0x10e8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40e593
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esi + 0x1c0]
call fcn.00408bc0
push str.Accept_Ranges:__A_Za_z__n
lea ecx, [ebp - 0x106c]
call fcn.0040ab30
push 0
lea ecx, [ebp - 0x10e8]
push ecx
push ebx
push 1
lea edx, [ebp - 0x106c]
push 1
push edx
call fcn.0040c9a0
add esp, 0x18
test al, al
je 0x40e5f7
mov ecx, dword [ebp - 0x10e4]
mov edi, dword [ebp - 0x10e8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40e5f7
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esi + 0x1dc]
call fcn.00408bc0
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x106c]
call fcn.0040ab30
push 0
lea ecx, [ebp - 0x10e8]
push ecx
push ebx
push 1
lea edx, [ebp - 0x106c]
push 0
push edx
call fcn.0040c9a0
add esp, 0x18
test al, al
je 0x40e715
mov edi, dword [ebp - 0x10e4]
mov ecx, dword [ebp - 0x10e8]
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x40e715
xor ebx, ebx
test edi, edi
je 0x40e699
mov dword [ebp - 0x10c8], ecx
nop
mov eax, dword [ebp - 0x10c8]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0xa4]
call fcn.004093d0
lea eax, [edi - 1]
cmp ebx, eax
je 0x40e68d
push 0x42c5b4
lea ecx, [esi + 0xa4]
call fcn.0040ab60
add dword [ebp - 0x10c8], 0x1c
inc ebx
cmp ebx, edi
jb 0x40e660
push 0x42c5b0
lea ecx, [ebp - 0x10a4]
call fcn.0040aae0
lea ecx, [ebp - 0x10a4]
push ecx
lea edi, [esi + 0xa4]
lea edx, [ebp - 0x10c0]
push edi
push edx
mov byte [ebp - 4], 4
call fcn.0040bfe0
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0040af50
lea ecx, [ebp - 0x10c0]
call fcn.00406d50
lea ecx, [ebp - 0x10a4]
mov byte [ebp - 4], 3
call fcn.00406d50
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x40e715
dec eax
push eax
mov ecx, edi
call fcn.00406100
cmp word [eax], 0x3b
je 0x40e715
push 0x42c5ac
mov ecx, edi
call fcn.0040ab60
lea ecx, [ebp - 0x106c]
call fcn.00406d50
lea ecx, [ebp - 0x10e8]
mov byte [ebp - 4], 0
call fcn.0040c6c0
mov edi, dword [ebp - 0x10d8]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
call fcn.0041313e
add esp, 4
mov ecx, dword [ebp - 0x10d0]
push 0
lea eax, [ebp - 0x10cc]
push eax
push 0
push 0
push 0x13
push ecx
mov dword [ebp - 0x10cc], 0
call ebx
test eax, eax
jne 0x40e775
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40e7df
mov eax, dword [ebp - 0x10cc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411721
mov edi, eax
add esp, 4
test edi, edi
je 0x40e7df
mov eax, dword [ebp - 0x10cc]
lea ecx, [eax + eax]
push ecx
push 0
push edi
call fcn.00412330
mov eax, dword [ebp - 0x10d0]
add esp, 0xc
push 0
lea edx, [ebp - 0x10cc]
push edx
push edi
push 0
push 0x13
push eax
call ebx
test eax, eax
je 0x40e7d6
push edi
lea ecx, [esi + 0x120]
call fcn.0040ab30
push edi
call fcn.0041313e
add esp, 4
cmp byte [ebp + 0x10], 0
jne 0x40ebda
mov eax, dword [esi + 0x94]
xor edi, edi
mov dword [ebp - 0x10c8], 0x19000
cmp eax, edi
je 0x40e80e
push eax
call fcn.0041313e
add esp, 4
mov dword [esi + 0x94], edi
push 0x19000
call fcn.00411721
add esp, 4
mov dword [esi + 0x94], eax
cmp eax, edi
je 0x40ebe9
push 0x19000
push edi
push eax
call fcn.00412330
add esp, 0xc
jmp 0x40e840
mov edx, dword [ebp - 0x10d0]
lea ecx, [ebp - 0x10cc]
push ecx
push edx
mov dword [ebp - 0x10cc], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40e962
push edi
mov ecx, esi
call fcn.00401340
mov eax, dword [ebp - 0x10cc]
inc eax
push eax
call fcn.00411721
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1150], ebx
test ebx, ebx
je 0x40e96e
mov ecx, dword [ebp - 0x10cc]
inc ecx
push ecx
push 0
push ebx
call fcn.00412330
mov eax, dword [ebp - 0x10cc]
mov ecx, dword [ebp - 0x10d0]
add esp, 0xc
lea edx, [ebp - 0x10d8]
push edx
push eax
push ebx
push ecx
mov dword [ebp - 0x10d8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40e957
mov edx, dword [ebp - 0x10d8]
add edx, edi
cmp edx, dword [ebp - 0x10c8]
jbe 0x40e938
mov eax, dword [ebp - 0x10c8]
mov ebx, dword [esi + 0x94]
add eax, eax
push eax
mov dword [ebp - 0x10c8], eax
call fcn.00411721
add esp, 4
mov dword [esi + 0x94], eax
test eax, eax
je 0x40e97d
mov ecx, dword [ebp - 0x10c8]
push ecx
push 0
push eax
mov dword [ebp - 0x10c8], ecx
call fcn.00412330
mov eax, dword [esi + 0x94]
push edi
push ebx
push eax
call fcn.00411a90
push ebx
call fcn.0041313e
mov ebx, dword [ebp - 0x1150]
add esp, 0x1c
mov ecx, dword [ebp - 0x10d8]
mov edx, dword [esi + 0x94]
push ecx
add edx, edi
push ebx
push edx
call fcn.00411a90
add esp, 0xc
add edi, dword [ebp - 0x10d8]
push ebx
call fcn.0041313e
add esp, 4
jmp 0x40e96e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp dword [ebp - 0x10cc], 0
ja 0x40e840
jmp 0x40e98a
mov dword [esi + 0x94], ebx
mov byte [ebp - 0x10c2], 0
push edi
mov ecx, esi
call fcn.00401340
lea eax, [esi + 0x78]
mov dword [esi + 0x98], edi
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x10d8], 1
jb 0x40e9af
mov eax, dword [eax]
push 5
push str.utf_8
push eax
call fcn.0041283d
add esp, 0xc
test eax, eax
jne 0x40e9ce
mov ebx, 0xfde9
mov dword [ebp - 0x10d8], eax
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
mov edx, dword [ebp - 0x10d8]
push 0
push 0
inc eax
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x40ea25
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
xor ebx, ebx
push ebx
push ebx
inc eax
push eax
push ecx
push 1
push ebx
mov dword [ebp - 0x10d8], 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x40eaa6
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411721
add esp, 4
mov dword [ebp - 0x10c8], eax
test eax, eax
je 0x40eaa6
mov ecx, dword [ebp - 0x10c8]
lea eax, [edi + edi]
push eax
push 0
push ecx
call fcn.00412330
mov edx, dword [ebp - 0x10c8]
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
add esp, 0xc
push edi
push edx
mov edx, dword [ebp - 0x10d8]
inc eax
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x40ea97
mov eax, dword [ebp - 0x10c8]
push eax
lea ecx, [esi + 0x5c]
call fcn.0040ab30
mov ecx, dword [ebp - 0x10c8]
push ecx
call fcn.0041313e
add esp, 4
lea edx, [ebp - 0x1088]
push 0x42c724
push edx
mov byte [ebp - 0x10c1], 1
call fcn.00407340
add esp, 8
test al, al
je 0x40ec00
cmp byte [ebp + 0xc], 0
jne 0x40ec00
push str._html_
lea ecx, [ebp - 0x106c]
call fcn.0040aae0
xor ebx, ebx
mov dword [ebp - 0x110c], ebx
mov dword [ebp - 0x1108], ebx
mov dword [ebp - 0x1104], ebx
push ebx
lea eax, [ebp - 0x110c]
push eax
lea edi, [esi + 0x5c]
push edi
push 1
lea ecx, [ebp - 0x106c]
push ebx
push ecx
mov byte [ebp - 4], 7
call fcn.0040c9a0
add esp, 0x18
test al, al
je 0x40eba3
mov ecx, dword [ebp - 0x1108]
sub ecx, dword [ebp - 0x110c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40eba3
push str.__html_
lea ecx, [ebp - 0x106c]
call fcn.0040ab30
push ebx
lea ecx, [ebp - 0x110c]
push ecx
push edi
push 1
lea edx, [ebp - 0x106c]
push ebx
push edx
call fcn.0040c9a0
add esp, 0x18
test al, al
je 0x40eb92
mov ecx, dword [ebp - 0x1108]
sub ecx, dword [ebp - 0x110c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40eba3
mov dword [esi + 0x11c], 0xd
mov byte [ebp - 0x10c1], 0
lea ecx, [ebp - 0x110c]
call fcn.0040c6c0
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 0
call fcn.00406d50
jmp 0x40ebcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x11c], eax
cmp byte [ebp - 0x10c1], 0
je 0x40de55
jmp 0x40ec00
lea ecx, [ebp - 0x1088]
call fcn.00406d50
mov al, 1
jmp 0x40ec61
mov byte [ebp - 0x10c2], 0
cmp byte [ebp - 0x10c1], 0
jne 0x40ec00
mov byte [ebp - 0x10c2], 0
mov ecx, dword [ebp - 0x10d0]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [ebp - 0x114c]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, 8
cmp dword [ebp - 0x1074], ebx
jb 0x40ec36
mov edx, dword [ebp - 0x1088]
push edx
call fcn.004119f5
add esp, 4
mov al, byte [ebp - 0x10c2]
jmp 0x40ec61
mov dword [esi + 0x11c], 0x57
cmp dword [ebp - 0x1074], ebx
jb 0x40ec5f
mov eax, dword [ebp - 0x1088]
push eax
call fcn.004119f5
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412c12
mov esp, ebp
pop ebp
ret 0xc