Function at 0x4d0905
Capabilities:
Check if file exists

Disassembly:
push 0x318
mov eax, 0x5be609
call fcn.00598fca
mov eax, dword [ebp + 8]
mov dword [ebp - 0x304], eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push esi
push eax
mov dword [ebp - 0x2f4], esi
call fcn.00596530
add esp, 0xc
push str.bkmak.dat
mov dword [ebp - 0x2f0], esi
mov dword [ebp - 0x2ec], esi
call fcn.004040a8
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d0c94
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x224]
push 0x9c
push eax
call fcn.00418c22
add esp, 0x10
cmp dword [ebp - 0x2f0], esi
je 0x4d0c94
cmp dword [ebp - 0x2ec], esi
je 0x4d0c5f
lea eax, [ebp - 0x2e4]
push eax
mov dword [ebp - 4], esi
call fcn.00548b11
lea eax, [ebp - 0x254]
push eax
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.0054af1d
mov byte [ebp - 4], 2
push dword [ebp - 0x2f0]
lea ecx, [ebp - 0x324]
call fcn.004050c6
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x324]
push eax
lea ebx, [ebp - 0x2e4]
mov byte [ebp - 4], 3
call fcn.00548b5a
push esi
push 1
lea ecx, [ebp - 0x324]
mov bl, al
mov byte [ebp - 4], 2
call fcn.00407567
test bl, bl
je 0x4d0c43
cmp byte [ebp - 0x24c], 0
je 0x4d0c43
lea eax, [ebp - 0x254]
call fcn.0054bd37
test al, al
je 0x4d0c43
mov edx, str.items
lea ecx, [ebp - 0x254]
call fcn.0054b949
mov edi, eax
cmp byte [edi + 8], 0
mov dword [ebp - 0x308], edi
je 0x4d0c43
call fcn.0054bd25
test al, al
je 0x4d0c43
and dword [ebp - 0x2ec], esi
mov ebx, 0x63696c
mov eax, edi
call fcn.0054b6cc
cmp dword [ebp - 0x2ec], eax
jae 0x4d0c43
push dword [ebp - 0x2ec]
mov ecx, edi
call fcn.0054b71c
mov esi, eax
cmp byte [esi + 8], 0
je 0x4d0b93
call fcn.0054bd37
test al, al
je 0x4d0b93
mov edx, 0x5defbc
mov ecx, esi
call fcn.0054b949
cmp byte [eax + 8], 4
jne 0x4d0b93
mov eax, dword [eax]
test eax, eax
je 0x4d0b93
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.0047f54f
pop ecx
pop ecx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2e8]
cmp dword [eax - 0xc], 0
jne 0x4d0b00
mov byte [ebp - 4], 2
jmp 0x4d0b8b
push 0x6b4568
push 0x5f5f74
lea eax, [ebp - 0x2e8]
push eax
call fcn.0040a466
push 0x6b45e8
push 0x5f5f84
lea eax, [ebp - 0x2e8]
push eax
call fcn.0040a466
push 0x6b4668
push 0x5f5f94
lea eax, [ebp - 0x2e8]
push eax
call fcn.0040a466
mov edx, 0x5e9964
mov ecx, esi
call fcn.0054b949
cmp byte [eax + 8], 4
jne 0x4d0b81
mov eax, dword [eax]
test eax, eax
je 0x4d0b81
push eax
lea eax, [ebp - 0x2f8]
push eax
call fcn.0047f54f
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2f8]
cmp dword [eax - 0xc], 0
jne 0x4d0b9e
add eax, 0xfffffff0
call fcn.00407b6b
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2e8]
add eax, 0xfffffff0
call fcn.00407b6b
inc dword [ebp - 0x2ec]
jmp 0x4d0a7f
mov eax, dword [0x63696c]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov ecx, ebx
lea esi, [ebp - 0x2fc]
mov dword [ebp - 0x300], eax
call fcn.0040c2a6
lea eax, [ebp - 0x2e8]
lea edi, [ebp - 0x300]
mov byte [ebp - 4], 6
call fcn.0040a3cc
lea eax, [ebp - 0x2f8]
mov edi, esi
call fcn.0040a3cc
mov edi, dword [ebp - 0x304]
lea eax, [ebp - 0x300]
push eax
call fcn.004da934
mov eax, dword [ebp - 0x2fc]
add eax, 0xfffffff0
mov dword [ebp - 0x2f4], 1
call fcn.00407b6b
mov eax, dword [ebp - 0x300]
add eax, 0xfffffff0
call fcn.00407b6b
mov eax, dword [ebp - 0x2f8]
add eax, 0xfffffff0
call fcn.00407b6b
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2e8]
add eax, 0xfffffff0
call fcn.00407b6b
mov edi, dword [ebp - 0x308]
jmp 0x4d0b93
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0054b1a0
lea eax, [ebp - 0x2e4]
call fcn.0040b0d5
xor esi, esi
cmp dword [ebp - 0x2f0], esi
je 0x4d0c73
push dword [ebp - 0x2f0]
call fcn.0058f807
pop ecx
cmp dword [ebp - 0x2f4], esi
je 0x4d0c94
lea ecx, [ebp - 0x224]
call fcn.0047611f
mov dword [ebp - 0x2f4], eax
jmp 0x4d0c9f
lea ecx, [ebp - 0x224]
call fcn.0047611f
mov eax, dword [ebp - 0x2f4]
call fcn.00599026
ret 4