Function at 0x4f4c70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x5c4], 0
push ebx
push esi
push edi
lea edx, [ebp - 0x5c4]
push edx
push 0x6548fc
mov dword [ebp - 0x5cc], eax
mov eax, dword [eax + 0x48]
mov ecx, dword [eax]
push 0x65c158
push eax
call dword [ecx + 0xf4]
test eax, eax
js 0x4f4f49
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call fcn.00402394
mov eax, dword [ebp - 0x5c4]
mov ecx, dword [eax]
add esp, 0xc
mov esi, 0x104
push esi
lea edx, [ebp - 0x424]
push edx
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x5d0]
call fcn.004250cb
push 0x62b7c0
lea eax, [ebp - 0x5c0]
call fcn.004250cb
mov ebx, dword [ebp - 0x5d0]
xor eax, eax
mov word [ebp - 0x10], ax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
push 3
push ebx
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.00419d2b
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x4f4d51
push 0x11
push 0x65c39c
jmp 0x4f4de8
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f4d88
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4f4d70
push 0x14
push 0x65c3c0
jmp 0x4f4de8
mov ecx, ebx
call fcn.004f2e94
test eax, eax
jne 0x4f4e53
push 0x1e
push 0x65c3ec
jmp 0x4f4de8
mov eax, dword [ebx - 0xc]
test eax, eax
jle 0x4f4db9
lea ecx, [eax - 1]
test ecx, ecx
js 0x4f4dcc
cmp ecx, eax
jg 0x4f4dcc
cmp word [ebx + ecx*2], 0x5c
je 0x4f4db9
push 1
push 0x62d6d4
lea eax, [ebp - 0x5d0]
call fcn.004496c2
mov ebx, dword [ebp - 0x5d0]
push ebx
call fcn.004f512c
test eax, eax
jne 0x4f4dd6
push 0x1d
push 0x65c42c
jmp 0x4f4de8
push 0x80070057
call fcn.004a3cf3
mov ecx, ebx
call fcn.004f2e94
test eax, eax
jne 0x4f4e53
push 0x31
push 0x65c468
lea eax, [ebp - 0x5c0]
call fcn.0040aa23
lea edi, [ebp - 0x5bc]
call fcn.004ff2e9
push 0x20
push 0x6252b0
push dword [ebp - 0x5c0]
mov esi, edi
call fcn.004ff43c
mov eax, dword [ebp - 0x5cc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
call fcn.004ff3cf
mov eax, dword [ebp - 0x5c0]
add eax, 0xfffffff0
call fcn.0040acc3
lea eax, [ebx - 0x10]
call fcn.0040acc3
mov eax, dword [ebp - 0x5c4]
test eax, eax
je 0x4f4e4c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x4f4f5c
mov eax, dword [ebp - 0x5cc]
mov eax, dword [eax + 0x48]
and dword [ebp - 0x5c8], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x5c8]
push edx
push 0x6548fc
push 0x65c310
push eax
call dword [ecx + 0xf4]
test eax, eax
js 0x4f4f23
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00402394
mov eax, dword [ebp - 0x5c8]
mov ecx, dword [eax]
add esp, 0xc
push esi
lea edx, [ebp - 0x21c]
push edx
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x21c]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4f4ec0
sub eax, ecx
mov ecx, dword [ebx - 0xc]
sar eax, 1
add ecx, eax
cmp ecx, 0x103
jb 0x4f4f23
lea edi, [ebp - 0x5bc]
call fcn.004ff2e9
push 0x20
push 0x6252b0
push 0x65c4cc
mov esi, edi
call fcn.004ff43c
mov eax, dword [ebp - 0x5cc]
call fcn.004f529d
call fcn.004ff3cf
mov eax, dword [ebp - 0x5c8]
test eax, eax
je 0x4f4e26
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4f4e26
mov eax, dword [ebp - 0x5c8]
test eax, eax
je 0x4f4f33
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x5c0]
add eax, 0xfffffff0
call fcn.0040acc3
lea eax, [ebx - 0x10]
call fcn.0040acc3
mov eax, dword [ebp - 0x5c4]
test eax, eax
je 0x4f4f59
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4