Function at 0x484c30
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 0x4c1af8
mov eax, dword fs:[0]
push eax
mov eax, 0x11c0
call fcn.004b6d00
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 0x484c79
mov dword [ebx + 0x11c], 3
jmp 0x485cd3
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.00416830
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x106c]
mov edi, 8
cmp dword [ebp - 0x1058], edi
jae 0x484cbe
lea eax, [ebp - 0x106c]
push 0x4d9880
push eax
call fcn.0049ff79
add esp, 8
test eax, eax
jne 0x484cd9
push 3
mov eax, 0x4d9880
jmp 0x484d0a
mov eax, dword [ebp - 0x106c]
cmp dword [ebp - 0x1058], edi
jae 0x484ced
lea eax, [ebp - 0x106c]
push str.POST
push eax
call fcn.0049ff79
add esp, 8
test eax, eax
jne 0x485c92
push 4
mov eax, str.POST
lea esi, [ebp - 0x106c]
call fcn.00419690
cmp dword [ebx], 0
mov byte [ebp - 0x10f9], 1
jne 0x484d7f
cmp dword [ebx + 0x150], edi
lea eax, [ebx + 0x13c]
jb 0x484d31
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 0x484d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1058], edi
jb 0x484d70
mov ecx, dword [ebp - 0x106c]
push ecx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x105c], 0
jmp 0x485cc0
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.004a4260
add esp, 0xc
xor ecx, ecx
push 0xa26
push ecx
lea edx, [ebp - 0x104e]
push edx
mov word [ebp - 0x1050], cx
call fcn.004a4260
add esp, 0xc
push 0x3c
lea eax, [ebp - 0x11cc]
push 0
push eax
call fcn.004a4260
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 0x484e40
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 0x485c4f
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov edi, 2
mov cx, word [eax]
add eax, edi
test cx, cx
jne 0x484e67
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x24]
lea eax, [ebp - 0x420]
call fcn.00419690
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 0x485c4a
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 0x484ed4
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 0x485c43
cmp byte [ebx + 4], 0
jne 0x484f22
cmp dword [ebp - 0x11c0], edi
jne 0x484f22
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 0x485c20
mov ecx, dword [ebx + 0xf4]
test ecx, ecx
je 0x484f8c
cmp dword [ebx + 0xf8], 8
lea eax, [ebx + 0xe4]
jb 0x484f66
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 0x484f92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
jmp 0x484f92
mov edi, dword [ebp - 0x110c]
cmp dword [ebx + 0xd0], 0
jbe 0x48500a
mov eax, str.Cookie:
lea ecx, [ebp - 0x10a4]
call fcn.00412cf0
mov byte [ebp - 4], 1
push 0
lea edx, [ebx + 0xc0]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x10a4]
call fcn.00416610
cmp dword [ebp - 0x1090], 8
mov eax, dword [ebp - 0x10a4]
jae 0x484fd7
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 0x484ffb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov byte [ebp - 4], 0
lea esi, [ebp - 0x10a4]
call fcn.00426e80
cmp dword [ebx + 0x110], 0
jbe 0x485115
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.004a4260
lea eax, [ebx + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x485061
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0049fe13
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 0x4850a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x16c]
test ecx, ecx
je 0x485115
cmp dword [ebx + 0x170], 8
lea eax, [ebx + 0x15c]
jb 0x4850c1
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1002
push edi
call esi
test eax, eax
jne 0x4850dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x188]
test ecx, ecx
je 0x485115
cmp dword [ebx + 0x18c], 8
lea eax, [ebx + 0x178]
jb 0x4850f8
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1003
push edi
call esi
test eax, eax
jne 0x485115
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 0x485385
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 0x485bfe
mov ecx, dword [ebp - 0x1134]
cmp ecx, esi
je 0x485269
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 0x4851e8
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 0x485339
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 0x48523e
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call edi
test eax, eax
je 0x48523e
mov byte [ebp - 0x110d], 1
mov eax, dword [ebp - 0x115c]
test eax, eax
je 0x48524f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1158]
test eax, eax
je 0x485345
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x485345
mov esi, dword [ebp - 0x1130]
test esi, esi
je 0x485367
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.004a4260
add esp, 0xc
push esi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0049fe13
mov esi, dword [ebp - 0x112c]
add esp, 0xc
lea edx, [ebp - 0x218]
mov dword [ebp - 0x1150], edx
test esi, esi
je 0x48531d
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x626]
push ecx
mov word [ebp - 0x628], ax
call fcn.004a4260
add esp, 0xc
push esi
lea edx, [ebp - 0x628]
push 0x104
push edx
call fcn.0049fe13
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 0x485345
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov eax, dword [ebp - 0x1134]
test eax, eax
je 0x485356
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1130]
test eax, eax
je 0x485367
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x112c]
test eax, eax
je 0x485378
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x110d], 0
je 0x485c0a
mov eax, dword [ebx + 0xdc]
xor edi, edi
cmp eax, edi
je 0x4853c3
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 0x4853c3
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 0x485bfe
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 0x485405
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x48573b
mov eax, dword [ebp - 0x1100]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049c21e
mov esi, eax
add esp, 4
mov dword [ebp - 0x1128], esi
test esi, esi
je 0x48573b
mov eax, dword [ebp - 0x1100]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004a4260
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 0x485732
lea edi, [ebx + 0x40]
push edi
mov eax, esi
call fcn.00426580
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, 0x4cdc04
lea ecx, [ebp - 0x1088]
call fcn.00412cf0
mov byte [ebp - 4], 3
cmp byte [ebx + 0x158], 0
jne 0x485509
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.charset_A_Za_z0_9___
call fcn.00426580
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.00484000
add esp, 4
test al, al
je 0x485509
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 0x485509
push 0
lea ecx, [ebx + 0x78]
push esi
or eax, 0xffffffff
call fcn.00416830
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Content_Length:__0_9_
call fcn.00426580
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.00484000
add esp, 4
test al, al
je 0x48556f
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 0x48556f
cmp dword [esi + 0x14], 8
jb 0x485560
mov esi, dword [esi]
push esi
call fcn.004a02f2
add esp, 4
mov dword [ebx + 0xa0], eax
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Location:__0_9_
call fcn.00426580
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.00484000
add esp, 4
test al, al
je 0x4855cf
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 0x4855cf
push 0
push esi
lea ecx, [ebx + 0x194]
or eax, 0xffffffff
call fcn.00416830
lea ecx, [ebp - 0x1088]
push ecx
mov eax, str.Set_Cookie:_b.__n
call fcn.00426580
lea edx, [ebp - 0x1124]
push edx
mov ecx, edi
lea edx, [ebp - 0x1088]
call fcn.00484000
add esp, 4
test al, al
je 0x48570e
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 0x48570e
mov dword [ebp - 0x1104], 0
test edi, edi
je 0x485683
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.00416610
lea eax, [edi - 1]
cmp dword [ebp - 0x1104], eax
je 0x48566b
push esi
mov eax, 0x4da9a8
call fcn.00412d50
mov eax, dword [ebp - 0x1104]
add dword [ebp - 0x1108], 0x1c
inc eax
mov dword [ebp - 0x1104], eax
cmp eax, edi
jb 0x485644
mov eax, 0x4ce5c0
lea ecx, [ebp - 0x10dc]
call fcn.00412cf0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x10dc]
push edx
lea esi, [ebx + 0xa4]
push esi
lea edx, [ebp - 0x10f8]
call fcn.00484480
add esp, 8
mov byte [ebp - 4], 5
mov edi, eax
call fcn.004165a0
mov byte [ebp - 4], 4
lea esi, [ebp - 0x10f8]
call fcn.00426e80
mov byte [ebp - 4], 3
lea esi, [ebp - 0x10dc]
call fcn.00426e80
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x48570e
cmp dword [ebx + 0xb8], 8
lea ecx, [ebx + 0xa4]
jb 0x4856f9
mov edx, dword [ecx]
jmp 0x4856fb
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x3b
je 0x48570e
push ecx
mov eax, 0x4da9b0
call fcn.00412d50
mov byte [ebp - 4], 2
lea esi, [ebp - 0x1088]
call fcn.00426e80
mov byte [ebp - 4], 0
lea esi, [ebp - 0x1124]
call fcn.00426790
mov esi, dword [ebp - 0x1128]
push esi
call fcn.0049cdad
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 0x485770
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4857e0
mov eax, dword [ebp - 0x1100]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049c21e
mov esi, eax
add esp, 4
test esi, esi
je 0x4857e0
mov eax, dword [ebp - 0x1100]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004a4260
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 0x4857d7
lea ecx, [ebx + 0x120]
push ecx
mov eax, esi
call fcn.00426580
push esi
call fcn.0049cdad
add esp, 4
mov eax, dword [ebx + 0x94]
xor esi, esi
mov dword [ebp - 0x1104], 0x2800
test eax, eax
je 0x485805
push eax
call fcn.0049cdad
add esp, 4
mov dword [ebx + 0x94], esi
push 0x2800
call fcn.0049c21e
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x485c19
push 0x2800
push 0
push eax
call fcn.004a4260
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 0x4859a4
push esi
mov edx, ebx
call fcn.00485d70
mov ecx, dword [ebp - 0x1100]
inc ecx
push ecx
call fcn.0049c21e
mov edi, eax
add esp, 4
mov dword [ebp - 0x118c], edi
test edi, edi
je 0x4859b0
mov edx, dword [ebp - 0x1100]
inc edx
push edx
push 0
push edi
call fcn.004a4260
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 0x485999
mov eax, dword [ebp - 0x1108]
add eax, esi
cmp eax, dword [ebp - 0x1104]
jbe 0x485932
mov eax, dword [ebp - 0x1104]
mov edi, dword [ebx + 0x94]
add eax, eax
push eax
mov dword [ebp - 0x1128], eax
call fcn.0049c21e
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x4859bf
mov ecx, dword [ebp - 0x1128]
push ecx
push 0
push eax
mov dword [ebp - 0x1104], ecx
call fcn.004a4260
mov ecx, dword [ebx + 0x94]
add esp, 0xc
push esi
push edi
push ecx
call fcn.004a2500
add esp, 0xc
push edi
call fcn.0049cdad
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.004a2500
add esi, dword [ebp - 0x1108]
add esp, 0xc
cmp byte [ebx + 0x1c0], 0
je 0x485999
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 0x4859c5
push edi
call fcn.0049cdad
add esp, 4
jmp 0x4859b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp dword [ebp - 0x1100], 0
ja 0x485830
jmp 0x4859cc
mov dword [ebx + 0x94], edi
mov byte [ebp - 0x10f9], 0
push esi
mov edx, ebx
call fcn.00485d70
lea eax, [ebx + 0x78]
mov dword [ebx + 0x98], esi
xor edi, edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x1108], 1
jb 0x4859f1
mov eax, dword [eax]
push 5
push 0x4da9b4
push eax
call fcn.0049f1e4
add esp, 0xc
test eax, eax
jne 0x485a10
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 0x485a67
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 0x485ae8
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049c21e
add esp, 4
mov dword [ebp - 0x1104], eax
test eax, eax
je 0x485ae8
mov ecx, dword [ebp - 0x1104]
lea eax, [esi + esi]
push eax
push 0
push ecx
call fcn.004a4260
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 0x485ad9
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 0x1104]
call fcn.00426580
mov ecx, dword [ebp - 0x1104]
push ecx
call fcn.0049cdad
add esp, 4
mov eax, dword [ebp - 0x105c]
push 0x4d9880
mov edi, 3
lea ecx, [ebp - 0x106c]
mov byte [ebp - 0x10fa], 1
call fcn.0041f920
test eax, eax
jne 0x485c30
mov eax, str._html_
lea ecx, [ebp - 0x10c0]
call fcn.00412cf0
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.00484000
add esp, 4
test al, al
je 0x485bde
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 0x485bde
lea ecx, [ebp - 0x10c0]
push ecx
mov eax, str.__html_
call fcn.00426580
lea edx, [ebp - 0x1148]
push edx
lea ecx, [ebx + 0x5c]
lea edx, [ebp - 0x10c0]
call fcn.00484000
add esp, 4
test al, al
je 0x485bcd
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 0x485bde
mov dword [ebx + 0x11c], 0xd
mov byte [ebp - 0x10fa], 0
mov byte [ebp - 4], 6
lea esi, [ebp - 0x1148]
call fcn.00426790
mov byte [ebp - 4], 0
lea esi, [ebp - 0x10c0]
call fcn.00426e80
jmp 0x485c0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp byte [ebp - 0x10fa], 0
je 0x484f33
jmp 0x485c30
mov byte [ebp - 0x10f9], 0
cmp byte [ebp - 0x10fa], 0
jne 0x485c30
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 0x485c6d
mov edx, dword [ebp - 0x106c]
push edx
call fcn.0049ca60
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 0x485cd5
mov dword [ebx + 0x11c], 0x57
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1058], edi
jb 0x485cba
mov ecx, dword [ebp - 0x106c]
push ecx
call fcn.0049ca60
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.0049ca6b
mov esp, ebp
pop ebp
ret