Function at 0x489ff0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4daaf0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
add eax, 0x24
push str.____________________Entrance____________________
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], str.Load
call fcn.00471a00
add esp, 0xc
mov esi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
mov dword [esp + 0x40], 0
mov ecx, dword [esi]
push edx
call fcn.00405a00
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48a426
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push esi
mov byte [esp + 0x48], 2
call fcn.0046b120
add esp, 8
xor ebp, ebp
or esi, 0xffffffff
nop
add esi, 1
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0xc]
js 0x48a3e7
cmp esi, eax
jg 0x48a3e7
lea ecx, [edi + esi*2]
push 0x4ec20c
push ecx
call fcn.004a59da
add esp, 8
test eax, eax
je 0x48a3e7
sub eax, edi
sar eax, 1
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x48a3e7
lea edx, [esp + 0x1c]
push edx
sub eax, esi
mov ecx, esi
lea edx, [esp + 0x28]
call fcn.0040b870
mov byte [esp + 0x40], 3
mov edi, dword [esp + 0x24]
cmp dword [edi - 0xc], 0
jl 0x48a2aa
push str._Download_
push edi
call fcn.004a59da
add esp, 8
test eax, eax
je 0x48a1db
sub eax, edi
sar eax, 1
jne 0x48a1db
push 0x60
call fcn.004a5616
add esp, 4
test eax, eax
je 0x48a142
push 1
mov esi, eax
call fcn.00474590
mov ebx, eax
jmp 0x48a144
xor ebx, ebx
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x48a328
mov eax, dword [edi - 0xc]
push eax
push edi
push ebx
call fcn.0040e720
push 1
push 0x4ec20c
push ebx
call fcn.0040e720
mov esi, dword [esp + 0x48]
mov ebp, dword [esi + 0xc]
add esi, 8
call fcn.004682a0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x48a183
mov dword [eax + 8], ebx
mov dword [esi + 0x10], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ecx, dword [esi + 4]
inc dword [esi + 8]
test ecx, ecx
je 0x48a19d
mov dword [ecx], eax
jmp 0x48a19f
mov dword [esi], eax
add edi, 0xfffffff0
mov dword [esi + 4], eax
mov byte [esp + 0x40], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48a1c3
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ebp, dword [esp + 0x18]
cmp dword [esp + 0x28], 0
jl 0x48a3e3
mov esi, dword [esp + 0x28]
jmp 0x48a0a0
cmp dword [edi - 0xc], 0
jl 0x48a2aa
push str._Convert_
push edi
call fcn.004a59da
add esp, 8
test eax, eax
je 0x48a2aa
sub eax, edi
sar eax, 1
jne 0x48a2aa
push 0x60
call fcn.004a5616
add esp, 4
test eax, eax
je 0x48a220
push 0
mov esi, eax
call fcn.00474590
mov ebx, eax
jmp 0x48a222
xor ebx, ebx
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x48a3b9
mov eax, dword [edi - 0xc]
push eax
push edi
push ebx
call fcn.0040e720
push 1
push 0x4ec20c
push ebx
call fcn.0040e720
mov esi, dword [esp + 0x48]
mov ebp, dword [esi + 0xc]
add esi, 8
call fcn.004682a0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x48a261
mov dword [eax + 8], ebx
mov dword [esi + 0x10], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ecx, dword [esi + 4]
inc dword [esi + 8]
test ecx, ecx
je 0x48a27b
mov dword [ecx], eax
jmp 0x48a27d
mov dword [esi], eax
add edi, 0xfffffff0
mov dword [esi + 4], eax
mov byte [esp + 0x40], 2
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a1c3
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x48a1c3
test ebp, ebp
je 0x48a2fe
mov esi, dword [esp + 0x48]
mov ecx, ebp
lea ebx, [esp + 0x24]
mov edx, esi
call fcn.0048a490
test al, al
jne 0x48a2fe
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
test eax, eax
je 0x48a2db
lea ecx, [ecx]
cmp dword [eax + 8], ebp
je 0x48a2dd
mov eax, dword [eax]
test eax, eax
jne 0x48a2d0
xor eax, eax
call fcn.0048c540
mov eax, ebp
call fcn.00474670
push ebp
call fcn.004a529a
mov dword [esp + 0x1c], 0
mov ebp, dword [esp + 0x1c]
add esp, 4
add edi, 0xfffffff0
mov byte [esp + 0x40], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48a1c7
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x48a1c7
add edi, 0xfffffff0
mov byte [esp + 0x40], 2
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a349
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a36e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a393
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [esp + 0x38]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
xor al, al
jmp 0x48a46c
add edi, 0xfffffff0
mov byte [esp + 0x40], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48a349
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
jmp 0x48a349
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x2c]
push ecx
push str.Successfully_read_the_strFileName_s
lea edx, [esp + 0x38]
push edx
push eax
call fcn.004719c0
lea eax, [edi - 0x10]
add esp, 0x10
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a426
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a44b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [esp + 0x38]
push ecx
push edx
call fcn.00471a00
mov al, 1
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8