Function at 0x424010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574258
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5a56d0
lea ecx, [ebp - 0x18]
call fcn.0040cf20
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42406c
push 3
push 0x5a7b34
lea ecx, [ebp - 0x18]
call fcn.0040d560
push str.1905Down
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.0040d090
push 0x5a5018
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0040d090
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040d610
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4240c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4240e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xdb8]
sub eax, 0x10
push eax
call fcn.0040d710
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
push 0x2e
mov byte [ebp - 4], 3
mov edi, dword [esi - 0xc]
push esi
call fcn.00547cbe
add esp, 0xc
test eax, eax
jne 0x42411a
or eax, 0xffffffff
jmp 0x42411e
sub eax, esi
sar eax, 1
sub edi, eax
push edi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040a3c0
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0040d610
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42415d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebx + 0xd60]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0040a4c0
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 5
call fcn.0040a4c0
add esp, 0x18
push eax
lea ecx, [ebx + 0xdc8]
mov byte [ebp - 4], 6
call fcn.0040d610
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4241b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4241dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx + 0xdc8]
test edi, edi
jne 0x4241eb
mov dword [ebp - 0x14], edi
jmp 0x424230
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x42422b
add eax, eax
mov dword [ebp - 0x14], eax
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x42422b
mov ecx, dword [ebp - 0x14]
push 0
push 0
push ecx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x42422d
xor eax, eax
mov dword [ebp - 0x14], eax
mov edi, dword [ebx + 0xdb8]
test edi, edi
je 0x42427d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x42427d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov esi, esp
test esi, esi
je 0x42427a
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, esi
jmp 0x42427f
mov ebx, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebp - 0x14]
push 0
push 1
push edx
push eax
push 0x5a5598
lea ecx, [ebx + 0x4f4]
call dword [sym.imp.HttpLoad.dll_public:_int___thiscall_CHttpLoadThreads::RequestHttp_char___char___char___int__char__]
lea ecx, [ebx + 0x4f4]
call dword [sym.imp.HttpLoad.dll_public:_unsigned_long_int___thiscall_CHttpLoadThreads::GetTotalLength_void_]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
test eax, eax
jns 0x4242b5
fadd dword [0x5b0498]
fld qword [0x5b0490]
sub esp, 8
fmul st(1), st(0)
lea eax, [ebx + 0xdbc]
fmulp st(1)
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fstp qword [esp]
push str._.1fMB
push eax
call fcn.0040cb10
mov ecx, dword [ebx + 0x40]
add esp, 0x10
push 0x64
push 1
push ebx
call dword [sym.imp.DuiLib_u.dll_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetTimer_class_DuiLib::CControlUI___unsigned_int__unsigned_int_]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424310
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424336
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret 4