Function at 0x4f7eed
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x22c]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x444], edi
mov esi, edx
call fcn.00402394
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x22c]
add esp, 0xc
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4f7f30
push dword [esi]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f8177
mov eax, dword [0x6d0fd0]
mov edi, 0x6d0fd0
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x440], eax
mov eax, dword [0x6d0fd0]
mov ecx, edi
call dword [eax + 0xc]
push dword [esi]
add eax, 0x10
mov dword [ebp - 0x43c], eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, eax
test ebx, ebx
je 0x4f7fdf
mov ecx, ebx
sub ecx, dword [esi]
lea eax, [ebp - 0x438]
push eax
sar ecx, 1
mov eax, esi
call fcn.004fb98d
lea edi, [ebp - 0x440]
call fcn.004435b7
mov eax, dword [ebp - 0x438]
add eax, 0xfffffff0
call fcn.0040ace0
mov eax, ebx
call fcn.0042444f
push eax
push ebx
lea eax, [ebp - 0x43c]
call fcn.0040aa40
jmp 0x4f7fec
mov eax, esi
lea edi, [ebp - 0x440]
call fcn.004435b7
push 0x670088
xor ecx, ecx
call fcn.004ef532
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f8093
add ebx, 2
push 0x6673c0
mov ecx, ebx
call fcn.004ef532
mov edx, eax
cmp edx, 0xffffffff
je 0x4f8093
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x438]
mov ecx, edx
push eax
sub ecx, ebx
mov eax, esi
call fcn.004da81e
xor ecx, ecx
push ecx
push ecx
push 0x20
lea edx, [ebp - 0x24]
push edx
push 0xffffffffffffffff
push dword [eax]
push ecx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x438]
add eax, 0xfffffff0
call fcn.0040ace0
lea eax, [ebp - 0x24]
push eax
call fcn.005f3567
pop ecx
test eax, eax
jle 0x4f8093
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebx - 2]
mov eax, esi
call fcn.004fb98d
lea edi, [ebp - 0x440]
call fcn.004435b7
mov eax, dword [ebp - 0x438]
add eax, 0xfffffff0
call fcn.0040ace0
mov edi, 0x208
push edi
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.00402394
mov ebx, dword [ebp - 0x440]
add esp, 0xc
and dword [ebp - 0x438], 0
cmp dword [ebp - 0x438], 0
push dword [ebp - 0x43c]
lea eax, [ebp - 0x434]
jne 0x4f80dd
push ebx
push str._s_s
push eax
call fcn.004bb1dd
add esp, 0x10
jmp 0x4f80f2
push dword [ebp - 0x438]
push ebx
push str._s___d__s
push eax
call fcn.004bb1dd
add esp, 0x14
push edi
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00402394
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea edx, [ebp - 0x22c]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4f8111
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f8197
inc dword [ebp - 0x438]
cmp dword [ebp - 0x438], 0x3e7
jle 0x4f80b7
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
call fcn.0040ace0
lea eax, [ebx - 0x10]
call fcn.0040ace0
mov edi, dword [ebp - 0x444]
mov eax, dword [esi]
sub eax, 0x10
call fcn.0040ae97
add eax, 0x10
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
lea eax, [ebp - 0x434]
push eax
mov eax, dword [ebp - 0x444]
call fcn.004243de
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
call fcn.0040ace0
lea eax, [ebx - 0x10]
call fcn.0040ace0
mov eax, dword [ebp - 0x444]
jmp 0x4f8188