Function at 0x40180e
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
mov eax, 0x115c
call fcn.00438300
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x50], esi
cmp dword [esi + 0x18], 0
ja 0x40183a
mov dword [esi + 0xf8], 3
xor al, al
jmp 0x402593
push dword [ebp + 8]
lea ecx, [ebp - 0x84]
call fcn.00405006
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
mov edi, 0x441fb8
cmovae eax, dword [ebp - 0x84]
push edi
push eax
call fcn.004268e6
pop ecx
pop ecx
test eax, eax
je 0x401892
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
mov edi, 0x441fc0
cmovae eax, dword [ebp - 0x84]
push edi
push eax
call fcn.004268e6
pop ecx
pop ecx
test eax, eax
jne 0x40257b
push edi
call fcn.0042728a
pop ecx
push eax
push edi
lea ecx, [ebp - 0x84]
call fcn.0040548d
xor eax, eax
lea ebx, [eax + 1]
mov eax, dword [esi]
mov byte [ebp + 0xb], bl
test eax, eax
jne 0x4018e0
lea eax, [esi + 0x114]
cmp dword [eax + 0x14], 8
jb 0x4018c2
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
test eax, eax
jne 0x4018e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40257e
push dword [esi + 0x184]
push dword [esi + 0x180]
push dword [esi + 0x17c]
push dword [esi + 0x178]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0x208
lea eax, [ebp - 0x528]
push 0
push eax
call fcn.004236d0
add esp, 0xc
lea eax, [ebp - 0x1158]
push 0xa28
push 0
push eax
call fcn.004236d0
add esp, 0xc
lea eax, [ebp - 0xe4]
push 0x3c
pop edi
push edi
push 0
push eax
call fcn.004236d0
lea eax, [ebp - 0x528]
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xd4], eax
add esp, 0xc
lea eax, [ebp - 0x1158]
mov dword [ebp - 0xd0], 0x104
mov dword [ebp - 0xb8], eax
xor eax, eax
inc eax
mov dword [ebp - 0xb4], 0x514
cmp dword [esi + 0x1c], 8
mov dword [ebp - 0xdc], eax
lea eax, [esi + 8]
jb 0x401987
mov eax, dword [esi + 8]
lea ecx, [ebp - 0xe4]
push ecx
push 0
push dword [esi + 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x402586
lea eax, [ebp - 0x528]
push eax
call fcn.0042728a
pop ecx
push eax
lea eax, [ebp - 0x528]
push eax
lea ecx, [esi + 0x20]
call fcn.0040548d
push 0
push dword [ebp - 0xcc]
lea eax, [ebp - 0x528]
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0x90], edx
test edx, edx
je 0x402586
push 2
pop edi
xor ecx, ecx
mov eax, 0x800000
cmp dword [ebp - 0xd8], edi
cmove ecx, eax
cmp dword [ebp - 0x70], 8
push ecx
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
xor ecx, ecx
push ecx
push ecx
push ecx
push dword [ebp - 0xb8]
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x40256d
cmp byte [esi + 4], 0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jne 0x401a54
push 2
pop eax
cmp dword [ebp - 0xd8], eax
jne 0x401a54
push 4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x3100
push eax
push 0x1f
push edi
call ebx
mov byte [ebp - 1], 0
xor ecx, ecx
mov dword [ebp - 0x34], 0x18
mov eax, ecx
inc ecx
mov dword [ebp - 0x8c], ecx
cmp eax, 3
jae 0x402554
mov ecx, dword [esi + 0xd8]
test ecx, ecx
je 0x401aa9
lea eax, [esi + 0xc8]
cmp dword [eax + 0x14], 8
jb 0x401a8b
mov eax, dword [eax]
push 0x1000000
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x401aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
cmp dword [esi + 0xb8], 0
jbe 0x401b0e
push str.Cookie:
lea ecx, [ebp - 0x4c]
call fcn.00404fd5
lea eax, [esi + 0xa8]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x401acf
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004058c7
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push 0x1000000
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x401b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
lea ecx, [ebp - 0x4c]
call fcn.0040545f
cmp dword [esi + 0xf0], 0
jbe 0x401c03
push 0xc
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004236d0
add esp, 0xc
mov dword [ebp - 0xa8], 3
lea eax, [ebp - 0x320]
push 0x208
push 0
push eax
call fcn.004236d0
lea eax, [esi + 0xe0]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x401b5c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x320]
push 0x104
push eax
call fcn.00426ac5
add esp, 0xc
lea eax, [ebp - 0x320]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa8]
push 0xc
push eax
push 0x26
push edi
call ebx
test eax, eax
jne 0x401b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
mov eax, dword [esi + 0x140]
test eax, eax
je 0x401c03
lea ecx, [esi + 0x130]
cmp dword [ecx + 0x14], 8
jb 0x401bb3
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1002
push edi
call ebx
test eax, eax
jne 0x401bcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
mov eax, dword [esi + 0x158]
test eax, eax
je 0x401c03
lea ecx, [esi + 0x148]
cmp dword [ecx + 0x14], 8
jb 0x401be7
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1003
push edi
call ebx
test eax, eax
jne 0x401c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
xor bl, bl
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x401e07
push 0x10
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004236d0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x401df3
cmp dword [ebp - 0x5c], 0
je 0x401d03
push 0x18
pop eax
push eax
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004236d0
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0x44], eax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x3c], eax
inc ecx
push 0xc
push eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], ecx
call fcn.004236d0
add esp, 0xc
lea eax, [esi + 8]
cmp dword [esi + 0x1c], 8
jb 0x401c96
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x401db8
push 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x26
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x401cdc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
cmp dword [ebp - 0x68], 0
je 0x401ceb
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x64], 0
je 0x401dc4
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x401dc4
cmp dword [ebp - 0x58], 0
je 0x401de2
push 0xc
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.004236d0
add esp, 0xc
mov dword [ebp - 0x9c], 3
lea eax, [ebp - 0x320]
push 0x208
push 0
push eax
call fcn.004236d0
add esp, 0xc
lea eax, [ebp - 0x320]
push dword [ebp - 0x58]
push 0x104
push eax
call fcn.00426ac5
add esp, 0xc
lea eax, [ebp - 0x320]
cmp dword [ebp - 0x54], 0
mov dword [ebp - 0x98], eax
je 0x401da2
push 0x208
lea eax, [ebp - 0x730]
push 0
push eax
call fcn.004236d0
add esp, 0xc
lea eax, [ebp - 0x730]
push dword [ebp - 0x54]
push 0x104
push eax
call fcn.00426ac5
lea eax, [ebp - 0x730]
add esp, 0xc
mov dword [ebp - 0x94], eax
push 0xc
lea eax, [ebp - 0x9c]
push eax
push 0x26
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x401dc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
cmp dword [ebp - 0x5c], 0
je 0x401dd3
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x58], 0
je 0x401de2
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x54], 0
je 0x401dff
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x401dff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
test bl, bl
je 0x402539
mov eax, dword [esi + 0xc0]
xor ebx, ebx
test eax, eax
je 0x401e38
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push ecx
push dword [esi + 0xc4]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x401e38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40252d
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x401e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402171
mov eax, dword [ebp - 8]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b5c0
mov ebx, eax
mov dword [ebp - 0x88], ebx
pop ecx
test ebx, ebx
je 0x40216f
mov ecx, dword [ebp - 8]
add ecx, ecx
push ecx
push 0
push ebx
call fcn.004236d0
add esp, 0xc
lea eax, [ebp - 8]
push 0
push eax
push ebx
push 0
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40215f
push ebx
call fcn.0042728a
pop ecx
push eax
lea edi, [esi + 0x38]
push ebx
mov ecx, edi
call fcn.0040548d
xor ebx, ebx
lea ecx, [ebp - 0x4c]
push 0x441ebc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00404fd5
cmp byte [esi + 0x12c], bl
jne 0x401f3e
push str.charset_A_Za_z0_9___
call fcn.0042728a
pop ecx
push eax
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x4c]
call fcn.0040548d
push ecx
lea eax, [ebp - 0x20]
push eax
push edi
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040121b
add esp, 0x10
test al, al
je 0x401f3e
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x401f3e
push dword [ebp - 0x20]
lea ecx, [esi + 0x68]
call fcn.00404f3f
push str.Content_Length:__0_9_
call fcn.0042728a
pop ecx
push eax
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x4c]
call fcn.0040548d
push ecx
lea eax, [ebp - 0x20]
push eax
push edi
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040121b
add esp, 0x10
test al, al
je 0x401f92
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
cdq
idiv dword [ebp - 0x34]
test eax, eax
je 0x401f92
cmp dword [ecx + 0x14], 8
jb 0x401f85
mov ecx, dword [ecx]
push ecx
call fcn.00426a51
pop ecx
mov dword [esi + 0x8c], eax
push str.Location:__0_9_
call fcn.0042728a
pop ecx
push eax
push str.Location:__0_9_
lea ecx, [ebp - 0x4c]
call fcn.0040548d
push ecx
lea eax, [ebp - 0x20]
push eax
push edi
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040121b
add esp, 0x10
test al, al
je 0x401fdf
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x401fdf
push dword [ebp - 0x20]
lea ecx, [esi + 0x160]
call fcn.00404f3f
push str.Set_Cookie:_b.__n
call fcn.0042728a
pop ecx
push eax
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x4c]
call fcn.0040548d
push ecx
lea eax, [ebp - 0x20]
push eax
push edi
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040121b
add esp, 0x10
test al, al
je 0x402109
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
push 0x18
cdq
pop edi
idiv edi
test eax, eax
je 0x402109
mov eax, ebx
lea edi, [esi + 0x90]
mov dword [ebp - 0xc], eax
mov esi, eax
add eax, ecx
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x402041
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.004058c7
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [ebp - 0x20]
sub eax, ecx
cdq
idiv dword [ebp - 0x34]
dec eax
cmp esi, eax
je 0x40207a
mov ebx, 0x44209c
push ebx
call fcn.0042728a
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.004058c7
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push 0x18
pop eax
add dword [ebp - 0xc], eax
sub ebx, ecx
mov eax, ebx
inc esi
push 0x18
cdq
pop ebx
idiv ebx
cmp esi, eax
mov eax, dword [ebp - 0xc]
jb 0x402035
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0xfc]
push 0x441fb4
call fcn.00404fd5
lea eax, [ebp - 0xfc]
mov edx, edi
push eax
lea ecx, [ebp - 0x114]
call fcn.00401513
pop ecx
push eax
mov ecx, edi
call fcn.00404f68
lea ecx, [ebp - 0x114]
call fcn.0040545f
lea ecx, [ebp - 0xfc]
call fcn.0040545f
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x402109
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4020ec
mov eax, dword [edi]
cmp word [eax + ecx*2 - 2], 0x3b
je 0x402109
mov ebx, 0x4420a4
push ebx
call fcn.0042728a
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.004058c7
lea ecx, [ebp - 0x4c]
call fcn.0040545f
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x40215c
mov ebx, dword [ebp - 0x1c]
cmp edi, ebx
je 0x402135
push 0x18
pop esi
mov ecx, edi
call fcn.0040545f
add edi, esi
cmp edi, ebx
jne 0x402122
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
sub eax, edi
push 0x18
pop ecx
cdq
idiv ecx
imul eax, eax, 0x18
push eax
push edi
call fcn.00406fe9
mov edi, dword [ebp - 0x14]
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
jmp 0x402161
mov edi, dword [ebp - 0x14]
xor ebx, ebx
push dword [ebp - 0x88]
call fcn.0040b1b1
pop ecx
jmp 0x402171
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push 0x13
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x402193
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4021f5
mov eax, dword [ebp - 8]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b5c0
mov edi, eax
pop ecx
test edi, edi
je 0x4021f2
mov ecx, dword [ebp - 8]
add ecx, ecx
push ecx
push ebx
push edi
call fcn.004236d0
add esp, 0xc
lea eax, [ebp - 8]
push ebx
push eax
push edi
push ebx
push 0x13
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4021eb
push edi
call fcn.0042728a
pop ecx
push eax
push edi
lea ecx, [esi + 0xfc]
call fcn.0040548d
push edi
call fcn.0040b1b1
pop ecx
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0x80]
mov ecx, 0x2800
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
test eax, eax
je 0x402218
push eax
call fcn.0040b1b1
and dword [esi + 0x80], 0
pop ecx
push 0x2800
call fcn.0040b5c0
mov dword [esi + 0x80], eax
pop ecx
test eax, eax
je 0x402550
push 0x2800
push 0
push eax
call fcn.004236d0
add esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x402324
push ebx
mov ecx, esi
call fcn.0040259a
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.0040b5c0
mov edi, eax
pop ecx
test edi, edi
je 0x402315
mov ecx, dword [ebp - 8]
inc ecx
push ecx
push 0
push edi
call fcn.004236d0
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
add esp, 0xc
push eax
push dword [ebp - 8]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40230e
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
lea eax, [ecx + ebx]
cmp eax, edx
jbe 0x4022f5
mov ebx, dword [esi + 0x80]
add edx, edx
push edx
mov dword [ebp - 0x10], edx
call fcn.0040b5c0
mov dword [esi + 0x80], eax
pop ecx
test eax, eax
je 0x402332
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push eax
call fcn.004236d0
add esp, 0xc
push dword [ebp - 0xc]
push ebx
push dword [esi + 0x80]
call fcn.00422100
add esp, 0xc
push ebx
call fcn.0040b1b1
mov ebx, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + 0x80]
push ecx
add eax, ebx
push edi
push eax
call fcn.00422100
add esp, 0xc
add ebx, dword [ebp - 0x30]
mov dword [ebp - 0xc], ebx
push edi
call fcn.0040b1b1
pop ecx
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
ja 0x402241
jmp 0x40233f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
jmp 0x402318
mov dword [esi + 0x80], ebx
mov ebx, dword [ebp - 0xc]
mov byte [ebp + 0xb], 0
push ebx
mov ecx, esi
call fcn.0040259a
xor eax, eax
mov dword [esi + 0x84], ebx
inc eax
xor ebx, ebx
mov edi, eax
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x68]
mov dword [ebp - 0xc], ebx
cmp dword [eax + 0x14], 8
jb 0x402365
mov eax, dword [eax]
push 5
push 0x4420a8
push eax
call fcn.00427562
add esp, 0xc
test eax, eax
jne 0x402386
mov ebx, 0xfde9
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x84]
push 0
push 0
inc eax
push eax
push dword [esi + 0x80]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
call edi
mov ebx, eax
test ebx, ebx
jg 0x4023cd
mov eax, dword [esi + 0x84]
xor ecx, ecx
push ecx
xor edx, edx
mov dword [ebp - 0xc], ecx
inc edx
inc eax
push ecx
push eax
push dword [esi + 0x80]
mov dword [ebp - 0x10], edx
push edx
push ecx
call edi
mov ebx, eax
test ebx, ebx
jle 0x402431
xor ecx, ecx
mov eax, ebx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b5c0
mov edi, eax
pop ecx
test edi, edi
je 0x402431
lea ecx, [ebx + ebx]
push ecx
push 0
push edi
call fcn.004236d0
mov eax, dword [esi + 0x84]
add esp, 0xc
inc eax
push ebx
push edi
push eax
push dword [esi + 0x80]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x40242a
push edi
call fcn.0042728a
pop ecx
push eax
push edi
lea ecx, [esi + 0x50]
call fcn.0040548d
push edi
call fcn.0040b1b1
pop ecx
xor eax, eax
lea ecx, [ebp - 0x84]
inc eax
mov byte [ebp - 1], al
call fcn.004064b3
test al, al
je 0x402554
push str._html_
lea ecx, [ebp - 0x4c]
call fcn.00404fd5
push ecx
xor eax, eax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x50]
push eax
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040121b
mov ebx, dword [ebp - 0x28]
add esp, 0x10
mov edi, dword [ebp - 0x2c]
test al, al
je 0x4024e0
mov eax, ebx
sub eax, edi
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4024e0
mov ebx, str.__html_
push ebx
call fcn.0042728a
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040548d
push ecx
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 0x50]
push eax
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040121b
mov ebx, dword [ebp - 0x28]
add esp, 0x10
mov edi, dword [ebp - 0x2c]
test al, al
je 0x4024d2
mov eax, ebx
sub eax, edi
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x4024e0
mov dword [esi + 0xf8], 0xd
mov byte [ebp - 1], 0
test edi, edi
je 0x402520
cmp edi, ebx
je 0x4024fe
push 0x18
pop esi
mov ecx, edi
call fcn.0040545f
add edi, esi
cmp edi, ebx
jne 0x4024eb
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
sub eax, edi
push 0x18
pop ecx
cdq
idiv ecx
imul eax, eax, 0x18
push eax
push edi
call fcn.00406fe9
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x4c]
call fcn.0040545f
mov edi, dword [ebp - 0x14]
jmp 0x402539
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xf8], eax
cmp byte [ebp - 1], 0
jne 0x402554
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, dword [ebp - 0x8c]
jmp 0x401a61
xor bl, bl
jmp 0x402557
mov bl, byte [ebp + 0xb]
push dword [ebp - 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor ecx, ecx
movzx eax, bl
cmp byte [ebp - 1], cl
cmovne ecx, eax
mov bl, cl
push dword [ebp - 0x90]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x402586
push 0x57
pop eax
mov dword [esi + 0xf8], eax
xor bl, bl
lea ecx, [ebp - 0x84]
call fcn.0040545f
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 8