Function at 0x100841f0
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
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1e68
mov eax, dword fs:[0]
push eax
mov eax, 0x11c0
call fcn.100b63f0
mov eax, dword [0x100eb6ac]
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 0x10084239
mov dword [ebx + 0x11c], 3
jmp 0x10085293
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.100166c0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x106c]
mov edi, 8
cmp dword [ebp - 0x1058], edi
jae 0x1008427e
lea eax, [ebp - 0x106c]
push 0x100d9254
push eax
call fcn.1009f326
add esp, 8
test eax, eax
jne 0x10084299
push 3
mov eax, 0x100d9254
jmp 0x100842ca
mov eax, dword [ebp - 0x106c]
cmp dword [ebp - 0x1058], edi
jae 0x100842ad
lea eax, [ebp - 0x106c]
push str.POST
push eax
call fcn.1009f326
add esp, 8
test eax, eax
jne 0x10085252
push 4
mov eax, str.POST
lea esi, [ebp - 0x106c]
call fcn.10019760
cmp dword [ebx], 0
mov byte [ebp - 0x10f9], 1
jne 0x1008433f
cmp dword [ebx + 0x150], edi
lea eax, [ebx + 0x13c]
jb 0x100842f1
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 0x1008433f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1058], edi
jb 0x10084330
mov ecx, dword [ebp - 0x106c]
push ecx
call fcn.1009c0c0
add esp, 4
mov dword [ebp - 0x105c], 0
jmp 0x10085280
mov eax, dword [ebx + 0x1bc]
mov ecx, dword [ebx + 0x1b8]
mov edx, dword [ebx + 0x1b4]
push eax
mov eax, dword [ebx + 0x1b0]
push ecx
mov ecx, dword [ebx]
push edx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x41e]
push eax
mov word [ebp - 0x420], dx
call fcn.100a39b0
add esp, 0xc
xor ecx, ecx
push 0xa26
push ecx
lea edx, [ebp - 0x104e]
push edx
mov word [ebp - 0x1050], cx
call fcn.100a39b0
add esp, 0xc
push 0x3c
lea eax, [ebp - 0x11cc]
push 0
push eax
call fcn.100a39b0
lea ecx, [ebp - 0x420]
lea eax, [ebx + 8]
add esp, 0xc
lea edx, [ebp - 0x1050]
mov dword [ebp - 0x11bc], ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x11cc], 0x3c
mov dword [ebp - 0x11b8], 0x104
mov dword [ebp - 0x11a0], edx
mov dword [ebp - 0x119c], 0x514
mov dword [ebp - 0x11c4], 1
cmp dword [eax + 0x14], edi
jb 0x10084400
mov eax, dword [eax]
lea edx, [ebp - 0x11cc]
push edx
push 0
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x1008520f
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov edi, 2
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x10084427
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x24]
lea eax, [ebp - 0x420]
call fcn.10019760
mov eax, dword [ebp - 0x11b4]
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 - 0x1188], esi
test esi, esi
je 0x1008520a
mov eax, dword [ebp - 0x106c]
xor ecx, ecx
cmp dword [ebp - 0x11c0], edi
setne cl
dec ecx
and ecx, 0x800000
cmp dword [ebp - 0x1058], 8
jae 0x10084494
lea eax, [ebp - 0x106c]
push ecx
mov ecx, dword [ebp - 0x11a0]
push 0
push 0
push 0
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x110c], eax
test eax, eax
je 0x10085203
cmp byte [ebx + 4], 0
jne 0x100844e2
cmp dword [ebp - 0x11c0], edi
jne 0x100844e2
push 4
lea edx, [ebp - 0x1114]
push edx
push 0x1f
push eax
mov dword [ebp - 0x1114], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [ebp - 0x10fa], 0
mov dword [ebp - 0x1114], 0
mov eax, dword [ebp - 0x1114]
mov ecx, eax
inc eax
mov dword [ebp - 0x1114], eax
cmp ecx, 3
jae 0x100851e0
mov ecx, dword [ebx + 0xf4]
test ecx, ecx
je 0x1008454c
cmp dword [ebx + 0xf8], 8
lea eax, [ebx + 0xe4]
jb 0x10084526
mov eax, dword [eax]
mov edi, dword [ebp - 0x110c]
push 0x1000000
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10084552
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
jmp 0x10084552
mov edi, dword [ebp - 0x110c]
cmp dword [ebx + 0xd0], 0
jbe 0x100845ca
mov eax, str.Cookie:
lea ecx, [ebp - 0x10a4]
call fcn.10012b20
mov byte [ebp - 4], 1
push 0
lea edx, [ebx + 0xc0]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x10a4]
call fcn.100164a0
cmp dword [ebp - 0x1090], 8
mov eax, dword [ebp - 0x10a4]
jae 0x10084597
mov eax, esi
mov ecx, dword [ebp - 0x1094]
push 0x1000000
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x100845bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov byte [ebp - 4], 0
lea esi, [ebp - 0x10a4]
call fcn.10012b80
cmp dword [ebx + 0x110], 0
jbe 0x100846d5
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1184], eax
push 0x206
mov dword [ebp - 0x1180], eax
mov dword [ebp - 0x117c], eax
push edx
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x1184], 3
mov word [ebp - 0x218], dx
call fcn.100a39b0
lea eax, [ebx + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10084621
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.1009f1c0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
push 0xc
lea eax, [ebp - 0x1184]
push eax
push 0x26
lea edx, [ebp - 0x218]
push edi
mov dword [ebp - 0x1180], edx
call esi
test eax, eax
jne 0x10084666
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x16c]
test ecx, ecx
je 0x100846d5
cmp dword [ebx + 0x170], 8
lea eax, [ebx + 0x15c]
jb 0x10084681
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1002
push edi
call esi
test eax, eax
jne 0x1008469d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x188]
test ecx, ecx
je 0x100846d5
cmp dword [ebx + 0x18c], 8
lea eax, [ebx + 0x178]
jb 0x100846b8
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1003
push edi
call esi
test eax, eax
jne 0x100846d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov byte [ebp - 0x110d], 0
call edi
test eax, eax
jne 0x10084945
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x1134], eax
mov dword [ebp - 0x1130], eax
mov dword [ebp - 0x112c], eax
lea eax, [ebp - 0x1138]
push eax
xor esi, esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x100851be
mov ecx, dword [ebp - 0x1134]
cmp ecx, esi
je 0x10084829
xor eax, eax
mov dword [ebp - 0x1178], eax
mov dword [ebp - 0x1174], eax
mov dword [ebp - 0x1170], eax
mov dword [ebp - 0x116c], eax
mov dword [ebp - 0x1168], eax
mov dword [ebp - 0x1164], eax
mov eax, 1
mov dword [ebp - 0x1174], eax
mov dword [ebp - 0x1164], eax
xor eax, eax
cmp dword [ebx + 0x1c], 8
mov dword [ebp - 0x1160], eax
mov dword [ebp - 0x115c], eax
mov dword [ebp - 0x1158], eax
lea eax, [ebx + 8]
mov dword [ebp - 0x1178], 3
mov dword [ebp - 0x1170], ecx
mov dword [ebp - 0x1168], esi
mov dword [ebp - 0x116c], esi
jb 0x100847a8
mov eax, dword [eax]
lea ecx, [ebp - 0x1160]
push ecx
lea edx, [ebp - 0x1178]
push edx
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x100848f9
mov esi, dword [ebp - 0x110c]
push 0xc
lea ecx, [ebp - 0x1160]
push ecx
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x100847fe
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call edi
test eax, eax
je 0x100847fe
mov byte [ebp - 0x110d], 1
mov eax, dword [ebp - 0x115c]
test eax, eax
je 0x1008480f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1158]
test eax, eax
je 0x10084905
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10084905
mov esi, dword [ebp - 0x1130]
test esi, esi
je 0x10084927
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1154], eax
push 0x206
mov dword [ebp - 0x1150], eax
mov dword [ebp - 0x114c], eax
push edx
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x1154], 3
mov word [ebp - 0x218], dx
call fcn.100a39b0
add esp, 0xc
push esi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.1009f1c0
mov esi, dword [ebp - 0x112c]
add esp, 0xc
lea edx, [ebp - 0x218]
mov dword [ebp - 0x1150], edx
test esi, esi
je 0x100848dd
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.100a39b0
add esp, 0xc
push esi
lea edx, [ebp - 0x628]
push 0x104
push edx
call fcn.1009f1c0
lea eax, [ebp - 0x628]
add esp, 0xc
mov dword [ebp - 0x114c], eax
mov edx, dword [ebp - 0x110c]
push 0xc
lea ecx, [ebp - 0x1154]
push ecx
push 0x26
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10084905
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov eax, dword [ebp - 0x1134]
test eax, eax
je 0x10084916
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1130]
test eax, eax
je 0x10084927
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x112c]
test eax, eax
je 0x10084938
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x110d], 0
je 0x100851ca
mov eax, dword [ebx + 0xdc]
xor edi, edi
cmp eax, edi
je 0x10084983
mov edx, dword [ebx + 0xe0]
lea ecx, [ebp - 0x1104]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x110c]
push eax
mov dword [ebp - 0x1104], edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x10084983
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov esi, dword [ebp - 0x110c]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x100851be
push edi
lea ecx, [ebp - 0x1100]
push ecx
push edi
push edi
push 0x16
push esi
mov dword [ebp - 0x1100], edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, edi
jne 0x100849c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10084cfb
mov eax, dword [ebp - 0x1100]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009b929
mov esi, eax
add esp, 4
mov dword [ebp - 0x1128], esi
test esi, esi
je 0x10084cfb
mov eax, dword [ebp - 0x1100]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.100a39b0
mov eax, dword [ebp - 0x110c]
add esp, 0xc
push 0
lea edx, [ebp - 0x1100]
push edx
push esi
push 0
push 0x16
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10084cf2
lea edi, [ebx + 0x40]
push edi
mov eax, esi
call fcn.10026660
xor eax, eax
mov dword [ebp - 0x1124], eax
mov dword [ebp - 0x1120], eax
mov dword [ebp - 0x111c], eax
mov byte [ebp - 4], 2
mov eax, 0x100d7118
lea ecx, [ebp - 0x1088]
call fcn.10012b20
mov byte [ebp - 4], 3
cmp byte [ebx + 0x158], 0
jne 0x10084ac9
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.charset_A_Za_z0_9___
call fcn.10026660
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.100835c0
add esp, 4
test al, al
je 0x10084ac9
mov ecx, dword [ebp - 0x1120]
mov esi, dword [ebp - 0x1124]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10084ac9
push 0
lea ecx, [ebx + 0x78]
push esi
or eax, 0xffffffff
call fcn.100166c0
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Content_Length:__0_9_
call fcn.10026660
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.100835c0
add esp, 4
test al, al
je 0x10084b2f
mov ecx, dword [ebp - 0x1120]
mov esi, dword [ebp - 0x1124]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10084b2f
cmp dword [esi + 0x14], 8
jb 0x10084b20
mov esi, dword [esi]
push esi
call fcn.1009fae8
add esp, 4
mov dword [ebx + 0xa0], eax
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Location:__0_9_
call fcn.10026660
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.100835c0
add esp, 4
test al, al
je 0x10084b8f
mov ecx, dword [ebp - 0x1120]
mov esi, dword [ebp - 0x1124]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10084b8f
push 0
push esi
lea ecx, [ebx + 0x194]
or eax, 0xffffffff
call fcn.100166c0
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Set_Cookie:_b.__n
call fcn.10026660
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.100835c0
add esp, 4
test al, al
je 0x10084cce
mov ecx, dword [ebp - 0x1120]
sub ecx, dword [ebp - 0x1124]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x10084cce
mov dword [ebp - 0x1104], 0
test edi, edi
je 0x10084c43
mov eax, dword [ebp - 0x1124]
lea esi, [ebx + 0xa4]
mov dword [ebp - 0x1108], eax
mov ecx, dword [ebp - 0x1108]
push 0
push ecx
or eax, 0xffffffff
call fcn.100164a0
lea eax, [edi - 1]
cmp dword [ebp - 0x1104], eax
je 0x10084c2b
push esi
mov eax, 0x100da838
call fcn.10012bb0
mov eax, dword [ebp - 0x1104]
add dword [ebp - 0x1108], 0x1c
inc eax
mov dword [ebp - 0x1104], eax
cmp eax, edi
jb 0x10084c04
mov eax, 0x100ce5a8
lea ecx, [ebp - 0x10dc]
call fcn.10012b20
mov byte [ebp - 4], 4
lea edx, [ebp - 0x10dc]
push edx
lea esi, [ebx + 0xa4]
push esi
lea edx, [ebp - 0x10f8]
call fcn.10083a40
add esp, 8
mov byte [ebp - 4], 5
mov edi, eax
call fcn.10016430
mov byte [ebp - 4], 4
lea esi, [ebp - 0x10f8]
call fcn.10012b80
mov byte [ebp - 4], 3
lea esi, [ebp - 0x10dc]
call fcn.10012b80
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x10084cce
cmp dword [ebx + 0xb8], 8
lea ecx, [ebx + 0xa4]
jb 0x10084cb9
mov edx, dword [ecx]
jmp 0x10084cbb
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x3b
je 0x10084cce
push ecx
mov eax, 0x100da840
call fcn.10012bb0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x1088]
call fcn.10012b80
mov byte [ebp - 4], 0
lea esi, [ebp - 0x1124]
call fcn.10026870
mov esi, dword [ebp - 0x1128]
push esi
call fcn.1009d8d4
add esp, 4
mov ecx, dword [ebp - 0x110c]
push 0
lea eax, [ebp - 0x1100]
push eax
push 0
push 0
push 0x13
push ecx
mov dword [ebp - 0x1100], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x10084d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10084da0
mov eax, dword [ebp - 0x1100]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009b929
mov esi, eax
add esp, 4
test esi, esi
je 0x10084da0
mov eax, dword [ebp - 0x1100]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.100a39b0
mov eax, dword [ebp - 0x110c]
add esp, 0xc
push 0
lea edx, [ebp - 0x1100]
push edx
push esi
push 0
push 0x13
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10084d97
lea ecx, [ebx + 0x120]
push ecx
mov eax, esi
call fcn.10026660
push esi
call fcn.1009d8d4
add esp, 4
mov eax, dword [ebx + 0x94]
xor esi, esi
mov dword [ebp - 0x1104], 0x2800
test eax, eax
je 0x10084dc5
push eax
call fcn.1009d8d4
add esp, 4
mov dword [ebx + 0x94], esi
push 0x2800
call fcn.1009b929
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x100851d9
push 0x2800
push 0
push eax
call fcn.100a39b0
add esp, 0xc
mov eax, dword [ebp - 0x110c]
lea edx, [ebp - 0x1100]
push edx
push eax
mov dword [ebp - 0x1100], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10084f64
push esi
mov edx, ebx
call fcn.10085330
mov ecx, dword [ebp - 0x1100]
inc ecx
push ecx
call fcn.1009b929
mov edi, eax
add esp, 4
mov dword [ebp - 0x118c], edi
test edi, edi
je 0x10084f70
mov edx, dword [ebp - 0x1100]
inc edx
push edx
push 0
push edi
call fcn.100a39b0
mov ecx, dword [ebp - 0x1100]
mov edx, dword [ebp - 0x110c]
add esp, 0xc
lea eax, [ebp - 0x1108]
push eax
push ecx
push edi
push edx
mov dword [ebp - 0x1108], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10084f59
mov eax, dword [ebp - 0x1108]
add eax, esi
cmp eax, dword [ebp - 0x1104]
jbe 0x10084ef2
mov eax, dword [ebp - 0x1104]
mov edi, dword [ebx + 0x94]
add eax, eax
push eax
mov dword [ebp - 0x1128], eax
call fcn.1009b929
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x10084f7f
mov ecx, dword [ebp - 0x1128]
push ecx
push 0
push eax
mov dword [ebp - 0x1104], ecx
call fcn.100a39b0
mov ecx, dword [ebx + 0x94]
add esp, 0xc
push esi
push edi
push ecx
call fcn.100a0e30
add esp, 0xc
push edi
call fcn.1009d8d4
mov edi, dword [ebp - 0x118c]
add esp, 4
mov edx, dword [ebp - 0x1108]
mov eax, dword [ebx + 0x94]
push edx
add eax, esi
push edi
push eax
call fcn.100a0e30
add esi, dword [ebp - 0x1108]
add esp, 0xc
cmp byte [ebx + 0x1c0], 0
je 0x10084f59
mov ecx, dword [ebx + 0x1c4]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x1108]
mov ecx, dword [ebx + 0x1c4]
push 0
lea edx, [ebp - 0x1190]
push edx
push eax
push edi
push ecx
mov dword [ebp - 0x1190], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10084f85
push edi
call fcn.1009d8d4
add esp, 4
jmp 0x10084f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp dword [ebp - 0x1100], 0
ja 0x10084df0
jmp 0x10084f8c
mov dword [ebx + 0x94], edi
mov byte [ebp - 0x10f9], 0
push esi
mov edx, ebx
call fcn.10085330
lea eax, [ebx + 0x78]
mov dword [ebx + 0x98], esi
xor edi, edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x1108], 1
jb 0x10084fb1
mov eax, dword [eax]
push 5
push 0x100da844
push eax
call fcn.1009e994
add esp, 0xc
test eax, eax
jne 0x10084fd0
mov edi, 0xfde9
mov dword [ebp - 0x1108], eax
mov edx, dword [ebx + 0x98]
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebp - 0x1108]
push 0
push 0
inc edx
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x10085027
mov edx, dword [ebx + 0x98]
mov eax, dword [ebx + 0x94]
xor edi, edi
push edi
push edi
inc edx
push edx
push eax
push 1
push edi
mov dword [ebp - 0x1108], 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x100850a8
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009b929
add esp, 4
mov dword [ebp - 0x1104], eax
test eax, eax
je 0x100850a8
mov ecx, dword [ebp - 0x1104]
lea eax, [esi + esi]
push eax
push 0
push ecx
call fcn.100a39b0
mov edx, dword [ebp - 0x1104]
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x94]
add esp, 0xc
push esi
push edx
mov edx, dword [ebp - 0x1108]
inc eax
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x10085099
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 0x1104]
call fcn.10026660
mov ecx, dword [ebp - 0x1104]
push ecx
call fcn.1009d8d4
add esp, 4
mov eax, dword [ebp - 0x105c]
push 0x100d9254
mov edi, 3
lea ecx, [ebp - 0x106c]
mov byte [ebp - 0x10fa], 1
call fcn.1001f8b0
test eax, eax
jne 0x100851f0
mov eax, str._html_
lea ecx, [ebp - 0x10c0]
call fcn.10012b20
mov byte [ebp - 4], 6
xor eax, eax
mov dword [ebp - 0x1148], eax
mov dword [ebp - 0x1144], eax
mov dword [ebp - 0x1140], eax
mov byte [ebp - 4], 7
lea edx, [ebp - 0x1148]
push edx
lea ecx, [ebx + 0x5c]
lea edx, [ebp - 0x10c0]
call fcn.100835c0
add esp, 4
test al, al
je 0x1008519e
mov ecx, dword [ebp - 0x1144]
sub ecx, dword [ebp - 0x1148]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1008519e
lea ecx, [ebp - 0x10c0]
push ecx
mov eax, str.__html_
call fcn.10026660
lea edx, [ebp - 0x1148]
push edx
lea ecx, [ebx + 0x5c]
lea edx, [ebp - 0x10c0]
call fcn.100835c0
add esp, 4
test al, al
je 0x1008518d
mov ecx, dword [ebp - 0x1144]
sub ecx, dword [ebp - 0x1148]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1008519e
mov dword [ebx + 0x11c], 0xd
mov byte [ebp - 0x10fa], 0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x1148]
call fcn.10026870
mov byte [ebp - 4], 0
lea esi, [ebp - 0x10c0]
call fcn.10012b80
jmp 0x100851ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp byte [ebp - 0x10fa], 0
je 0x100844f3
jmp 0x100851f0
mov byte [ebp - 0x10f9], 0
cmp byte [ebp - 0x10fa], 0
jne 0x100851f0
mov byte [ebp - 0x10f9], 0
mov ecx, dword [ebp - 0x110c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp - 0x1188]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1058], edi
jb 0x1008522d
mov edx, dword [ebp - 0x106c]
push edx
call fcn.1009c0c0
add esp, 4
xor eax, eax
mov word [ebp - 0x106c], ax
mov al, byte [ebp - 0x10f9]
mov dword [ebp - 0x1058], 7
mov dword [ebp - 0x105c], 0
jmp 0x10085295
mov dword [ebx + 0x11c], 0x57
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1058], edi
jb 0x1008527a
mov ecx, dword [ebp - 0x106c]
push ecx
call fcn.1009c0c0
add esp, 4
mov dword [ebp - 0x105c], esi
xor edx, edx
mov word [ebp - 0x106c], dx
mov dword [ebp - 0x1058], 7
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.1009c0cb
mov esp, ebp
pop ebp
ret