Function at 0x4052f0
Capabilities:
Get file attributes
Read data from internet
Receive data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524490
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x570454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
call fcn.004049a0
mov eax, dword [esi + 8]
lea ebx, [esi + 0x84]
push ebx
lea ecx, [esi + 0x80]
push ecx
lea ecx, [esi + 0x7c]
push ecx
lea edx, [esi + 0x6c]
lea edi, [esi + 8]
push edx
push eax
call fcn.00419513
test eax, eax
jne 0x4053c2
push edi
lea eax, [ebp - 0x2c]
push str.http:__
push eax
call fcn.00404060
add esp, 0xc
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00404260
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405390
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
push ebx
lea eax, [esi + 0x80]
push eax
lea eax, [esi + 0x7c]
push eax
lea eax, [esi + 0x6c]
push eax
push edi
call fcn.00419513
test eax, eax
jne 0x4053c9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
or edi, 0xffffffff
jmp 0x4053ce
or edi, 0xffffffff
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], ebx
je 0x405485
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, ebx
je 0x4053fd
cmp dword [esi + 0x54], ebx
ja 0x4053f6
cmp dword [esi + 0x50], ebx
jbe 0x4053fd
mov ecx, 0x3021
jmp 0x405402
mov ecx, 0x1021
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x8c]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x24]
lea ecx, [esi + 0x8c]
call eax
test eax, eax
jne 0x405448
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x1c]
push 0x83
mov ecx, esi
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x8c]
mov edx, dword [edx + 0x2c]
push ebx
push eax
push ecx
lea ecx, [esi + 0x8c]
call edx
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x8c]
mov edx, dword [esi + 0x50]
mov eax, dword [eax + 0x30]
push ecx
push edx
lea ecx, [esi + 0x8c]
call eax
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test eax, eax
je 0x4053ac
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
test eax, eax
je 0x4053ac
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
test eax, eax
je 0x4053ac
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp + 8], ebx
cmp dword [esi + 0x60], ebx
je 0x4054e0
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
je 0x4053ac
mov dword [ebp - 0x18], 1
cmp dword [esi + 0x64], ebx
je 0x4054fd
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x4053ac
mov dword [ebp - 0x24], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call edx
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx - 0xc]
push ebx
mov eax, ecx
neg eax
push ebx
sbb eax, eax
and eax, edx
push ecx
push eax
mov eax, dword [esi + 0x78]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x4055c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x2f0c
jne 0x4057eb
cmp dword [ebp + 8], ebx
jne 0x4057eb
mov ecx, esi
cmp dword [esi + 0x44], ebx
je 0x4055bf
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x4057eb
mov dword [ebp + 8], 1
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4054fd
call fcn.004052d0
jmp 0x405560
mov edx, dword [esi + 0x78]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
call fcn.00406080
test eax, eax
je 0x405815
mov eax, dword [ebp - 0x20]
cmp eax, 0x197
je 0x4055ed
cmp eax, 0x191
jne 0x40564f
mov dword [ebp - 0x38], ebx
xor ecx, ecx
mov byte [ebp - 4], 4
mov eax, dword [esi + 0x5c]
cmp ecx, ebx
ja 0x405820
jb 0x40560b
cmp eax, edi
ja 0x405820
push eax
call fcn.00501013
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
cmp edi, ebx
je 0x405820
mov dword [ebp - 0x2c], ebx
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x78]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push edi
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x2c], ebx
jne 0x405624
push edi
mov byte [ebp - 4], 3
call fcn.00500cb2
mov eax, dword [ebp - 0x20]
add esp, 4
or edi, 0xffffffff
cmp eax, 0x197
jne 0x4056be
mov ecx, dword [esi + 0x14]
cmp dword [ecx - 0xc], ebx
je 0x40568b
cmp dword [ebp - 0x18], ebx
jne 0x40568b
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
lea ecx, [ebp - 0x14]
test eax, eax
je 0x4057fa
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], edi
call fcn.00401170
jmp 0x4054fd
cmp dword [esi + 0x3c], ebx
jne 0x405703
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
push 0x197
push 0x71
mov ecx, esi
call eax
lea ecx, [ebp - 0x14]
call fcn.00401170
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x191
jne 0x405731
mov ecx, dword [esi + 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x4056fa
cmp dword [ebp - 0x24], ebx
jne 0x4056fa
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [ebp - 0x14]
test eax, eax
je 0x4057fa
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], edi
call fcn.00401170
jmp 0x4054fd
cmp dword [esi + 0x40], ebx
je 0x405838
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 0x34], ebx
call edx
test eax, eax
jne 0x405572
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4057f7
push eax
push 0x84
jmp 0x4057ee
cmp eax, 0xc8
je 0x405743
cmp eax, 0xce
jne 0x405846
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
push 0x6c
mov ecx, esi
call eax
mov ecx, dword [esi + 0x78]
push ecx
lea edi, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
call fcn.00406090
add esp, 4
test eax, eax
je 0x405782
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0x34], 1
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 0x74
mov ecx, esi
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x5c]
push eax
call fcn.00406150
test al, al
jne 0x405850
push 0xe
push 0x6e
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00500cb2
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00401170
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push 0x6f
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
lea ecx, [ebp - 0x14]
call fcn.00401170
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x70
jmp 0x4057ee
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push 0xe
push 0x6e
mov ecx, esi
call eax
push ebx
call fcn.00500cb2
add esp, 4
jmp 0x4057f7
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
push 0x191
push 0x71
jmp 0x4057f3
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x20]
push 0x71
jmp 0x4057f3
xor edi, edi
xor ebx, ebx
mov eax, dword [esi + 0x5c]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [esi + 0x78]
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405961
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405900
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, esi
call edx
test eax, eax
je 0x40596f
fldz
add edi, dword [ebp - 0x1c]
fcomp qword [esi + 0x48]
adc ebx, 0
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ebx
fnstsw ax
test ah, 5
jp 0x405900
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x38]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
jns 0x4058c2
fadd qword [0x551b58]
fild qword [ebp - 0x44]
fdiv st(1)
fcom qword [esi + 0x48]
fnstsw ax
test ah, 0x41
jne 0x4058fc
fmul st(1)
fnstcw word [ebp + 0xa]
fdiv qword [esi + 0x48]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 0x2c], eax
fsubrp st(1)
fldcw word [ebp - 0x2c]
fistp qword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
push eax
fldcw word [ebp + 0xa]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405900
fstp st(1)
fstp st(0)
mov eax, dword [esi + 0x50]
add eax, dword [ebp - 0x28]
mov ecx, dword [esi + 0x54]
adc ecx, dword [ebp - 0x24]
mov edx, dword [esi]
mov edx, dword [edx + 0x44]
push ecx
push eax
mov eax, dword [ebp - 0x34]
push eax
push ebx
push edi
mov ecx, esi
call edx
cmp dword [ebp - 0x1c], 0
je 0x405934
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ecx, esi
call edx
test eax, eax
je 0x405854
mov eax, dword [ebp - 0x18]
push eax
call fcn.00500cb2
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00401170
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x72
jmp 0x4057b8
mov edx, dword [ebp - 0x18]
push edx
jmp 0x4057c5