Function at 0x433980
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 0x4b3d28
mov eax, dword fs:[0]
push eax
mov eax, 0x11c0
call fcn.004915a0
mov eax, dword [0x4ff1a0]
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 0x4339c9
mov dword [edi + 0x11c], 3
jmp 0x4349c5
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.0040f1f0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x106c]
mov ebx, 8
cmp dword [ebp - 0x1058], ebx
jae 0x433a0d
lea eax, [ebp - 0x106c]
push 0x4c41a0
push eax
call fcn.00493482
add esp, 8
test eax, eax
jne 0x433a28
push 3
push 0x4c41a0
jmp 0x433a59
mov eax, dword [ebp - 0x106c]
cmp dword [ebp - 0x1058], ebx
jae 0x433a3c
lea eax, [ebp - 0x106c]
push 0x4e24b8
push eax
call fcn.00493482
add esp, 8
test eax, eax
jne 0x434984
push 4
push 0x4e24b8
lea ecx, [ebp - 0x106c]
call fcn.0040e680
mov byte [ebp - 0x10f9], 1
cmp dword [edi], esi
jne 0x433aa1
cmp dword [edi + 0x150], ebx
lea eax, [edi + 0x13c]
jb 0x433a7f
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 0x433aa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
jmp 0x43498e
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.004911e0
add esp, 0xc
push 0xa26
lea edx, [ebp - 0x104e]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x1050], cx
call fcn.004911e0
add esp, 0xc
push 0x3c
lea eax, [ebp - 0x11c8]
push esi
push eax
call fcn.004911e0
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 0x433b61
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 0x434945
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov ebx, 2
mov cx, word [eax]
add eax, ebx
cmp cx, si
jne 0x433b87
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [edi + 0x24]
call fcn.0040e680
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 0x43493e
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 0x433bf5
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 0x434937
cmp byte [edi + 4], 0
jne 0x433c43
cmp dword [ebp - 0x11bc], ebx
jne 0x433c43
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 0x434914
mov ecx, dword [edi + 0xf4]
mov ebx, 8
test ecx, ecx
je 0x433cb1
cmp dword [edi + 0xf8], ebx
lea eax, [edi + 0xe4]
jb 0x433c8b
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 0x433cb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
jmp 0x433cb7
mov esi, dword [ebp - 0x1108]
cmp dword [edi + 0xd0], 0
jbe 0x433d31
push str.Cookie:
lea ecx, [ebp - 0x10a4]
call fcn.0040e770
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push 0
lea edx, [edi + 0xc0]
push edx
lea ecx, [ebp - 0x10a4]
call fcn.00410cb0
mov eax, dword [ebp - 0x10a4]
cmp dword [ebp - 0x1090], ebx
jae 0x433cfe
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 0x433d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10a4]
call fcn.0040f320
cmp dword [edi + 0x110], 0
jbe 0x433e3b
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.004911e0
lea eax, [edi + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x433d87
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0049195d
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 0x433dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov ecx, dword [edi + 0x16c]
test ecx, ecx
je 0x433e3b
cmp dword [edi + 0x170], 8
lea eax, [edi + 0x15c]
jb 0x433de7
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1002
push esi
call ebx
test eax, eax
jne 0x433e03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov ecx, dword [edi + 0x188]
test ecx, ecx
je 0x433e3b
cmp dword [edi + 0x18c], 8
lea eax, [edi + 0x178]
jb 0x433e1e
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1003
push esi
call ebx
test eax, eax
jne 0x433e3b
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 0x4340ab
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 0x4348f2
mov ecx, dword [ebp - 0x1130]
cmp ecx, esi
je 0x433f8f
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 0x433f0e
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 0x43405f
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 0x433f64
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call ebx
test eax, eax
je 0x433f64
mov byte [ebp - 0x110d], 1
mov eax, dword [ebp - 0x1158]
test eax, eax
je 0x433f75
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1154]
test eax, eax
je 0x43406b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x43406b
mov esi, dword [ebp - 0x112c]
test esi, esi
je 0x43408d
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.004911e0
add esp, 0xc
push esi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0049195d
mov esi, dword [ebp - 0x1128]
add esp, 0xc
lea edx, [ebp - 0x218]
mov dword [ebp - 0x114c], edx
test esi, esi
je 0x434043
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.004911e0
add esp, 0xc
push esi
lea edx, [ebp - 0x628]
push 0x104
push edx
call fcn.0049195d
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 0x43406b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov eax, dword [ebp - 0x1130]
test eax, eax
je 0x43407c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x112c]
test eax, eax
je 0x43408d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1128]
test eax, eax
je 0x43409e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x110d], 0
je 0x4348fe
mov eax, dword [edi + 0xdc]
xor ebx, ebx
cmp eax, ebx
je 0x4340e9
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 0x4340e9
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 0x4348f2
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 0x43412d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x434442
mov eax, dword [ebp - 0x1104]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490047
mov esi, eax
add esp, 4
mov dword [ebp - 0x110c], esi
test esi, esi
je 0x434442
mov eax, dword [ebp - 0x1104]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004911e0
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 0x434439
push esi
lea ecx, [edi + 0x40]
call fcn.00410380
xor eax, eax
mov dword [ebp - 0x1124], eax
mov dword [ebp - 0x1120], eax
mov dword [ebp - 0x111c], eax
mov byte [ebp - 4], 2
push 0x4c42e8
lea ecx, [ebp - 0x1088]
call fcn.0040e770
mov byte [ebp - 4], 3
cmp byte [edi + 0x158], 0
jne 0x43422a
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x1088]
call fcn.00410380
lea ecx, [ebp - 0x1124]
push ecx
lea ecx, [edi + 0x40]
lea edx, [ebp - 0x1088]
call fcn.00432d70
add esp, 4
test al, al
je 0x43422a
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 0x43422a
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x78]
push esi
call fcn.0040f1f0
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x1088]
call fcn.00410380
lea ecx, [ebp - 0x1124]
push ecx
lea ecx, [edi + 0x40]
lea edx, [ebp - 0x1088]
call fcn.00432d70
add esp, 4
test al, al
je 0x434290
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 0x434290
cmp dword [esi + 0x14], 8
jb 0x434281
mov esi, dword [esi]
push esi
call fcn.00491632
add esp, 4
mov dword [edi + 0xa0], eax
push str.Location:__0_9_
lea ecx, [ebp - 0x1088]
call fcn.00410380
lea ecx, [ebp - 0x1124]
push ecx
lea ecx, [edi + 0x40]
lea edx, [ebp - 0x1088]
call fcn.00432d70
add esp, 4
test al, al
je 0x4342ef
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 0x4342ef
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x194]
call fcn.0040f1f0
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x1088]
call fcn.00410380
lea ecx, [ebp - 0x1124]
push ecx
lea ecx, [edi + 0x40]
lea edx, [ebp - 0x1088]
call fcn.00432d70
add esp, 4
test al, al
je 0x43440f
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 0x43440f
xor ebx, ebx
test esi, esi
je 0x43438b
mov dword [ebp - 0x1100], ecx
mov edx, dword [ebp - 0x1100]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [edi + 0xa4]
call fcn.00410cb0
lea eax, [esi - 1]
cmp ebx, eax
je 0x43437f
push 0x4e2594
lea ecx, [edi + 0xa4]
call fcn.00410c80
add dword [ebp - 0x1100], 0x1c
inc ebx
cmp ebx, esi
jb 0x434352
push 0x4e24b4
lea ecx, [ebp - 0x10dc]
call fcn.0040e770
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10dc]
push eax
lea esi, [edi + 0xa4]
push esi
lea edx, [ebp - 0x10f8]
call fcn.00433200
add esp, 8
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.00409ad0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10f8]
call fcn.0040f320
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10dc]
call fcn.0040f320
mov eax, dword [edi + 0xb4]
test eax, eax
je 0x43440f
cmp dword [esi + 0x14], 8
jb 0x4343f9
mov ecx, dword [esi]
jmp 0x4343fb
mov ecx, esi
cmp word [ecx + eax*2 - 2], 0x3b
je 0x43440f
push 0x4e259c
mov ecx, esi
call fcn.00410c80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1088]
call fcn.0040f320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1124]
call fcn.0041f190
mov esi, dword [ebp - 0x110c]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call fcn.004913ca
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 0x434473
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4344dd
mov eax, dword [ebp - 0x1104]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490047
mov esi, eax
add esp, 4
test esi, esi
je 0x4344dd
mov eax, dword [ebp - 0x1104]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004911e0
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 0x4344d4
push esi
lea ecx, [edi + 0x120]
call fcn.00410380
push esi
call fcn.004913ca
add esp, 4
mov eax, dword [edi + 0x94]
xor esi, esi
mov dword [ebp - 0x1100], 0x2800
cmp eax, esi
je 0x434502
push eax
call fcn.004913ca
add esp, 4
mov dword [edi + 0x94], esi
push 0x2800
call fcn.00490047
add esp, 4
mov dword [edi + 0x94], eax
cmp eax, esi
je 0x43490d
push 0x2800
push esi
push eax
call fcn.004911e0
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 0x4346a4
push esi
mov edx, edi
call fcn.00434a70
mov eax, dword [ebp - 0x1104]
inc eax
push eax
call fcn.00490047
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1178], ebx
test ebx, ebx
je 0x4346b0
mov ecx, dword [ebp - 0x1104]
inc ecx
push ecx
push 0
push ebx
call fcn.004911e0
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 0x434699
mov edx, dword [ebp - 0x110c]
add edx, esi
cmp edx, dword [ebp - 0x1100]
jbe 0x434632
mov eax, dword [ebp - 0x1100]
mov ebx, dword [edi + 0x94]
add eax, eax
push eax
mov dword [ebp - 0x1100], eax
call fcn.00490047
add esp, 4
mov dword [edi + 0x94], eax
test eax, eax
je 0x4346bf
mov ecx, dword [ebp - 0x1100]
push ecx
push 0
push eax
mov dword [ebp - 0x1100], ecx
call fcn.004911e0
mov eax, dword [edi + 0x94]
add esp, 0xc
push esi
push ebx
push eax
call fcn.00490650
add esp, 0xc
push ebx
call fcn.004913ca
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.00490650
add esi, dword [ebp - 0x110c]
add esp, 0xc
cmp byte [edi + 0x1c0], 0
je 0x434699
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 0x4346c5
push ebx
call fcn.004913ca
add esp, 4
jmp 0x4346b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
cmp dword [ebp - 0x1104], 0
ja 0x434530
jmp 0x4346cc
mov dword [edi + 0x94], ebx
mov byte [ebp - 0x10f9], 0
push esi
mov edx, edi
call fcn.00434a70
lea eax, [edi + 0x78]
mov dword [edi + 0x98], esi
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x110c], 1
jb 0x4346f1
mov eax, dword [eax]
push 5
push 0x4e25a0
push eax
call fcn.004931a1
add esp, 0xc
test eax, eax
jne 0x434710
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 0x434767
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 0x4347e8
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490047
add esp, 4
mov dword [ebp - 0x1100], eax
test eax, eax
je 0x4347e8
mov ecx, dword [ebp - 0x1100]
lea eax, [esi + esi]
push eax
push 0
push ecx
call fcn.004911e0
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 0x4347d9
mov eax, dword [ebp - 0x1100]
push eax
lea ecx, [edi + 0x5c]
call fcn.00410380
mov ecx, dword [ebp - 0x1100]
push ecx
call fcn.004913ca
add esp, 4
mov esi, 0x4c41a0
lea ecx, [ebp - 0x106c]
mov byte [ebp - 0x10fa], 1
call fcn.004368f0
test al, al
je 0x434924
push str._html_
lea ecx, [ebp - 0x10c0]
call fcn.0040e770
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 edx, [ebp - 0x1144]
push edx
lea ecx, [edi + 0x5c]
lea edx, [ebp - 0x10c0]
call fcn.00432d70
add esp, 4
test al, al
je 0x4348d2
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
je 0x4348d2
push str.__html_
lea ecx, [ebp - 0x10c0]
call fcn.00410380
lea ecx, [ebp - 0x1144]
push ecx
lea ecx, [edi + 0x5c]
lea edx, [ebp - 0x10c0]
call fcn.00432d70
add esp, 4
test al, al
je 0x4348c1
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 0x4348d2
mov dword [edi + 0x11c], 0xd
mov byte [ebp - 0x10fa], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1144]
call fcn.0041f190
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c0]
call fcn.0040f320
jmp 0x4348fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
cmp byte [ebp - 0x10fa], 0
je 0x433c54
jmp 0x434924
mov byte [ebp - 0x10f9], 0
cmp byte [ebp - 0x10fa], 0
jne 0x434924
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 0x434963
mov edx, dword [ebp - 0x106c]
push edx
call fcn.00490458
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 0x4349c7
mov dword [edi + 0x11c], 0x57
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1058], ebx
jb 0x4349ac
mov ecx, dword [ebp - 0x106c]
push ecx
call fcn.00490458
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.004911d1
mov esp, ebp
pop ebp
ret