Function at 0x40d27d
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 0x4352d2
mov eax, dword fs:[0]
push eax
mov eax, 0x1170
call fcn.00410fd0
mov eax, dword [0x448144]
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 ebx, ecx
mov dword [ebp - 0x1108], ebx
cmp dword [ebx + 0x18], 0
mov eax, dword [ebp + 8]
ja 0x40d2d1
mov dword [ebx + 0xf8], 3
xor al, al
jmp 0x40e211
and dword [ebp - 0x1070], 0
lea ecx, [ebp - 0x1080]
and dword [ebp - 0x106c], 0
push eax
call fcn.00402cb5
xor edi, edi
lea eax, [ebp - 0x1080]
cmp dword [ebp - 0x106c], 8
mov esi, 0x436958
push esi
cmovae eax, dword [ebp - 0x1080]
push eax
mov dword [ebp - 4], edi
call fcn.00418f58
pop ecx
pop ecx
test eax, eax
je 0x40d366
cmp dword [ebp - 0x106c], 8
lea eax, [ebp - 0x1080]
mov esi, str.POST
cmovae eax, dword [ebp - 0x1080]
push esi
push eax
call fcn.00418f58
pop ecx
pop ecx
test eax, eax
je 0x40d366
cmp dword [ebp - 0x106c], 8
lea eax, [ebp - 0x1080]
mov esi, 0x4369f4
cmovae eax, dword [ebp - 0x1080]
push esi
push eax
call fcn.00418f58
pop ecx
pop ecx
test eax, eax
jne 0x40e1ef
push esi
lea ecx, [ebp - 0x1080]
call fcn.00402ea0
xor eax, eax
inc eax
mov byte [ebp - 0x10b1], al
mov eax, dword [ebx]
test eax, eax
jne 0x40d3b5
lea eax, [ebx + 0x114]
cmp dword [eax + 0x14], 8
jb 0x40d38f
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 [ebx], eax
test eax, eax
jne 0x40d3b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
jmp 0x40e1f9
xor edi, edi
push dword [ebx + 0x184]
push dword [ebx + 0x180]
push dword [ebx + 0x17c]
push dword [ebx + 0x178]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov si, word [0x442c18]
lea eax, [ebp - 0x41e]
push 0x206
push edi
push eax
mov word [ebp - 0x420], si
call fcn.00412770
push 0xa26
lea eax, [ebp - 0x104e]
mov word [ebp - 0x1050], si
push edi
push eax
call fcn.00412770
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x117c]
push edi
push eax
call fcn.00412770
lea eax, [ebp - 0x420]
mov dword [ebp - 0x117c], esi
mov dword [ebp - 0x116c], eax
add esp, 0x24
cmp dword [ebx + 0x1c], 8
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1150], eax
lea eax, [ebx + 8]
mov dword [ebp - 0x1168], 0x104
mov dword [ebp - 0x114c], 0x514
mov dword [ebp - 0x1174], 1
jb 0x40d469
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x117c]
push ecx
push edi
push dword [ebx + 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x40e200
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebx + 0x20]
call fcn.00402ea0
push edi
push dword [ebp - 0x1164]
lea eax, [ebp - 0x420]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0x1110], edx
test edx, edx
je 0x40e200
push 2
pop esi
cmp dword [ebp - 0x1170], esi
mov eax, 0x800100
mov ecx, 0x100
cmove ecx, eax
cmp dword [ebp - 0x106c], 8
push ecx
lea eax, [ebp - 0x1080]
cmovae eax, dword [ebp - 0x1080]
xor ecx, ecx
push ecx
push ecx
push ecx
push dword [ebp - 0x1150]
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x10c4], esi
test esi, esi
je 0x40e1e1
cmp byte [ebx + 4], 0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jne 0x40d535
push 2
pop eax
cmp dword [ebp - 0x1170], eax
jne 0x40d535
push 4
lea eax, [ebp - 0x10b8]
mov dword [ebp - 0x10b8], 0x3100
push eax
push 0x1f
push esi
call edi
mov byte [ebp - 0x10b2], 0
xor ecx, ecx
mov dword [ebp - 0x1104], 0x18
mov eax, ecx
inc ecx
mov dword [ebp - 0x110c], ecx
cmp eax, 3
jae 0x40e1bd
mov ecx, dword [ebx + 0xd8]
test ecx, ecx
je 0x40d590
lea eax, [ebx + 0xc8]
cmp dword [eax + 0x14], 8
jb 0x40d572
mov eax, dword [eax]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x40d590
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
cmp dword [ebx + 0xb8], 0
jbe 0x40d632
and dword [ebp - 0x1058], 0
lea ecx, [ebp - 0x1068]
xor eax, eax
mov dword [ebp - 0x1054], 7
push 0x4374f4
mov word [ebp - 0x1068], ax
call fcn.00402ea0
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebx + 0xa8]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40d5dd
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x1068]
call fcn.0040432f
cmp dword [ebp - 0x1054], 8
lea eax, [ebp - 0x1068]
push 0x1000000
push dword [ebp - 0x1058]
cmovae eax, dword [ebp - 0x1068]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x40d623
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
lea ecx, [ebp - 0x1068]
mov byte [ebp - 4], 0
call fcn.00402db4
cmp dword [ebx + 0xf0], 0
jbe 0x40d72c
mov ax, word [0x442c18]
xorps xmm0, xmm0
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push 0
push eax
movlpd qword [ebp - 0x1124], xmm0
mov dword [ebp - 0x1128], 3
call fcn.00412770
lea eax, [ebx + 0xe0]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40d685
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041a1b8
add esp, 0xc
lea eax, [ebp - 0x218]
mov dword [ebp - 0x1124], eax
lea eax, [ebp - 0x1128]
push 0xc
push eax
push 0x26
push esi
call edi
test eax, eax
jne 0x40d6c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
mov eax, dword [ebx + 0x140]
test eax, eax
je 0x40d72c
lea ecx, [ebx + 0x130]
cmp dword [ecx + 0x14], 8
jb 0x40d6dc
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1002
push esi
call edi
test eax, eax
jne 0x40d6f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
mov eax, dword [ebx + 0x158]
test eax, eax
je 0x40d72c
lea ecx, [ebx + 0x148]
cmp dword [ecx + 0x14], 8
jb 0x40d710
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1003
push esi
call edi
test eax, eax
jne 0x40d72c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
cmp byte [ebp + 0xc], 0
je 0x40d759
push 2
pop eax
push 4
mov dword [ebp - 0x10b8], eax
lea eax, [ebp - 0x10b8]
push eax
push 0x3f
push esi
call edi
test eax, eax
jne 0x40d759
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
xor eax, eax
push eax
push dword [ebx + 0xc4]
mov byte [ebp - 0x10d8], al
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40d9aa
lea edi, [ebp - 0x10f4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10f4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x40d991
mov eax, dword [ebp - 0x10f0]
test eax, eax
je 0x40d87a
and dword [ebp - 0x1130], 0
lea edi, [ebp - 0x1100]
and dword [ebp - 0x1134], 0
xor ecx, ecx
mov dword [ebp - 0x1138], eax
inc ecx
xor eax, eax
mov dword [ebp - 0x1140], 3
cmp dword [ebx + 0x1c], 8
stosd dword es:[edi], eax
mov dword [ebp - 0x113c], ecx
mov dword [ebp - 0x112c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebx + 8]
jb 0x40d7ec
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x1100]
push ecx
lea ecx, [ebp - 0x1140]
push ecx
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x40d944
push 0xc
lea eax, [ebp - 0x1100]
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x40d847
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ecx, dword [ebp - 0x10d8]
test eax, eax
push 1
movzx ecx, cl
pop eax
cmovne ecx, eax
mov dword [ebp - 0x10d8], ecx
cmp dword [ebp - 0x10fc], 0
je 0x40d85c
push dword [ebp - 0x10fc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x10f8], 0
je 0x40d950
push dword [ebp - 0x10f8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40d950
cmp dword [ebp - 0x10ec], 0
je 0x40d97a
mov ax, word [0x442c18]
mov edi, 0x206
push edi
mov word [ebp - 0x218], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x216]
movlpd qword [ebp - 0x1118], xmm0
push 0
push eax
mov dword [ebp - 0x111c], 3
call fcn.00412770
push dword [ebp - 0x10ec]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041a1b8
add esp, 0x18
lea eax, [ebp - 0x218]
cmp dword [ebp - 0x10e8], 0
mov dword [ebp - 0x1118], eax
je 0x40d92e
mov ax, word [0x442c18]
push edi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push 0
push eax
call fcn.00412770
push dword [ebp - 0x10e8]
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0041a1b8
lea eax, [ebp - 0x628]
add esp, 0x18
mov dword [ebp - 0x1114], eax
push 0xc
lea eax, [ebp - 0x111c]
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x40d950
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
cmp dword [ebp - 0x10f0], 0
je 0x40d965
push dword [ebp - 0x10f0]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x10ec], 0
je 0x40d97a
push dword [ebp - 0x10ec]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x10e8], 0
je 0x40d99d
push dword [ebp - 0x10e8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40d99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
cmp byte [ebp - 0x10d8], 0
je 0x40e19c
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x40d9e0
and dword [ebp - 0x10b8], 0
lea ecx, [ebp - 0x10b8]
push ecx
push dword [ebx + 0xc4]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x40d9e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40e190
xor ecx, ecx
lea eax, [ebp - 0x10bc]
push ecx
push eax
push ecx
push ecx
push 0x16
push esi
mov dword [ebp - 0x10bc], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40da1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40dd48
mov eax, dword [ebp - 0x10bc]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410a3b
mov edi, eax
mov dword [ebp - 0x10c8], edi
pop ecx
test edi, edi
je 0x40dd48
mov ecx, dword [ebp - 0x10bc]
add ecx, ecx
push ecx
push 0
push edi
call fcn.00412770
add esp, 0xc
lea eax, [ebp - 0x10bc]
push 0
push eax
push edi
push 0
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40dd41
lea esi, [ebx + 0x38]
push edi
mov ecx, esi
call fcn.00402ea0
xor eax, eax
mov dword [ebp - 0x10d4], eax
mov dword [ebp - 0x10d0], eax
mov dword [ebp - 0x10cc], eax
push 2
pop ecx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x1068]
push 0x442c18
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x1054], 7
mov word [ebp - 0x1068], ax
call fcn.00402ea0
cmp byte [ebx + 0x12c], 0
mov byte [ebp - 4], 3
jne 0x40db2b
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x1068]
call fcn.00402ea0
push 0
lea eax, [ebp - 0x10d4]
push eax
xor eax, eax
push esi
inc eax
push eax
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.0040cd6b
add esp, 0x18
test al, al
je 0x40db2b
mov eax, dword [ebp - 0x10d0]
sub eax, dword [ebp - 0x10d4]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x40db2b
push dword [ebp - 0x10d4]
lea ecx, [ebx + 0x68]
call fcn.00408acf
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x1068]
call fcn.00402ea0
push 0
lea eax, [ebp - 0x10d4]
push eax
xor eax, eax
push esi
inc eax
push eax
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.0040cd6b
add esp, 0x18
test al, al
je 0x40db8c
mov eax, dword [ebp - 0x10d0]
mov ecx, dword [ebp - 0x10d4]
sub eax, ecx
cdq
idiv dword [ebp - 0x1104]
test eax, eax
je 0x40db8c
cmp dword [ecx + 0x14], 8
jb 0x40db7f
mov ecx, dword [ecx]
push ecx
call fcn.0041af13
pop ecx
mov dword [ebx + 0x8c], eax
push str.Location:__0_9_
lea ecx, [ebp - 0x1068]
call fcn.00402ea0
push 0
lea eax, [ebp - 0x10d4]
push eax
xor eax, eax
push esi
inc eax
push eax
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.0040cd6b
add esp, 0x18
test al, al
je 0x40dbe6
mov eax, dword [ebp - 0x10d0]
sub eax, dword [ebp - 0x10d4]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x40dbe6
push dword [ebp - 0x10d4]
lea ecx, [ebx + 0x160]
call fcn.00408acf
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x1068]
call fcn.00402ea0
push 0
lea eax, [ebp - 0x10d4]
push eax
xor eax, eax
push esi
inc eax
push eax
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.0040cd6b
add esp, 0x18
test al, al
je 0x40dd21
mov eax, dword [ebp - 0x10d0]
mov edi, dword [ebp - 0x10d4]
sub eax, edi
push 0x18
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x10b8], eax
test eax, eax
je 0x40dd1b
lea ecx, [ebx + 0x90]
xor esi, esi
mov dword [ebp - 0x10c0], ecx
mov ebx, ecx
push edi
mov ecx, ebx
call fcn.00406287
mov eax, dword [ebp - 0x10b8]
dec eax
cmp esi, eax
je 0x40dc6e
push 0x4375c4
mov ecx, ebx
call fcn.00404308
push 0x18
pop eax
inc esi
add edi, eax
cmp esi, dword [ebp - 0x10b8]
jb 0x40dc4f
mov ebx, dword [ebp - 0x1108]
lea ecx, [ebp - 0x1098]
and dword [ebp - 0x1088], 0
xor eax, eax
push 0x4374f0
mov dword [ebp - 0x1084], 7
lea esi, [ebx + 0x90]
mov word [ebp - 0x1098], ax
call fcn.00402ea0
lea eax, [ebp - 0x1098]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x10b0]
push esi
push eax
call fcn.0040e404
add esp, 0xc
mov ecx, esi
push eax
call fcn.00405d65
lea ecx, [ebp - 0x10b0]
call fcn.00402db4
lea ecx, [ebp - 0x1098]
mov byte [ebp - 4], 3
call fcn.00402db4
mov edx, dword [ebx + 0xa0]
test edx, edx
je 0x40dd1b
lea ecx, [ebx + 0x90]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x40dd09
mov eax, dword [ecx]
cmp word [eax + edx*2 - 2], 0x3b
je 0x40dd1b
push 0x4375cc
call fcn.00404308
mov edi, dword [ebp - 0x10c8]
lea ecx, [ebp - 0x1068]
call fcn.00402db4
lea ecx, [ebp - 0x10d4]
mov byte [ebp - 4], 0
call fcn.00402d3a
mov esi, dword [ebp - 0x10c4]
push edi
call fcn.00410fc2
pop ecx
xor ecx, ecx
lea eax, [ebp - 0x10bc]
push ecx
push eax
push ecx
push ecx
push 0x13
push esi
mov dword [ebp - 0x10bc], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40dd72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40ddde
mov eax, dword [ebp - 0x10bc]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410a3b
mov esi, eax
pop ecx
test esi, esi
je 0x40ddd8
mov ecx, dword [ebp - 0x10bc]
add ecx, ecx
push ecx
push 0
push esi
call fcn.00412770
add esp, 0xc
lea eax, [ebp - 0x10bc]
push 0
push eax
push esi
push 0
push 0x13
push dword [ebp - 0x10c4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40ddd1
push esi
lea ecx, [ebx + 0xfc]
call fcn.00402ea0
push esi
call fcn.00410fc2
pop ecx
mov esi, dword [ebp - 0x10c4]
mov eax, dword [ebx + 0x80]
xor edi, edi
mov dword [ebp - 0x10c0], edi
mov ecx, 0x2800
mov dword [ebp - 0x10b8], ecx
test eax, eax
je 0x40de08
push eax
call fcn.00410fc2
and dword [ebx + 0x80], edi
pop ecx
push 0x2800
call fcn.00410a3b
mov dword [ebx + 0x80], eax
pop ecx
test eax, eax
je 0x40e1b6
push 0x2800
push 0
push eax
call fcn.00412770
add esp, 0xc
and dword [ebp - 0x10bc], 0
lea eax, [ebp - 0x10bc]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40df4d
push edi
mov ecx, ebx
call fcn.0040e364
mov eax, dword [ebp - 0x10bc]
inc eax
push eax
call fcn.00410a3b
mov esi, eax
pop ecx
test esi, esi
je 0x40df38
mov ecx, dword [ebp - 0x10bc]
inc ecx
push ecx
push 0
push esi
call fcn.00412770
and dword [ebp - 0x10c8], 0
lea eax, [ebp - 0x10c8]
add esp, 0xc
push eax
push dword [ebp - 0x10bc]
push esi
push dword [ebp - 0x10c4]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40df31
mov ecx, dword [ebp - 0x10c8]
mov edx, dword [ebp - 0x10b8]
lea eax, [ecx + edi]
cmp eax, edx
jbe 0x40df12
mov edi, dword [ebx + 0x80]
add edx, edx
push edx
mov dword [ebp - 0x10b8], edx
call fcn.00410a3b
mov dword [ebx + 0x80], eax
pop ecx
test eax, eax
je 0x40df5b
mov ecx, dword [ebp - 0x10b8]
push ecx
push 0
push eax
call fcn.00412770
push dword [ebp - 0x10c0]
push edi
push dword [ebx + 0x80]
call fcn.00411c70
push edi
call fcn.00410fc2
mov ecx, dword [ebp - 0x10c8]
add esp, 0x1c
mov edi, dword [ebp - 0x10c0]
mov eax, dword [ebx + 0x80]
push ecx
add eax, edi
push esi
push eax
call fcn.00411c70
add esp, 0xc
add edi, dword [ebp - 0x10c8]
mov dword [ebp - 0x10c0], edi
push esi
call fcn.00410fc2
pop ecx
mov esi, dword [ebp - 0x10c4]
cmp dword [ebp - 0x10bc], 0
ja 0x40de31
jmp 0x40df6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
jmp 0x40df3e
mov dword [ebx + 0x80], edi
mov edi, dword [ebp - 0x10c0]
mov byte [ebp - 0x10b1], 0
push edi
mov ecx, ebx
call fcn.0040e364
xor eax, eax
mov dword [ebx + 0x84], edi
inc eax
xor esi, esi
mov edi, eax
mov dword [ebp - 0x10b8], eax
lea eax, [ebx + 0x68]
mov dword [ebp - 0x10c0], esi
cmp dword [eax + 0x14], 8
jb 0x40df9a
mov eax, dword [eax]
push 5
push 0x4375d0
push eax
call fcn.004190cd
add esp, 0xc
test eax, eax
jne 0x40dfc1
mov esi, 0xfde9
xor edi, edi
mov dword [ebp - 0x10c0], esi
mov dword [ebp - 0x10b8], edi
mov eax, dword [ebx + 0x84]
push 0
push 0
inc eax
push eax
push dword [ebx + 0x80]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call edi
mov esi, eax
test esi, esi
jg 0x40e00e
mov eax, dword [ebx + 0x84]
xor ecx, ecx
push ecx
xor edx, edx
mov dword [ebp - 0x10c0], ecx
inc edx
inc eax
push ecx
push eax
push dword [ebx + 0x80]
mov dword [ebp - 0x10b8], edx
push edx
push ecx
call edi
mov esi, eax
test esi, esi
jle 0x40e070
xor ecx, ecx
mov eax, esi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410a3b
mov edi, eax
pop ecx
test edi, edi
je 0x40e070
lea ecx, [esi + esi]
push ecx
push 0
push edi
call fcn.00412770
mov eax, dword [ebx + 0x84]
add esp, 0xc
inc eax
push esi
push edi
push eax
push dword [ebx + 0x80]
push dword [ebp - 0x10b8]
push dword [ebp - 0x10c0]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x40e069
push edi
lea ecx, [ebx + 0x50]
call fcn.00402ea0
push edi
call fcn.00410fc2
pop ecx
xor eax, eax
lea ecx, [ebp - 0x1080]
inc eax
push 0x436958
mov byte [ebp - 0x10b2], al
call fcn.0040624f
test al, al
je 0x40e1bd
cmp byte [ebp + 0xc], 0
jne 0x40e1bd
and dword [ebp - 0x1058], 0
lea ecx, [ebp - 0x1068]
xor eax, eax
mov dword [ebp - 0x1054], 7
push str._html_
mov word [ebp - 0x1068], ax
call fcn.00402ea0
xor ecx, ecx
mov dword [ebp - 0x10e4], ecx
mov dword [ebp - 0x10e0], ecx
mov dword [ebp - 0x10dc], ecx
push ecx
lea eax, [ebp - 0x10e4]
mov byte [ebp - 4], 6
push eax
xor eax, eax
lea esi, [ebx + 0x50]
push esi
inc eax
push eax
push ecx
lea eax, [ebp - 0x1068]
push eax
call fcn.0040cd6b
add esp, 0x18
test al, al
je 0x40e16e
mov eax, dword [ebp - 0x10e0]
sub eax, dword [ebp - 0x10e4]
push 0x18
cdq
pop edi
idiv edi
test eax, eax
je 0x40e16e
push str.__html_
lea ecx, [ebp - 0x1068]
call fcn.00402ea0
push 0
lea eax, [ebp - 0x10e4]
push eax
xor eax, eax
push esi
inc eax
push eax
lea eax, [ebp - 0x1068]
push 0
push eax
call fcn.0040cd6b
add esp, 0x18
test al, al
je 0x40e15d
mov eax, dword [ebp - 0x10e0]
sub eax, dword [ebp - 0x10e4]
cdq
idiv edi
test eax, eax
jne 0x40e16e
mov dword [ebx + 0xf8], 0xd
mov byte [ebp - 0x10b2], 0
lea ecx, [ebp - 0x10e4]
call fcn.00402d3a
lea ecx, [ebp - 0x1068]
mov byte [ebp - 4], 0
call fcn.00402db4
mov esi, dword [ebp - 0x10c4]
jmp 0x40e19c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
cmp byte [ebp - 0x10b2], 0
jne 0x40e1bd
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, dword [ebp - 0x110c]
jmp 0x40d548
mov byte [ebp - 0x10b1], 0
push dword [ebp - 0x10c4]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movzx eax, byte [ebp - 0x10b1]
xor ecx, ecx
cmp byte [ebp - 0x10b2], cl
cmovne ecx, eax
mov byte [ebp - 0x10b1], cl
push dword [ebp - 0x1110]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x40e200
mov dword [ebx + 0xf8], 0x57
mov byte [ebp - 0x10b1], 0
lea ecx, [ebp - 0x1080]
call fcn.00402db4
mov al, byte [ebp - 0x10b1]
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.00410188
leave
ret 8