Function at 0x48d4c0
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 0x4c0e68
mov eax, dword fs:[0]
push eax
mov eax, 0x11c0
call fcn.004b6630
mov eax, dword [0x4eb6b8]
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 0x48d509
mov dword [ebx + 0x11c], 3
jmp 0x48e563
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.004138e0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x106c]
mov edi, 8
cmp dword [ebp - 0x1058], edi
jae 0x48d54e
lea eax, [ebp - 0x106c]
push 0x4d7f2c
push eax
call fcn.0049e6e1
add esp, 8
test eax, eax
jne 0x48d569
push 3
mov eax, 0x4d7f2c
jmp 0x48d59a
mov eax, dword [ebp - 0x106c]
cmp dword [ebp - 0x1058], edi
jae 0x48d57d
lea eax, [ebp - 0x106c]
push str.POST
push eax
call fcn.0049e6e1
add esp, 8
test eax, eax
jne 0x48e522
push 4
mov eax, str.POST
lea esi, [ebp - 0x106c]
call fcn.00415f60
cmp dword [ebx], 0
mov byte [ebp - 0x10f9], 1
jne 0x48d60f
cmp dword [ebx + 0x150], edi
lea eax, [ebx + 0x13c]
jb 0x48d5c1
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 0x48d60f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1058], edi
jb 0x48d600
mov ecx, dword [ebp - 0x106c]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x105c], 0
jmp 0x48e550
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.004a2b10
add esp, 0xc
xor ecx, ecx
push 0xa26
push ecx
lea edx, [ebp - 0x104e]
push edx
mov word [ebp - 0x1050], cx
call fcn.004a2b10
add esp, 0xc
push 0x3c
lea eax, [ebp - 0x11cc]
push 0
push eax
call fcn.004a2b10
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 0x48d6d0
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 0x48e4df
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov edi, 2
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x48d6f7
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x24]
lea eax, [ebp - 0x420]
call fcn.00415f60
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 0x48e4da
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 0x48d764
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 0x48e4d3
cmp byte [ebx + 4], 0
jne 0x48d7b2
cmp dword [ebp - 0x11c0], edi
jne 0x48d7b2
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 0x48e4b0
mov ecx, dword [ebx + 0xf4]
test ecx, ecx
je 0x48d81c
cmp dword [ebx + 0xf8], 8
lea eax, [ebx + 0xe4]
jb 0x48d7f6
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 0x48d822
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
jmp 0x48d822
mov edi, dword [ebp - 0x110c]
cmp dword [ebx + 0xd0], 0
jbe 0x48d89a
mov eax, str.Cookie:
lea ecx, [ebp - 0x10a4]
call fcn.00410c10
mov byte [ebp - 4], 1
push 0
lea edx, [ebx + 0xc0]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x10a4]
call fcn.004136c0
cmp dword [ebp - 0x1090], 8
mov eax, dword [ebp - 0x10a4]
jae 0x48d867
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 0x48d88b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov byte [ebp - 4], 0
lea esi, [ebp - 0x10a4]
call fcn.00410c70
cmp dword [ebx + 0x110], 0
jbe 0x48d9a5
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.004a2b10
lea eax, [ebx + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x48d8f1
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0049e57b
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 0x48d936
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x16c]
test ecx, ecx
je 0x48d9a5
cmp dword [ebx + 0x170], 8
lea eax, [ebx + 0x15c]
jb 0x48d951
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1002
push edi
call esi
test eax, eax
jne 0x48d96d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x188]
test ecx, ecx
je 0x48d9a5
cmp dword [ebx + 0x18c], 8
lea eax, [ebx + 0x178]
jb 0x48d988
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1003
push edi
call esi
test eax, eax
jne 0x48d9a5
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 0x48dc15
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 0x48e48e
mov ecx, dword [ebp - 0x1134]
cmp ecx, esi
je 0x48daf9
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 0x48da78
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 0x48dbc9
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 0x48dace
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call edi
test eax, eax
je 0x48dace
mov byte [ebp - 0x110d], 1
mov eax, dword [ebp - 0x115c]
test eax, eax
je 0x48dadf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1158]
test eax, eax
je 0x48dbd5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x48dbd5
mov esi, dword [ebp - 0x1130]
test esi, esi
je 0x48dbf7
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.004a2b10
add esp, 0xc
push esi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0049e57b
mov esi, dword [ebp - 0x112c]
add esp, 0xc
lea edx, [ebp - 0x218]
mov dword [ebp - 0x1150], edx
test esi, esi
je 0x48dbad
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.004a2b10
add esp, 0xc
push esi
lea edx, [ebp - 0x628]
push 0x104
push edx
call fcn.0049e57b
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 0x48dbd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov eax, dword [ebp - 0x1134]
test eax, eax
je 0x48dbe6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1130]
test eax, eax
je 0x48dbf7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x112c]
test eax, eax
je 0x48dc08
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x110d], 0
je 0x48e49a
mov eax, dword [ebx + 0xdc]
xor edi, edi
cmp eax, edi
je 0x48dc53
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 0x48dc53
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 0x48e48e
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 0x48dc95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x48dfcb
mov eax, dword [ebp - 0x1100]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049aac8
mov esi, eax
add esp, 4
mov dword [ebp - 0x1128], esi
test esi, esi
je 0x48dfcb
mov eax, dword [ebp - 0x1100]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004a2b10
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 0x48dfc2
lea edi, [ebx + 0x40]
push edi
mov eax, esi
call fcn.004139e0
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, 0x4d5f38
lea ecx, [ebp - 0x1088]
call fcn.00410c10
mov byte [ebp - 4], 3
cmp byte [ebx + 0x158], 0
jne 0x48dd99
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.charset_A_Za_z0_9___
call fcn.004139e0
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.0048c890
add esp, 4
test al, al
je 0x48dd99
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 0x48dd99
push 0
lea ecx, [ebx + 0x78]
push esi
or eax, 0xffffffff
call fcn.004138e0
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Content_Length:__0_9_
call fcn.004139e0
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.0048c890
add esp, 4
test al, al
je 0x48ddff
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 0x48ddff
cmp dword [esi + 0x14], 8
jb 0x48ddf0
mov esi, dword [esi]
push esi
call fcn.0049bd32
add esp, 4
mov dword [ebx + 0xa0], eax
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Location:__0_9_
call fcn.004139e0
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.0048c890
add esp, 4
test al, al
je 0x48de5f
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 0x48de5f
push 0
push esi
lea ecx, [ebx + 0x194]
or eax, 0xffffffff
call fcn.004138e0
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Set_Cookie:_b.__n
call fcn.004139e0
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.0048c890
add esp, 4
test al, al
je 0x48df9e
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 0x48df9e
mov dword [ebp - 0x1104], 0
test edi, edi
je 0x48df13
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.004136c0
lea eax, [edi - 1]
cmp dword [ebp - 0x1104], eax
je 0x48defb
push esi
mov eax, 0x4db0a8
call fcn.00410ca0
mov eax, dword [ebp - 0x1104]
add dword [ebp - 0x1108], 0x1c
inc eax
mov dword [ebp - 0x1104], eax
cmp eax, edi
jb 0x48ded4
mov eax, 0x4cd5ec
lea ecx, [ebp - 0x10dc]
call fcn.00410c10
mov byte [ebp - 4], 4
lea edx, [ebp - 0x10dc]
push edx
lea esi, [ebx + 0xa4]
push esi
lea edx, [ebp - 0x10f8]
call fcn.0048cd10
add esp, 8
mov byte [ebp - 4], 5
mov edi, eax
call fcn.00413650
mov byte [ebp - 4], 4
lea esi, [ebp - 0x10f8]
call fcn.00410c70
mov byte [ebp - 4], 3
lea esi, [ebp - 0x10dc]
call fcn.00410c70
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x48df9e
cmp dword [ebx + 0xb8], 8
lea ecx, [ebx + 0xa4]
jb 0x48df89
mov edx, dword [ecx]
jmp 0x48df8b
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x3b
je 0x48df9e
push ecx
mov eax, 0x4db0b0
call fcn.00410ca0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x1088]
call fcn.00410c70
mov byte [ebp - 4], 0
lea esi, [ebp - 0x1124]
call fcn.00412600
mov esi, dword [ebp - 0x1128]
push esi
call fcn.0049b58d
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 0x48e000
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x48e070
mov eax, dword [ebp - 0x1100]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049aac8
mov esi, eax
add esp, 4
test esi, esi
je 0x48e070
mov eax, dword [ebp - 0x1100]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004a2b10
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 0x48e067
lea ecx, [ebx + 0x120]
push ecx
mov eax, esi
call fcn.004139e0
push esi
call fcn.0049b58d
add esp, 4
mov eax, dword [ebx + 0x94]
xor esi, esi
mov dword [ebp - 0x1104], 0x2800
test eax, eax
je 0x48e095
push eax
call fcn.0049b58d
add esp, 4
mov dword [ebx + 0x94], esi
push 0x2800
call fcn.0049aac8
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x48e4a9
push 0x2800
push 0
push eax
call fcn.004a2b10
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 0x48e234
push esi
mov edx, ebx
call fcn.0048e600
mov ecx, dword [ebp - 0x1100]
inc ecx
push ecx
call fcn.0049aac8
mov edi, eax
add esp, 4
mov dword [ebp - 0x118c], edi
test edi, edi
je 0x48e240
mov edx, dword [ebp - 0x1100]
inc edx
push edx
push 0
push edi
call fcn.004a2b10
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 0x48e229
mov eax, dword [ebp - 0x1108]
add eax, esi
cmp eax, dword [ebp - 0x1104]
jbe 0x48e1c2
mov eax, dword [ebp - 0x1104]
mov edi, dword [ebx + 0x94]
add eax, eax
push eax
mov dword [ebp - 0x1128], eax
call fcn.0049aac8
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x48e24f
mov ecx, dword [ebp - 0x1128]
push ecx
push 0
push eax
mov dword [ebp - 0x1104], ecx
call fcn.004a2b10
mov ecx, dword [ebx + 0x94]
add esp, 0xc
push esi
push edi
push ecx
call fcn.004a0db0
add esp, 0xc
push edi
call fcn.0049b58d
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.004a0db0
add esi, dword [ebp - 0x1108]
add esp, 0xc
cmp byte [ebx + 0x1c0], 0
je 0x48e229
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 0x48e255
push edi
call fcn.0049b58d
add esp, 4
jmp 0x48e240
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp dword [ebp - 0x1100], 0
ja 0x48e0c0
jmp 0x48e25c
mov dword [ebx + 0x94], edi
mov byte [ebp - 0x10f9], 0
push esi
mov edx, ebx
call fcn.0048e600
lea eax, [ebx + 0x78]
mov dword [ebx + 0x98], esi
xor edi, edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x1108], 1
jb 0x48e281
mov eax, dword [eax]
push 5
push 0x4db0b4
push eax
call fcn.0049cecc
add esp, 0xc
test eax, eax
jne 0x48e2a0
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 0x48e2f7
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 0x48e378
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049aac8
add esp, 4
mov dword [ebp - 0x1104], eax
test eax, eax
je 0x48e378
mov ecx, dword [ebp - 0x1104]
lea eax, [esi + esi]
push eax
push 0
push ecx
call fcn.004a2b10
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 0x48e369
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 0x1104]
call fcn.004139e0
mov ecx, dword [ebp - 0x1104]
push ecx
call fcn.0049b58d
add esp, 4
mov eax, dword [ebp - 0x105c]
push 0x4d7f2c
mov edi, 3
lea ecx, [ebp - 0x106c]
mov byte [ebp - 0x10fa], 1
call fcn.00419f50
test eax, eax
jne 0x48e4c0
mov eax, str._html_
lea ecx, [ebp - 0x10c0]
call fcn.00410c10
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.0048c890
add esp, 4
test al, al
je 0x48e46e
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 0x48e46e
lea ecx, [ebp - 0x10c0]
push ecx
mov eax, str.__html_
call fcn.004139e0
lea edx, [ebp - 0x1148]
push edx
lea ecx, [ebx + 0x5c]
lea edx, [ebp - 0x10c0]
call fcn.0048c890
add esp, 4
test al, al
je 0x48e45d
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 0x48e46e
mov dword [ebx + 0x11c], 0xd
mov byte [ebp - 0x10fa], 0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x1148]
call fcn.00412600
mov byte [ebp - 4], 0
lea esi, [ebp - 0x10c0]
call fcn.00410c70
jmp 0x48e49a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp byte [ebp - 0x10fa], 0
je 0x48d7c3
jmp 0x48e4c0
mov byte [ebp - 0x10f9], 0
cmp byte [ebp - 0x10fa], 0
jne 0x48e4c0
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 0x48e4fd
mov edx, dword [ebp - 0x106c]
push edx
call fcn.0049b30a
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 0x48e565
mov dword [ebx + 0x11c], 0x57
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1058], edi
jb 0x48e54a
mov ecx, dword [ebp - 0x106c]
push ecx
call fcn.0049b30a
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.0049b315
mov esp, ebp
pop ebp
ret