Function at 0x401e10
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dfc8
mov eax, dword fs:[0]
push eax
mov eax, 0x1188
call fcn.0043fd60
mov eax, dword [0x45fbf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x18]
xor esi, esi
cmp eax, esi
ja 0x401e59
mov dword [ebx + 0x11c], 3
jmp 0x402e1b
xor eax, eax
push esi
mov word [ebp - 0x106c], ax
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x106c]
mov dword [ebp - 0x1058], 7
mov dword [ebp - 0x105c], esi
call fcn.00408750
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x106c]
mov edi, 8
cmp dword [ebp - 0x1058], edi
jae 0x401e9e
lea eax, [ebp - 0x106c]
push 0x4580ec
push eax
call fcn.0043be3e
add esp, 8
test eax, eax
jne 0x401eb9
push 3
mov eax, 0x4580ec
jmp 0x401eea
mov eax, dword [ebp - 0x106c]
cmp dword [ebp - 0x1058], edi
jae 0x401ecd
lea eax, [ebp - 0x106c]
push 0x4580f4
push eax
call fcn.0043be3e
add esp, 8
test eax, eax
jne 0x402dfa
push 4
mov eax, 0x4580f4
lea esi, [ebp - 0x106c]
call fcn.00408850
cmp dword [ebx], 0
mov byte [ebp - 0x10c2], 1
jne 0x401f4a
cmp dword [ebx + 0x150], edi
lea eax, [ebx + 0x13c]
jb 0x401f11
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx], eax
test eax, eax
jne 0x401f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp dword [ebp - 0x1058], edi
jb 0x402e1b
mov ecx, dword [ebp - 0x106c]
push ecx
jmp 0x402e13
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]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call fcn.0043d4b0
add esp, 0xc
xor eax, eax
push 0xa26
push eax
lea ecx, [ebp - 0x104e]
push ecx
mov word [ebp - 0x1050], ax
call fcn.0043d4b0
add esp, 0xc
push 0x3c
lea edx, [ebp - 0x1190]
push 0
push edx
call fcn.0043d4b0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x1180], eax
lea ecx, [ebp - 0x1050]
lea eax, [ebx + 8]
add esp, 0xc
mov dword [ebp - 0x1164], ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x1190], 0x3c
mov dword [ebp - 0x117c], 0x104
mov dword [ebp - 0x1160], 0x514
mov dword [ebp - 0x1188], 1
cmp dword [eax + 0x14], edi
jb 0x40200b
mov eax, dword [eax]
lea edx, [ebp - 0x1190]
push edx
push 0
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x402ddb
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov edi, 2
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x402032
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x24]
lea eax, [ebp - 0x420]
call fcn.00408850
mov eax, dword [ebp - 0x1178]
mov edx, dword [ebx]
push 0
push eax
lea ecx, [ebp - 0x420]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [ebp - 0x1150], esi
test esi, esi
je 0x402dd6
mov eax, dword [ebp - 0x106c]
xor ecx, ecx
cmp dword [ebp - 0x1184], edi
setne cl
dec ecx
and ecx, 0x800000
cmp dword [ebp - 0x1058], 8
jae 0x40209f
lea eax, [ebp - 0x106c]
push ecx
mov ecx, dword [ebp - 0x1164]
push 0
push 0
push 0
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x10d8], eax
test eax, eax
je 0x402dcf
cmp byte [ebx + 4], 0
jne 0x4020ed
cmp dword [ebp - 0x1184], edi
jne 0x4020ed
push 4
lea edx, [ebp - 0x10dc]
push edx
push 0x1f
push eax
mov dword [ebp - 0x10dc], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [ebp - 0x10c1], 0
mov dword [ebp - 0x10dc], 0
mov edi, edi
mov eax, dword [ebp - 0x10dc]
mov ecx, eax
inc eax
mov dword [ebp - 0x10dc], eax
cmp ecx, 3
jae 0x402dac
mov ecx, dword [ebx + 0xf4]
test ecx, ecx
je 0x402159
cmp dword [ebx + 0xf8], 8
lea eax, [ebx + 0xe4]
jb 0x402133
mov eax, dword [eax]
mov edi, dword [ebp - 0x10d8]
push 0x1000000
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x40215f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
jmp 0x40215f
mov edi, dword [ebp - 0x10d8]
cmp dword [ebx + 0xd0], 0
jbe 0x4021d7
mov eax, str.Cookie:
lea ecx, [ebp - 0x1088]
call fcn.00407a90
push 0
lea edx, [ebx + 0xc0]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x1088]
mov byte [ebp - 4], 1
call fcn.00409050
cmp dword [ebp - 0x1074], 8
mov eax, dword [ebp - 0x1088]
jae 0x4021a4
mov eax, esi
mov ecx, dword [ebp - 0x1078]
push 0x1000000
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4021c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
lea esi, [ebp - 0x1088]
mov byte [ebp - 4], 0
call fcn.00407ad0
cmp dword [ebx + 0x110], 0
jbe 0x4022e2
xor eax, eax
xor edx, edx
mov dword [ebp - 0x114c], eax
push 0x206
mov dword [ebp - 0x1148], eax
mov dword [ebp - 0x1144], eax
push edx
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x114c], 3
mov word [ebp - 0x218], dx
call fcn.0043d4b0
lea eax, [ebx + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40222e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0043d05d
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
push 0xc
lea eax, [ebp - 0x114c]
push eax
push 0x26
lea edx, [ebp - 0x218]
push edi
mov dword [ebp - 0x1148], edx
call esi
test eax, eax
jne 0x402273
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x16c]
test ecx, ecx
je 0x4022e2
cmp dword [ebx + 0x170], 8
lea eax, [ebx + 0x15c]
jb 0x40228e
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1002
push edi
call esi
test eax, eax
jne 0x4022aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x188]
test ecx, ecx
je 0x4022e2
cmp dword [ebx + 0x18c], 8
lea eax, [ebx + 0x178]
jb 0x4022c5
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1003
push edi
call esi
test eax, eax
jne 0x4022e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov eax, dword [ebx + 0xdc]
mov byte [ebp - 0x10d1], 0
test eax, eax
je 0x4022fb
mov edx, dword [ebx + 0xe0]
jmp 0x4022fd
xor edx, edx
test eax, eax
je 0x402309
mov ecx, dword [ebx + 0xe0]
jmp 0x40230b
xor ecx, ecx
push 0
push edx
push ecx
push eax
push 0
push 0
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call edi
test eax, eax
jne 0x402590
mov dword [ebp - 0x1100], eax
mov dword [ebp - 0x10fc], eax
mov dword [ebp - 0x10f8], eax
mov dword [ebp - 0x10f4], eax
lea eax, [ebp - 0x1100]
push eax
xor esi, esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x402d8a
mov ecx, dword [ebp - 0x10fc]
cmp ecx, esi
je 0x402474
xor eax, eax
mov dword [ebp - 0x1140], 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 eax, 1
mov dword [ebp - 0x113c], eax
mov dword [ebp - 0x112c], eax
xor eax, eax
cmp dword [ebx + 0x1c], 8
mov dword [ebp - 0x111c], eax
mov dword [ebp - 0x1118], eax
mov dword [ebp - 0x1114], eax
lea eax, [ebx + 8]
mov dword [ebp - 0x1140], 3
mov dword [ebp - 0x1138], ecx
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x1134], esi
jb 0x4023d4
mov eax, dword [eax]
lea ecx, [ebp - 0x111c]
push ecx
lea edx, [ebp - 0x1140]
push edx
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x402544
mov esi, dword [ebp - 0x10d8]
push 0xc
lea ecx, [ebp - 0x111c]
push ecx
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x402449
mov ecx, dword [ebx + 0xdc]
test ecx, ecx
je 0x402422
mov edx, dword [ebx + 0xe0]
jmp 0x402424
xor edx, edx
test ecx, ecx
je 0x402430
mov eax, dword [ebx + 0xe0]
jmp 0x402432
xor eax, eax
push 0
push edx
push eax
push ecx
push 0
push 0
push esi
call edi
test eax, eax
je 0x402449
mov byte [ebp - 0x10d1], 1
mov eax, dword [ebp - 0x1118]
test eax, eax
je 0x40245a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1114]
test eax, eax
je 0x402550
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x402550
mov esi, dword [ebp - 0x10f8]
test esi, esi
je 0x402572
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1128], eax
push 0x206
mov dword [ebp - 0x1124], eax
mov dword [ebp - 0x1120], eax
push edx
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x1128], 3
mov word [ebp - 0x218], dx
call fcn.0043d4b0
add esp, 0xc
push esi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0043d05d
mov esi, dword [ebp - 0x10f4]
add esp, 0xc
lea edx, [ebp - 0x218]
mov dword [ebp - 0x1124], edx
test esi, esi
je 0x402528
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.0043d4b0
add esp, 0xc
push esi
lea edx, [ebp - 0x628]
push 0x104
push edx
call fcn.0043d05d
lea eax, [ebp - 0x628]
add esp, 0xc
mov dword [ebp - 0x1120], eax
mov edx, dword [ebp - 0x10d8]
push 0xc
lea ecx, [ebp - 0x1128]
push ecx
push 0x26
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x402550
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov eax, dword [ebp - 0x10fc]
test eax, eax
je 0x402561
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10f8]
test eax, eax
je 0x402572
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10f4]
test eax, eax
je 0x402583
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x10d1], 0
je 0x402d96
mov esi, dword [ebp - 0x10d8]
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x402d8a
push 0
lea eax, [ebp - 0x10c8]
push eax
push 0
push 0
push 0x16
push esi
mov dword [ebp - 0x10c8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x4025da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40290f
mov eax, dword [ebp - 0x10c8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b998
mov esi, eax
add esp, 4
mov dword [ebp - 0x10f0], esi
test esi, esi
je 0x40290f
mov eax, dword [ebp - 0x10c8]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0043d4b0
mov eax, dword [ebp - 0x10d8]
add esp, 0xc
push 0
lea edx, [ebp - 0x10c8]
push edx
push esi
push 0
push 0x16
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x402906
lea edi, [ebx + 0x40]
push edi
mov eax, esi
call fcn.00407b00
xor eax, eax
mov dword [ebp - 0x10ec], eax
mov dword [ebp - 0x10e8], eax
mov dword [ebp - 0x10e4], eax
mov eax, 0x4580d4
lea ecx, [ebp - 0x1088]
mov byte [ebp - 4], 2
call fcn.00407a90
mov byte [ebp - 4], 3
cmp byte [ebx + 0x158], 0
jne 0x4026de
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.charset_A_Za_z0_9___
call fcn.00407b00
lea edx, [ebp - 0x10ec]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.00401380
add esp, 4
test al, al
je 0x4026de
mov ecx, dword [ebp - 0x10e8]
mov esi, dword [ebp - 0x10ec]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4026de
push 0
lea ecx, [ebx + 0x78]
push esi
or eax, 0xffffffff
call fcn.00408750
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Content_Length:__0_9_
call fcn.00407b00
lea edx, [ebp - 0x10ec]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.00401380
add esp, 4
test al, al
je 0x402744
mov ecx, dword [ebp - 0x10e8]
mov esi, dword [ebp - 0x10ec]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x402744
cmp dword [esi + 0x14], 8
jb 0x402735
mov esi, dword [esi]
push esi
call fcn.0043c387
add esp, 4
mov dword [ebx + 0xa0], eax
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Location:__0_9_
call fcn.00407b00
lea edx, [ebp - 0x10ec]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.00401380
add esp, 4
test al, al
je 0x4027a4
mov ecx, dword [ebp - 0x10e8]
mov esi, dword [ebp - 0x10ec]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4027a4
push 0
push esi
lea ecx, [ebx + 0x194]
or eax, 0xffffffff
call fcn.00408750
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Set_Cookie:_b.__n
call fcn.00407b00
lea edx, [ebp - 0x10ec]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.00401380
add esp, 4
test al, al
je 0x4028e6
mov ecx, dword [ebp - 0x10e8]
sub ecx, dword [ebp - 0x10ec]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x4028e6
mov dword [ebp - 0x10d0], 0
test edi, edi
je 0x40285f
mov eax, dword [ebp - 0x10ec]
lea esi, [ebx + 0xa4]
mov dword [ebp - 0x10cc], eax
lea esp, [esp]
mov ecx, dword [ebp - 0x10cc]
push 0
push ecx
or eax, 0xffffffff
call fcn.00409050
lea eax, [edi - 1]
cmp dword [ebp - 0x10d0], eax
je 0x402847
push esi
mov eax, 0x4581d0
call fcn.00407b30
mov eax, dword [ebp - 0x10d0]
add dword [ebp - 0x10cc], 0x1c
inc eax
mov dword [ebp - 0x10d0], eax
cmp eax, edi
jb 0x402820
mov eax, 0x4580e0
lea ecx, [ebp - 0x10a4]
call fcn.00407a90
lea edx, [ebp - 0x10a4]
push edx
lea esi, [ebx + 0xa4]
push esi
lea edx, [ebp - 0x10c0]
mov byte [ebp - 4], 4
call fcn.00401730
add esp, 8
mov edi, eax
mov byte [ebp - 4], 5
call fcn.004086e0
lea esi, [ebp - 0x10c0]
call fcn.00407ad0
lea esi, [ebp - 0x10a4]
mov byte [ebp - 4], 3
call fcn.00407ad0
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x4028e6
cmp dword [ebx + 0xb8], 8
lea ecx, [ebx + 0xa4]
jb 0x4028d1
mov edx, dword [ecx]
jmp 0x4028d3
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x3b
je 0x4028e6
push ecx
mov eax, 0x4581d8
call fcn.00407b30
lea esi, [ebp - 0x1088]
call fcn.00407ad0
lea esi, [ebp - 0x10ec]
mov byte [ebp - 4], 0
call fcn.00407bf0
mov esi, dword [ebp - 0x10f0]
push esi
call fcn.0043ce7b
add esp, 4
mov ecx, dword [ebp - 0x10d8]
push 0
lea eax, [ebp - 0x10c8]
push eax
push 0
push 0
push 0x13
push ecx
mov dword [ebp - 0x10c8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x402944
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4029b4
mov eax, dword [ebp - 0x10c8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b998
mov esi, eax
add esp, 4
test esi, esi
je 0x4029b4
mov eax, dword [ebp - 0x10c8]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0043d4b0
mov eax, dword [ebp - 0x10d8]
add esp, 0xc
push 0
lea edx, [ebp - 0x10c8]
push edx
push esi
push 0
push 0x13
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4029ab
lea ecx, [ebx + 0x120]
push ecx
mov eax, esi
call fcn.00407b00
push esi
call fcn.0043ce7b
add esp, 4
mov eax, dword [ebx + 0x94]
xor esi, esi
mov dword [ebp - 0x10d0], 0x2800
test eax, eax
je 0x4029d9
push eax
call fcn.0043ce7b
add esp, 4
mov dword [ebx + 0x94], esi
push 0x2800
call fcn.0043b998
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x402da5
push 0x2800
push 0
push eax
call fcn.0043d4b0
add esp, 0xc
jmp 0x402a10
mov eax, dword [ebp - 0x10d8]
lea edx, [ebp - 0x10c8]
push edx
push eax
mov dword [ebp - 0x10c8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x402b38
push esi
mov edx, ebx
call fcn.00402e70
mov ecx, dword [ebp - 0x10c8]
inc ecx
push ecx
call fcn.0043b998
mov edi, eax
add esp, 4
mov dword [ebp - 0x1154], edi
test edi, edi
je 0x402b44
mov edx, dword [ebp - 0x10c8]
inc edx
push edx
push 0
push edi
call fcn.0043d4b0
mov ecx, dword [ebp - 0x10c8]
mov edx, dword [ebp - 0x10d8]
add esp, 0xc
lea eax, [ebp - 0x10cc]
push eax
push ecx
push edi
push edx
mov dword [ebp - 0x10cc], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x402b2d
mov eax, dword [ebp - 0x10cc]
add eax, esi
cmp eax, dword [ebp - 0x10d0]
jbe 0x402b0e
mov eax, dword [ebp - 0x10d0]
mov edi, dword [ebx + 0x94]
add eax, eax
push eax
mov dword [ebp - 0x10f0], eax
call fcn.0043b998
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x402b53
mov ecx, dword [ebp - 0x10f0]
push ecx
push 0
push eax
mov dword [ebp - 0x10d0], ecx
call fcn.0043d4b0
mov ecx, dword [ebx + 0x94]
add esp, 0xc
push esi
push edi
push ecx
call fcn.0043d530
add esp, 0xc
push edi
call fcn.0043ce7b
mov edi, dword [ebp - 0x1154]
add esp, 4
mov edx, dword [ebp - 0x10cc]
mov eax, dword [ebx + 0x94]
push edx
add eax, esi
push edi
push eax
call fcn.0043d530
add esp, 0xc
add esi, dword [ebp - 0x10cc]
push edi
call fcn.0043ce7b
add esp, 4
jmp 0x402b44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp dword [ebp - 0x10c8], 0
ja 0x402a10
jmp 0x402b60
mov dword [ebx + 0x94], edi
mov byte [ebp - 0x10c2], 0
push esi
mov edx, ebx
call fcn.00402e70
lea eax, [ebx + 0x78]
mov dword [ebx + 0x98], esi
xor edi, edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x10cc], 1
jb 0x402b85
mov eax, dword [eax]
push 5
push 0x4581dc
push eax
call fcn.0043c65f
add esp, 0xc
test eax, eax
jne 0x402ba4
mov edi, 0xfde9
mov dword [ebp - 0x10cc], eax
mov ecx, dword [ebx + 0x98]
mov edx, dword [ebx + 0x94]
mov eax, dword [ebp - 0x10cc]
push 0
push 0
inc ecx
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x402bfb
mov ecx, dword [ebx + 0x98]
mov edx, dword [ebx + 0x94]
xor edi, edi
push edi
push edi
inc ecx
push ecx
push edx
push 1
push edi
mov dword [ebp - 0x10cc], 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x402c7c
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b998
add esp, 4
mov dword [ebp - 0x10d0], eax
test eax, eax
je 0x402c7c
mov ecx, dword [ebp - 0x10d0]
lea eax, [esi + esi]
push eax
push 0
push ecx
call fcn.0043d4b0
mov edx, dword [ebp - 0x10d0]
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x94]
add esp, 0xc
push esi
push edx
mov edx, dword [ebp - 0x10cc]
inc eax
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x402c6d
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 0x10d0]
call fcn.00407b00
mov ecx, dword [ebp - 0x10d0]
push ecx
call fcn.0043ce7b
add esp, 4
mov eax, dword [ebp - 0x105c]
push 0x4580ec
mov edi, 3
lea ecx, [ebp - 0x106c]
mov byte [ebp - 0x10c1], 1
call fcn.00408940
test eax, eax
jne 0x402dbc
mov eax, str._html_
lea ecx, [ebp - 0x1088]
call fcn.00407a90
xor eax, eax
mov dword [ebp - 0x1110], eax
mov dword [ebp - 0x110c], eax
mov dword [ebp - 0x1108], eax
lea edx, [ebp - 0x1110]
push edx
lea ecx, [ebx + 0x5c]
lea edx, [ebp - 0x1088]
mov byte [ebp - 4], 7
call fcn.00401380
add esp, 4
test al, al
je 0x402d6e
mov ecx, dword [ebp - 0x110c]
sub ecx, dword [ebp - 0x1110]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x402d6e
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.__html_
call fcn.00407b00
lea edx, [ebp - 0x1110]
push edx
lea ecx, [ebx + 0x5c]
lea edx, [ebp - 0x1088]
call fcn.00401380
add esp, 4
test al, al
je 0x402d5d
mov ecx, dword [ebp - 0x110c]
sub ecx, dword [ebp - 0x1110]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x402d6e
mov dword [ebx + 0x11c], 0xd
mov byte [ebp - 0x10c1], 0
lea esi, [ebp - 0x1110]
call fcn.00407bf0
lea esi, [ebp - 0x1088]
mov byte [ebp - 4], 0
call fcn.00407ad0
jmp 0x402d96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp byte [ebp - 0x10c1], 0
je 0x402100
jmp 0x402dbc
mov byte [ebp - 0x10c2], 0
cmp byte [ebp - 0x10c1], 0
jne 0x402dbc
mov byte [ebp - 0x10c2], 0
mov ecx, dword [ebp - 0x10d8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp - 0x1150]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, 8
cmp dword [ebp - 0x1058], edi
jb 0x402df2
mov edx, dword [ebp - 0x106c]
push edx
call fcn.0043bc47
add esp, 4
mov al, byte [ebp - 0x10c2]
jmp 0x402e1d
mov dword [ebx + 0x11c], 0x57
cmp dword [ebp - 0x1058], edi
jb 0x402e1b
mov eax, dword [ebp - 0x106c]
push eax
call fcn.0043bc47
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bc52
mov esp, ebp
pop ebp
ret