Function at 0x100709e0
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 0x100de4a8
mov eax, dword fs:[0]
push eax
mov eax, 0x11c0
call fcn.100b3af0
mov eax, dword [0x1010e07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edi + 0x18]
xor esi, esi
cmp eax, esi
ja 0x10070a29
mov dword [edi + 0x11c], 3
jmp 0x10071a29
push 0xffffffffffffffff
push esi
xor eax, eax
push ecx
lea ecx, [ebp - 0x106c]
mov dword [ebp - 0x1058], 7
mov dword [ebp - 0x105c], esi
mov word [ebp - 0x106c], ax
call fcn.10005f30
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x106c]
mov ebx, 8
cmp dword [ebp - 0x1058], ebx
jae 0x10070a6d
lea eax, [ebp - 0x106c]
push 0x100f6038
push eax
call fcn.100b6bf2
add esp, 8
test eax, eax
jne 0x10070a88
push 3
push 0x100f6038
jmp 0x10070ab9
mov eax, dword [ebp - 0x106c]
cmp dword [ebp - 0x1058], ebx
jae 0x10070a9c
lea eax, [ebp - 0x106c]
push 0x100f6768
push eax
call fcn.100b6bf2
add esp, 8
test eax, eax
jne 0x100719e8
push 4
push 0x100f6768
lea ecx, [ebp - 0x106c]
call fcn.10006a20
mov byte [ebp - 0x10f9], 1
cmp dword [edi], esi
jne 0x10070b01
cmp dword [edi + 0x150], ebx
lea eax, [edi + 0x13c]
jb 0x10070adf
mov eax, dword [eax]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi], eax
cmp eax, esi
jne 0x10070b01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
jmp 0x100719f2
mov eax, dword [edi + 0x1bc]
mov ecx, dword [edi + 0x1b8]
mov edx, dword [edi + 0x1b4]
push eax
mov eax, dword [edi + 0x1b0]
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0x206
lea eax, [ebp - 0x41e]
xor edx, edx
push esi
push eax
mov word [ebp - 0x420], dx
call fcn.100b2ed0
add esp, 0xc
push 0xa26
lea edx, [ebp - 0x104e]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x1050], cx
call fcn.100b2ed0
add esp, 0xc
push 0x3c
lea eax, [ebp - 0x11c8]
push esi
push eax
call fcn.100b2ed0
lea ecx, [ebp - 0x420]
lea eax, [edi + 8]
add esp, 0xc
lea edx, [ebp - 0x1050]
mov dword [ebp - 0x11b8], ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x11c8], 0x3c
mov dword [ebp - 0x11b4], 0x104
mov dword [ebp - 0x119c], edx
mov dword [ebp - 0x1198], 0x514
mov dword [ebp - 0x11c0], 1
cmp dword [eax + 0x14], ebx
jb 0x10070bc1
mov eax, dword [eax]
lea edx, [ebp - 0x11c8]
push edx
push esi
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x100719a9
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov ebx, 2
mov cx, word [eax]
add eax, ebx
cmp cx, si
jne 0x10070be7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [edi + 0x24]
call fcn.10006a20
mov ecx, dword [ebp - 0x11b0]
mov eax, dword [edi]
push 0
push ecx
lea edx, [ebp - 0x420]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [ebp - 0x117c], esi
test esi, esi
je 0x100719a2
mov eax, dword [ebp - 0x106c]
xor ecx, ecx
cmp dword [ebp - 0x11bc], ebx
setne cl
dec ecx
and ecx, 0x800000
cmp dword [ebp - 0x1058], 8
jae 0x10070c55
lea eax, [ebp - 0x106c]
push ecx
mov ecx, dword [ebp - 0x119c]
push 0
push 0
push 0
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1108], eax
test eax, eax
je 0x1007199b
cmp byte [edi + 4], 0
jne 0x10070ca3
cmp dword [ebp - 0x11bc], ebx
jne 0x10070ca3
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 0x10071978
mov ecx, dword [edi + 0xf4]
mov ebx, 8
test ecx, ecx
je 0x10070d11
cmp dword [edi + 0xf8], ebx
lea eax, [edi + 0xe4]
jb 0x10070ceb
mov eax, dword [eax]
mov esi, dword [ebp - 0x1108]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10070d17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
jmp 0x10070d17
mov esi, dword [ebp - 0x1108]
cmp dword [edi + 0xd0], 0
jbe 0x10070d91
push str.Cookie:
lea ecx, [ebp - 0x10a4]
call fcn.1000b7d0
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push 0
lea edx, [edi + 0xc0]
push edx
lea ecx, [ebp - 0x10a4]
call fcn.1000df50
mov eax, dword [ebp - 0x10a4]
cmp dword [ebp - 0x1090], ebx
jae 0x10070d5e
lea eax, [ebp - 0x10a4]
mov ecx, dword [ebp - 0x1094]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10070d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10a4]
call fcn.100041b0
cmp dword [edi + 0x110], 0
jbe 0x10070e9b
xor eax, eax
xor edx, edx
mov dword [ebp - 0x118c], eax
push 0x206
mov dword [ebp - 0x1188], eax
mov dword [ebp - 0x1184], eax
push edx
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x118c], 3
mov word [ebp - 0x218], dx
call fcn.100b2ed0
lea eax, [edi + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x10070de7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.100b533a
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
push 0xc
lea eax, [ebp - 0x118c]
push eax
push 0x26
lea edx, [ebp - 0x218]
push esi
mov dword [ebp - 0x1188], edx
call ebx
test eax, eax
jne 0x10070e2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov ecx, dword [edi + 0x16c]
test ecx, ecx
je 0x10070e9b
cmp dword [edi + 0x170], 8
lea eax, [edi + 0x15c]
jb 0x10070e47
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1002
push esi
call ebx
test eax, eax
jne 0x10070e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov ecx, dword [edi + 0x188]
test ecx, ecx
je 0x10070e9b
cmp dword [edi + 0x18c], 8
lea eax, [edi + 0x178]
jb 0x10070e7e
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1003
push esi
call ebx
test eax, eax
jne 0x10070e9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov byte [ebp - 0x110d], 0
call ebx
test eax, eax
jne 0x1007110b
mov dword [ebp - 0x1134], eax
mov dword [ebp - 0x1130], eax
mov dword [ebp - 0x112c], eax
mov dword [ebp - 0x1128], eax
lea eax, [ebp - 0x1134]
push eax
xor esi, esi
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x10071956
mov ecx, dword [ebp - 0x1130]
cmp ecx, esi
je 0x10070fef
xor eax, 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 dword [ebp - 0x1160], eax
mov eax, 1
mov dword [ebp - 0x1170], eax
mov dword [ebp - 0x1160], eax
xor eax, eax
cmp dword [edi + 0x1c], 8
mov dword [ebp - 0x115c], eax
mov dword [ebp - 0x1158], eax
mov dword [ebp - 0x1154], eax
lea eax, [edi + 8]
mov dword [ebp - 0x1174], 3
mov dword [ebp - 0x116c], ecx
mov dword [ebp - 0x1164], esi
mov dword [ebp - 0x1168], esi
jb 0x10070f6e
mov eax, dword [eax]
lea ecx, [ebp - 0x115c]
push ecx
lea edx, [ebp - 0x1174]
push edx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x100710bf
mov esi, dword [ebp - 0x1108]
push 0xc
lea ecx, [ebp - 0x115c]
push ecx
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x10070fc4
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call ebx
test eax, eax
je 0x10070fc4
mov byte [ebp - 0x110d], 1
mov eax, dword [ebp - 0x1158]
test eax, eax
je 0x10070fd5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1154]
test eax, eax
je 0x100710cb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x100710cb
mov esi, dword [ebp - 0x112c]
test esi, esi
je 0x100710ed
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1150], eax
push 0x206
mov dword [ebp - 0x114c], eax
mov dword [ebp - 0x1148], eax
push edx
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x1150], 3
mov word [ebp - 0x218], dx
call fcn.100b2ed0
add esp, 0xc
push esi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.100b533a
mov esi, dword [ebp - 0x1128]
add esp, 0xc
lea edx, [ebp - 0x218]
mov dword [ebp - 0x114c], edx
test esi, esi
je 0x100710a3
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.100b2ed0
add esp, 0xc
push esi
lea edx, [ebp - 0x628]
push 0x104
push edx
call fcn.100b533a
lea eax, [ebp - 0x628]
add esp, 0xc
mov dword [ebp - 0x1148], eax
mov edx, dword [ebp - 0x1108]
push 0xc
lea ecx, [ebp - 0x1150]
push ecx
push 0x26
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x100710cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov eax, dword [ebp - 0x1130]
test eax, eax
je 0x100710dc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x112c]
test eax, eax
je 0x100710ed
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1128]
test eax, eax
je 0x100710fe
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x110d], 0
je 0x10071962
mov eax, dword [edi + 0xdc]
xor ebx, ebx
cmp eax, ebx
je 0x10071149
mov edx, dword [edi + 0xe0]
lea ecx, [ebp - 0x1100]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x1108]
push eax
mov dword [ebp - 0x1100], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x10071149
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov esi, dword [ebp - 0x1108]
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10071956
push ebx
lea ecx, [ebp - 0x1104]
push ecx
push ebx
push ebx
push 0x16
mov dword [ebp - 0x1104], ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call ebx
test eax, eax
jne 0x1007118d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100714a2
mov eax, dword [ebp - 0x1104]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b21c0
mov esi, eax
add esp, 4
mov dword [ebp - 0x110c], esi
test esi, esi
je 0x100714a2
mov eax, dword [ebp - 0x1104]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.100b2ed0
mov eax, dword [ebp - 0x1108]
add esp, 0xc
push 0
lea edx, [ebp - 0x1104]
push edx
push esi
push 0
push 0x16
push eax
call ebx
test eax, eax
je 0x10071499
push esi
lea ecx, [edi + 0x40]
call fcn.1000b820
xor eax, eax
mov dword [ebp - 0x1124], eax
mov dword [ebp - 0x1120], eax
mov dword [ebp - 0x111c], eax
mov byte [ebp - 4], 2
push 0x100eb174
lea ecx, [ebp - 0x1088]
call fcn.1000b7d0
mov byte [ebp - 4], 3
cmp byte [edi + 0x158], 0
jne 0x1007128a
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x1088]
call fcn.1000b820
lea ecx, [ebp - 0x1124]
push ecx
lea ecx, [edi + 0x40]
lea edx, [ebp - 0x1088]
call fcn.1006fdf0
add esp, 4
test al, al
je 0x1007128a
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 0x1007128a
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x78]
push esi
call fcn.10005f30
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x1088]
call fcn.1000b820
lea ecx, [ebp - 0x1124]
push ecx
lea ecx, [edi + 0x40]
lea edx, [ebp - 0x1088]
call fcn.1006fdf0
add esp, 4
test al, al
je 0x100712f0
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 0x100712f0
cmp dword [esi + 0x14], 8
jb 0x100712e1
mov esi, dword [esi]
push esi
call fcn.100b5744
add esp, 4
mov dword [edi + 0xa0], eax
push str.Location:__0_9_
lea ecx, [ebp - 0x1088]
call fcn.1000b820
lea ecx, [ebp - 0x1124]
push ecx
lea ecx, [edi + 0x40]
lea edx, [ebp - 0x1088]
call fcn.1006fdf0
add esp, 4
test al, al
je 0x1007134f
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 0x1007134f
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x194]
call fcn.10005f30
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x1088]
call fcn.1000b820
lea ecx, [ebp - 0x1124]
push ecx
lea ecx, [edi + 0x40]
lea edx, [ebp - 0x1088]
call fcn.1006fdf0
add esp, 4
test al, al
je 0x1007146f
mov esi, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x1124]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x1007146f
xor ebx, ebx
test esi, esi
je 0x100713eb
mov dword [ebp - 0x1100], ecx
mov edx, dword [ebp - 0x1100]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [edi + 0xa4]
call fcn.1000df50
lea eax, [esi - 1]
cmp ebx, eax
je 0x100713df
push 0x100f6844
lea ecx, [edi + 0xa4]
call fcn.1000b850
add dword [ebp - 0x1100], 0x1c
inc ebx
cmp ebx, esi
jb 0x100713b2
push 0x100f6764
lea ecx, [ebp - 0x10dc]
call fcn.1000b7d0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10dc]
push eax
lea esi, [edi + 0xa4]
push esi
lea edx, [ebp - 0x10f8]
call fcn.10070260
add esp, 8
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.100070c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10f8]
call fcn.100041b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10dc]
call fcn.100041b0
mov eax, dword [edi + 0xb4]
test eax, eax
je 0x1007146f
cmp dword [esi + 0x14], 8
jb 0x10071459
mov ecx, dword [esi]
jmp 0x1007145b
mov ecx, esi
cmp word [ecx + eax*2 - 2], 0x3b
je 0x1007146f
push 0x100f684c
mov ecx, esi
call fcn.1000b850
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1088]
call fcn.100041b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x1124]
call fcn.1000c650
mov esi, dword [ebp - 0x110c]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call fcn.100b2e04
add esp, 4
mov edx, dword [ebp - 0x1108]
push 0
lea ecx, [ebp - 0x1104]
push ecx
push 0
push 0
push 0x13
push edx
mov dword [ebp - 0x1104], 0
call ebx
test eax, eax
jne 0x100714d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1007153d
mov eax, dword [ebp - 0x1104]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b21c0
mov esi, eax
add esp, 4
test esi, esi
je 0x1007153d
mov eax, dword [ebp - 0x1104]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.100b2ed0
mov eax, dword [ebp - 0x1108]
add esp, 0xc
push 0
lea edx, [ebp - 0x1104]
push edx
push esi
push 0
push 0x13
push eax
call ebx
test eax, eax
je 0x10071534
push esi
lea ecx, [edi + 0x120]
call fcn.1000b820
push esi
call fcn.100b2e04
add esp, 4
mov eax, dword [edi + 0x94]
xor esi, esi
mov dword [ebp - 0x1100], 0x2800
cmp eax, esi
je 0x10071562
push eax
call fcn.100b2e04
add esp, 4
mov dword [edi + 0x94], esi
push 0x2800
call fcn.100b21c0
add esp, 4
mov dword [edi + 0x94], eax
cmp eax, esi
je 0x10071971
push 0x2800
push esi
push eax
call fcn.100b2ed0
add esp, 0xc
lea esp, [esp]
mov edx, dword [ebp - 0x1108]
lea ecx, [ebp - 0x1104]
push ecx
push edx
mov dword [ebp - 0x1104], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10071704
push esi
mov edx, edi
call fcn.10071ad0
mov eax, dword [ebp - 0x1104]
inc eax
push eax
call fcn.100b21c0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1178], ebx
test ebx, ebx
je 0x10071710
mov ecx, dword [ebp - 0x1104]
inc ecx
push ecx
push 0
push ebx
call fcn.100b2ed0
mov eax, dword [ebp - 0x1104]
mov ecx, dword [ebp - 0x1108]
add esp, 0xc
lea edx, [ebp - 0x110c]
push edx
push eax
push ebx
push ecx
mov dword [ebp - 0x110c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100716f9
mov edx, dword [ebp - 0x110c]
add edx, esi
cmp edx, dword [ebp - 0x1100]
jbe 0x10071692
mov eax, dword [ebp - 0x1100]
mov ebx, dword [edi + 0x94]
add eax, eax
push eax
mov dword [ebp - 0x1100], eax
call fcn.100b21c0
add esp, 4
mov dword [edi + 0x94], eax
test eax, eax
je 0x1007171f
mov ecx, dword [ebp - 0x1100]
push ecx
push 0
push eax
mov dword [ebp - 0x1100], ecx
call fcn.100b2ed0
mov eax, dword [edi + 0x94]
add esp, 0xc
push esi
push ebx
push eax
call fcn.100b3090
add esp, 0xc
push ebx
call fcn.100b2e04
mov ebx, dword [ebp - 0x1178]
add esp, 4
mov ecx, dword [ebp - 0x110c]
mov edx, dword [edi + 0x94]
push ecx
add edx, esi
push ebx
push edx
call fcn.100b3090
add esi, dword [ebp - 0x110c]
add esp, 0xc
cmp byte [edi + 0x1c0], 0
je 0x100716f9
mov eax, dword [edi + 0x1c4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x110c]
mov eax, dword [edi + 0x1c4]
push 0
lea ecx, [ebp - 0x1180]
push ecx
push edx
push ebx
push eax
mov dword [ebp - 0x1180], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10071725
push ebx
call fcn.100b2e04
add esp, 4
jmp 0x10071710
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
cmp dword [ebp - 0x1104], 0
ja 0x10071590
jmp 0x1007172c
mov dword [edi + 0x94], ebx
mov byte [ebp - 0x10f9], 0
push esi
mov edx, edi
call fcn.10071ad0
lea eax, [edi + 0x78]
mov dword [edi + 0x98], esi
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x110c], 1
jb 0x10071751
mov eax, dword [eax]
push 5
push 0x100f6850
push eax
call fcn.100b54f7
add esp, 0xc
test eax, eax
jne 0x10071770
mov ebx, 0xfde9
mov dword [ebp - 0x110c], eax
mov ecx, dword [edi + 0x98]
mov edx, dword [edi + 0x94]
mov eax, dword [ebp - 0x110c]
push 0
push 0
inc ecx
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x100717c7
mov ecx, dword [edi + 0x98]
mov edx, dword [edi + 0x94]
xor ebx, ebx
push ebx
push ebx
inc ecx
push ecx
push edx
push 1
push ebx
mov dword [ebp - 0x110c], 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x10071848
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b21c0
add esp, 4
mov dword [ebp - 0x1100], eax
test eax, eax
je 0x10071848
mov ecx, dword [ebp - 0x1100]
lea eax, [esi + esi]
push eax
push 0
push ecx
call fcn.100b2ed0
mov edx, dword [ebp - 0x1100]
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x94]
add esp, 0xc
push esi
push edx
mov edx, dword [ebp - 0x110c]
inc eax
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x10071839
mov eax, dword [ebp - 0x1100]
push eax
lea ecx, [edi + 0x5c]
call fcn.1000b820
mov ecx, dword [ebp - 0x1100]
push ecx
call fcn.100b2e04
add esp, 4
lea edx, [ebp - 0x106c]
push 0x100f6038
push edx
mov byte [ebp - 0x10fa], 1
call fcn.10073910
add esp, 8
test al, al
je 0x10071988
push str._html_
lea ecx, [ebp - 0x10c0]
call fcn.1000b7d0
mov byte [ebp - 4], 6
xor eax, eax
mov dword [ebp - 0x1144], eax
mov dword [ebp - 0x1140], eax
mov dword [ebp - 0x113c], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1144]
push eax
lea ecx, [edi + 0x5c]
lea edx, [ebp - 0x10c0]
call fcn.1006fdf0
add esp, 4
test al, al
je 0x10071936
mov ecx, dword [ebp - 0x1140]
sub ecx, dword [ebp - 0x1144]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x10071936
push str.__html_
lea ecx, [ebp - 0x10c0]
call fcn.1000b820
lea edx, [ebp - 0x1144]
push edx
lea ecx, [edi + 0x5c]
lea edx, [ebp - 0x10c0]
call fcn.1006fdf0
add esp, 4
test al, al
je 0x10071925
mov ecx, dword [ebp - 0x1140]
sub ecx, dword [ebp - 0x1144]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x10071936
mov dword [edi + 0x11c], 0xd
mov byte [ebp - 0x10fa], 0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x1144]
call fcn.1000c650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c0]
call fcn.100041b0
jmp 0x10071962
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
cmp byte [ebp - 0x10fa], 0
je 0x10070cb4
jmp 0x10071988
mov byte [ebp - 0x10f9], 0
cmp byte [ebp - 0x10fa], 0
jne 0x10071988
mov byte [ebp - 0x10f9], 0
mov ecx, dword [ebp - 0x1108]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp - 0x117c]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, 8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1058], ebx
jb 0x100719c7
mov edx, dword [ebp - 0x106c]
push edx
call fcn.100b2678
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], esi
jmp 0x10071a2b
mov dword [edi + 0x11c], 0x57
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1058], ebx
jb 0x10071a10
mov ecx, dword [ebp - 0x106c]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov word [ebp - 0x106c], dx
mov dword [ebp - 0x105c], esi
mov dword [ebp - 0x1058], 7
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b2b2c
mov esp, ebp
pop ebp
ret