Function at 0x10002618
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 0x1008751d
mov eax, dword fs:[0]
push eax
mov eax, 0x1170
call fcn.10060b20
mov eax, dword [0x100af334]
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 - 0x10ec], ebx
cmp dword [ebx + 0x18], 0
mov eax, dword [ebp + 8]
ja 0x1000266c
mov dword [ebx + 0xf8], 3
xor al, al
jmp 0x10003646
push eax
lea ecx, [ebp - 0x1080]
call fcn.1000407b
and dword [ebp - 4], 0
lea eax, [ebp - 0x1080]
push 8
pop edi
cmp dword [ebp - 0x106c], edi
mov esi, 0x100a131c
push esi
cmovae eax, dword [ebp - 0x1080]
push eax
call fcn.1006b2fe
pop ecx
pop ecx
test eax, eax
je 0x100026f2
cmp dword [ebp - 0x106c], edi
lea eax, [ebp - 0x1080]
mov esi, str.POST
cmovae eax, dword [ebp - 0x1080]
push esi
push eax
call fcn.1006b2fe
pop ecx
pop ecx
test eax, eax
je 0x100026f2
cmp dword [ebp - 0x106c], edi
lea eax, [ebp - 0x1080]
mov esi, 0x100a1330
cmovae eax, dword [ebp - 0x1080]
push esi
push eax
call fcn.1006b2fe
pop ecx
pop ecx
test eax, eax
jne 0x10003624
push esi
lea ecx, [ebp - 0x1080]
call fcn.10003fca
xor eax, eax
inc eax
mov byte [ebp - 0x10b1], al
mov eax, dword [ebx]
test eax, eax
jne 0x1000273e
lea eax, [ebx + 0x114]
cmp dword [eax + 0x14], edi
jb 0x1000271a
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 0x1000273e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
jmp 0x1000362e
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]
push 0x208
xor edi, edi
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.100631d0
push 0xa28
lea eax, [ebp - 0x1050]
push edi
push eax
call fcn.100631d0
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x117c]
push edi
push eax
call fcn.100631d0
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 0x100027df
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 0x10003635
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebx + 0x20]
call fcn.10003fca
push edi
push dword [ebp - 0x1164]
lea eax, [ebp - 0x420]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x1110], edi
test edi, edi
je 0x10003635
push 2
pop edx
xor ecx, ecx
mov eax, 0x800000
cmp dword [ebp - 0x1170], edx
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 edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x10c0], esi
test esi, esi
je 0x1000361b
cmp byte [ebx + 4], 0
jne 0x100028a6
push 2
pop eax
cmp dword [ebp - 0x1170], eax
jne 0x100028a6
push 4
lea eax, [ebp - 0x10e4]
mov dword [ebp - 0x10e4], 0x3100
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [ebp - 0x10b2], 0
xor ecx, ecx
mov dword [ebp - 0x1100], 0x18
mov eax, ecx
inc ecx
mov dword [ebp - 0x10e4], ecx
cmp eax, 3
jae 0x100035f1
mov ecx, dword [ebx + 0xd8]
test ecx, ecx
je 0x10002901
lea eax, [ebx + 0xc8]
cmp dword [eax + 0x14], 8
jb 0x100028e3
mov eax, dword [eax]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10002901
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
cmp dword [ebx + 0xb8], 0
jbe 0x100029a3
and dword [ebp - 0x1058], 0
lea ecx, [ebp - 0x1068]
xor eax, eax
mov dword [ebp - 0x1054], 7
push str.Cookie:
mov word [ebp - 0x1068], ax
call fcn.10003fca
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebx + 0xa8]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x1000294e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x1068]
call fcn.100044ef
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 0x10002994
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
lea ecx, [ebp - 0x1068]
mov byte [ebp - 4], 0
call fcn.10004298
cmp dword [ebx + 0xf0], 0
jbe 0x10002a9c
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x1128], 3
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x1124], xmm0
call fcn.100631d0
lea eax, [ebx + 0xe0]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x100029e9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1006b29a
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 dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10002a2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
mov eax, dword [ebx + 0x140]
test eax, eax
je 0x10002a9c
lea ecx, [ebx + 0x130]
cmp dword [ecx + 0x14], 8
jb 0x10002a44
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1002
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10002a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
mov eax, dword [ebx + 0x158]
test eax, eax
je 0x10002a9c
lea ecx, [ebx + 0x148]
cmp dword [ecx + 0x14], 8
jb 0x10002a7c
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1003
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10002a9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
cmp byte [ebp + 0xc], 0
je 0x10002acd
push 2
pop eax
push 4
mov dword [ebp - 0x10bc], eax
lea eax, [ebp - 0x10bc]
push eax
push 0x3f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10002acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
xor eax, eax
push eax
push dword [ebx + 0xc4]
mov byte [ebp - 0x10e8], al
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10002d0a
lea edi, [ebp - 0x10fc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10fc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x10002ceb
mov eax, dword [ebp - 0x10f8]
test eax, eax
je 0x10002bee
and dword [ebp - 0x1130], 0
lea edi, [ebp - 0x110c]
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 0x10002b60
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x110c]
push ecx
lea ecx, [ebp - 0x1140]
push ecx
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x10002c9e
push 0xc
lea eax, [ebp - 0x110c]
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x10002bbb
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 - 0x10e8]
test eax, eax
push 1
movzx ecx, cl
pop eax
cmovne ecx, eax
mov dword [ebp - 0x10e8], ecx
cmp dword [ebp - 0x1108], 0
je 0x10002bd0
push dword [ebp - 0x1108]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x1104], 0
je 0x10002caa
push dword [ebp - 0x1104]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10002caa
cmp dword [ebp - 0x10f4], 0
je 0x10002cd4
mov edi, 0x208
mov dword [ebp - 0x111c], 3
push edi
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x1118], xmm0
call fcn.100631d0
push dword [ebp - 0x10f4]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1006b29a
add esp, 0x18
lea eax, [ebp - 0x218]
cmp dword [ebp - 0x10f0], 0
mov dword [ebp - 0x1118], eax
je 0x10002c88
push edi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.100631d0
push dword [ebp - 0x10f0]
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.1006b29a
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 0x10002caa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
cmp dword [ebp - 0x10f8], 0
je 0x10002cbf
push dword [ebp - 0x10f8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x10f4], 0
je 0x10002cd4
push dword [ebp - 0x10f4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x10f0], 0
je 0x10002cf7
push dword [ebp - 0x10f0]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10002cf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
cmp byte [ebp - 0x10e8], 0
mov ecx, dword [ebp - 0x10e4]
je 0x100028b9
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x10002d40
and dword [ebp - 0x10bc], 0
lea ecx, [ebp - 0x10bc]
push ecx
push dword [ebx + 0xc4]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x10002d40
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 0x100035ca
xor ecx, ecx
lea eax, [ebp - 0x10b8]
push ecx
push eax
push ecx
push ecx
push 0x16
push esi
mov dword [ebp - 0x10b8], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x10002d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10003100
mov eax, dword [ebp - 0x10b8]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100600f4
mov edi, eax
mov dword [ebp - 0x10d4], edi
pop ecx
test edi, edi
je 0x10003100
mov ecx, dword [ebp - 0x10b8]
add ecx, ecx
push ecx
push 0
push edi
call fcn.100631d0
add esp, 0xc
lea eax, [ebp - 0x10b8]
push 0
push eax
push edi
push 0
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x100030f9
lea esi, [ebx + 0x38]
push edi
mov ecx, esi
call fcn.10003fca
xor eax, eax
mov dword [ebp - 0x10d0], eax
mov dword [ebp - 0x10cc], eax
mov dword [ebp - 0x10c8], eax
push 2
pop ecx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x1068]
push 0x100a1484
mov dword [ebp - 0x1058], eax
mov dword [ebp - 0x1054], 7
mov word [ebp - 0x1068], ax
call fcn.10003fca
mov byte [ebp - 4], 3
cmp byte [ebx + 0x12c], 0
jne 0x10002e84
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x1068]
call fcn.10003fca
push ecx
lea eax, [ebp - 0x10d0]
push eax
push esi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.10001eeb
add esp, 0x10
test al, al
je 0x10002e84
mov eax, dword [ebp - 0x10cc]
sub eax, dword [ebp - 0x10d0]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x10002e84
push dword [ebp - 0x10d0]
lea ecx, [ebx + 0x68]
call fcn.10003ff1
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x1068]
call fcn.10003fca
push ecx
lea eax, [ebp - 0x10d0]
push eax
push esi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.10001eeb
add esp, 0x10
test al, al
je 0x10002ede
mov eax, dword [ebp - 0x10cc]
mov ecx, dword [ebp - 0x10d0]
sub eax, ecx
cdq
idiv dword [ebp - 0x1100]
test eax, eax
je 0x10002ede
cmp dword [ecx + 0x14], 8
jb 0x10002ed1
mov ecx, dword [ecx]
push ecx
call fcn.1006b6ce
pop ecx
mov dword [ebx + 0x8c], eax
push str.Location:__0_9_
lea ecx, [ebp - 0x1068]
call fcn.10003fca
push ecx
lea eax, [ebp - 0x10d0]
push eax
push esi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.10001eeb
add esp, 0x10
test al, al
je 0x10002f31
mov eax, dword [ebp - 0x10cc]
sub eax, dword [ebp - 0x10d0]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x10002f31
push dword [ebp - 0x10d0]
lea ecx, [ebx + 0x160]
call fcn.10003ff1
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x1068]
call fcn.10003fca
push ecx
lea eax, [ebp - 0x10d0]
push eax
push esi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.10001eeb
add esp, 0x10
test al, al
je 0x1000307c
mov eax, dword [ebp - 0x10cc]
sub eax, dword [ebp - 0x10d0]
push 0x18
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x10bc], eax
test eax, eax
je 0x1000307c
mov esi, dword [ebp - 0x10d0]
lea ecx, [ebx + 0x90]
xor edi, edi
mov dword [ebp - 0x10c4], ecx
mov ebx, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10002fa1
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.100044ef
mov eax, dword [ebp - 0x10bc]
dec eax
cmp edi, eax
je 0x10002fc7
push 2
pop eax
push eax
push 0x100a1408
mov ecx, ebx
call fcn.100044ef
push 0x18
pop eax
inc edi
add esi, eax
cmp edi, dword [ebp - 0x10bc]
jb 0x10002f97
mov ebx, dword [ebp - 0x10ec]
lea ecx, [ebp - 0x1098]
and dword [ebp - 0x1088], 0
xor eax, eax
push 0x100a12fc
mov dword [ebp - 0x1084], 7
lea esi, [ebx + 0x90]
mov word [ebp - 0x1098], ax
call fcn.10003fca
lea eax, [ebp - 0x1098]
mov byte [ebp - 4], 4
push eax
mov edx, esi
lea ecx, [ebp - 0x10b0]
call fcn.100022be
pop ecx
push eax
mov ecx, esi
call fcn.1000401f
lea ecx, [ebp - 0x10b0]
call fcn.10004298
lea ecx, [ebp - 0x1098]
mov byte [ebp - 4], 3
call fcn.10004298
mov edx, dword [ebx + 0xa0]
test edx, edx
je 0x10003076
lea ecx, [ebx + 0x90]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x10003060
mov eax, dword [ecx]
cmp word [eax + edx*2 - 2], 0x3b
je 0x10003076
xor eax, eax
inc eax
push eax
push 0x100a1410
call fcn.100044ef
mov edi, dword [ebp - 0x10d4]
lea ecx, [ebp - 0x1068]
call fcn.10004298
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10d0], 0
je 0x100030f3
mov esi, dword [ebp - 0x10d0]
cmp esi, dword [ebp - 0x10cc]
je 0x100030bc
push 0x18
pop ebx
mov ecx, esi
call fcn.10004298
add esi, ebx
cmp esi, dword [ebp - 0x10cc]
jne 0x100030a5
mov ebx, dword [ebp - 0x10ec]
mov eax, dword [ebp - 0x10c8]
sub eax, dword [ebp - 0x10d0]
push 0x18
pop ecx
cdq
idiv ecx
imul eax, eax, 0x18
push eax
push dword [ebp - 0x10d0]
call fcn.10005281
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x10d0], eax
mov dword [ebp - 0x10cc], eax
mov dword [ebp - 0x10c8], eax
mov esi, dword [ebp - 0x10c0]
push edi
call fcn.100600ef
pop ecx
xor ecx, ecx
lea eax, [ebp - 0x10b8]
push ecx
push eax
push ecx
push ecx
push 0x13
push esi
mov dword [ebp - 0x10b8], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1000312a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10003196
mov eax, dword [ebp - 0x10b8]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100600f4
mov esi, eax
pop ecx
test esi, esi
je 0x10003190
mov ecx, dword [ebp - 0x10b8]
add ecx, ecx
push ecx
push 0
push esi
call fcn.100631d0
add esp, 0xc
lea eax, [ebp - 0x10b8]
push 0
push eax
push esi
push 0
push 0x13
push dword [ebp - 0x10c0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10003189
push esi
lea ecx, [ebx + 0xfc]
call fcn.10003fca
push esi
call fcn.100600ef
pop ecx
mov esi, dword [ebp - 0x10c0]
mov eax, dword [ebx + 0x80]
mov ecx, 0x2800
xor edi, edi
mov dword [ebp - 0x10c4], ecx
test eax, eax
je 0x100031ba
push eax
call fcn.100600ef
and dword [ebx + 0x80], edi
pop ecx
push 0x2800
call fcn.100600f4
mov dword [ebx + 0x80], eax
pop ecx
test eax, eax
je 0x100035ea
push 0x2800
push 0
push eax
call fcn.100631d0
add esp, 0xc
and dword [ebp - 0x10b8], 0
lea eax, [ebp - 0x10b8]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x100032fe
push edi
mov ecx, ebx
call fcn.10003678
mov eax, dword [ebp - 0x10b8]
inc eax
push eax
call fcn.100600f4
mov esi, eax
pop ecx
test esi, esi
je 0x100032e9
mov ecx, dword [ebp - 0x10b8]
inc ecx
push ecx
push 0
push esi
call fcn.100631d0
and dword [ebp - 0x10d4], 0
lea eax, [ebp - 0x10d4]
add esp, 0xc
push eax
push dword [ebp - 0x10b8]
push esi
push dword [ebp - 0x10c0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100032e2
mov ecx, dword [ebp - 0x10d4]
mov edx, dword [ebp - 0x10c4]
lea eax, [ecx + edi]
cmp eax, edx
jbe 0x100032c9
mov eax, dword [ebx + 0x80]
add edx, edx
push edx
mov dword [ebp - 0x10bc], eax
mov dword [ebp - 0x10c4], edx
call fcn.100600f4
mov dword [ebx + 0x80], eax
pop ecx
test eax, eax
je 0x1000330c
mov ecx, dword [ebp - 0x10c4]
push ecx
push 0
push eax
call fcn.100631d0
push edi
push dword [ebp - 0x10bc]
push dword [ebx + 0x80]
call fcn.100626d0
push dword [ebp - 0x10bc]
call fcn.100600ef
mov ecx, dword [ebp - 0x10d4]
add esp, 0x1c
mov eax, dword [ebx + 0x80]
push ecx
add eax, edi
push esi
push eax
call fcn.100626d0
add esp, 0xc
add edi, dword [ebp - 0x10d4]
push esi
call fcn.100600ef
pop ecx
mov esi, dword [ebp - 0x10c0]
cmp dword [ebp - 0x10b8], 0
ja 0x100031e3
jmp 0x1000331f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
jmp 0x100032ef
mov eax, dword [ebp - 0x10bc]
mov dword [ebx + 0x80], eax
mov byte [ebp - 0x10b1], 0
push edi
mov ecx, ebx
call fcn.10003678
xor eax, eax
mov dword [ebx + 0x84], edi
inc eax
xor esi, esi
mov edi, eax
mov dword [ebp - 0x10bc], eax
lea eax, [ebx + 0x68]
mov dword [ebp - 0x10c4], esi
cmp dword [eax + 0x14], 8
jb 0x1000334b
mov eax, dword [eax]
push 5
push 0x100a1414
push eax
call fcn.1006ae1c
add esp, 0xc
test eax, eax
jne 0x10003372
mov esi, 0xfde9
xor edi, edi
mov dword [ebp - 0x10c4], esi
mov dword [ebp - 0x10bc], 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 0x100033bf
mov eax, dword [ebx + 0x84]
xor ecx, ecx
push ecx
xor edx, edx
mov dword [ebp - 0x10c4], ecx
inc edx
inc eax
push ecx
push eax
push dword [ebx + 0x80]
mov dword [ebp - 0x10bc], edx
push edx
push ecx
call edi
mov esi, eax
test esi, esi
jle 0x10003421
xor ecx, ecx
mov eax, esi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100600f4
mov edi, eax
pop ecx
test edi, edi
je 0x10003421
lea ecx, [esi + esi]
push ecx
push 0
push edi
call fcn.100631d0
mov eax, dword [ebx + 0x84]
add esp, 0xc
inc eax
push esi
push edi
push eax
push dword [ebx + 0x80]
push dword [ebp - 0x10bc]
push dword [ebp - 0x10c4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x1000341a
push edi
lea ecx, [ebx + 0x50]
call fcn.10003fca
push edi
call fcn.100600ef
pop ecx
xor eax, eax
inc eax
cmp dword [ebp - 0x106c], 8
mov byte [ebp - 0x10b2], al
lea eax, [ebp - 0x1080]
cmovae eax, dword [ebp - 0x1080]
cmp dword [ebp - 0x1070], 3
jne 0x100035f1
mov edx, 0x100a131c
push 3
pop edi
mov ecx, edx
sub eax, edx
movzx edx, word [eax + ecx]
movzx esi, word [ecx]
cmp dx, si
jne 0x10003471
push 2
pop edx
add ecx, edx
sub edi, 1
jne 0x10003457
xor eax, eax
jmp 0x10003477
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
jne 0x100035f1
cmp byte [ebp + 0xc], al
jne 0x100035f1
and dword [ebp - 0x1058], eax
lea ecx, [ebp - 0x1068]
push str._html_
mov dword [ebp - 0x1054], 7
mov word [ebp - 0x1068], ax
call fcn.10003fca
xor eax, eax
mov dword [ebp - 0x10e0], eax
mov dword [ebp - 0x10dc], eax
mov dword [ebp - 0x10d8], eax
push ecx
lea eax, [ebp - 0x10e0]
mov byte [ebp - 4], 6
push eax
lea edi, [ebx + 0x50]
push edi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.10001eeb
mov ecx, dword [ebp - 0x10dc]
add esp, 0x10
mov esi, dword [ebp - 0x10e0]
test al, al
je 0x10003558
mov eax, ecx
sub eax, esi
cdq
idiv dword [ebp - 0x1100]
test eax, eax
je 0x10003558
push str.__html_
lea ecx, [ebp - 0x1068]
call fcn.10003fca
push ecx
lea eax, [ebp - 0x10e0]
push eax
push edi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.10001eeb
mov esi, dword [ebp - 0x10e0]
add esp, 0x10
mov ecx, dword [ebp - 0x10dc]
test al, al
je 0x10003547
mov eax, ecx
sub eax, esi
push 0x18
cdq
pop edi
idiv edi
test eax, eax
jne 0x10003558
mov dword [ebx + 0xf8], 0xd
mov byte [ebp - 0x10b2], 0
test esi, esi
je 0x100035b3
mov edi, esi
cmp edi, ecx
je 0x10003584
mov esi, dword [ebp - 0x10dc]
push 0x18
pop ebx
mov ecx, edi
call fcn.10004298
add edi, ebx
cmp edi, esi
jne 0x1000356b
mov ebx, dword [ebp - 0x10ec]
mov esi, dword [ebp - 0x10e0]
mov eax, dword [ebp - 0x10d8]
sub eax, esi
push 0x18
pop ecx
cdq
idiv ecx
imul eax, eax, 0x18
push eax
push esi
call fcn.10005281
and dword [ebp - 0x10e0], 0
and dword [ebp - 0x10dc], 0
and dword [ebp - 0x10d8], 0
pop ecx
pop ecx
lea ecx, [ebp - 0x1068]
mov byte [ebp - 4], 0
call fcn.10004298
mov esi, dword [ebp - 0x10c0]
jmp 0x100035d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xf8], eax
cmp byte [ebp - 0x10b2], 0
jne 0x100035f1
mov ecx, dword [ebp - 0x10e4]
jmp 0x100028b9
mov byte [ebp - 0x10b1], 0
push dword [ebp - 0x10c0]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movzx eax, byte [ebp - 0x10b1]
xor ecx, ecx
cmp byte [ebp - 0x10b2], cl
mov edi, dword [ebp - 0x1110]
cmovne ecx, eax
mov byte [ebp - 0x10b1], cl
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10003635
mov dword [ebx + 0xf8], 0x57
mov byte [ebp - 0x10b1], 0
lea ecx, [ebp - 0x1080]
call fcn.10004298
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.1005fd1a
leave
ret 8