Function at 0x1004dabe
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a7cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x1004dcfb
push ebx
push 0x100c4258
mov esi, 0x100c4218
push esi
push ebx
push eax
call fcn.10094605
add esp, 0x14
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x1004db1f
mov al, 1
jmp 0x1004dcfd
push ebx
push 0x100c4330
push esi
push ebx
push dword [edi + 4]
call fcn.10094605
add esp, 0x14
cmp eax, ebx
je 0x1004db42
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 4]
test al, al
je 0x1004db18
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
call fcn.1003abec
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084b37
cmp dword [esp + 0x1c], ebx
je 0x1004dcc5
push ebx
push 0x100c4354
push esi
push ebx
push dword [edi + 4]
call fcn.10094605
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x1004db18
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
call fcn.1003abec
mov dword [esp + 0x48], ebx
cmp byte [ebp + 0xc], bl
je 0x1004dc5e
lea esi, [esp + 0x20]
mov eax, edi
call fcn.1003a764
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x4c], 1
call fcn.1003ac0b
push dword [ebp + 0x14]
mov byte [esp + 0x4c], 2
mov ecx, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
push edi
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, esi
lea esi, [esp + 0x38]
call fcn.1004d787
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10084b37
mov byte [esp + 0x48], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.10084b37
mov ecx, esi
call fcn.1004d7c2
mov esi, dword [ebp + 0x14]
cmp eax, ebx
jge 0x1004dc3b
push eax
push dword [esp + 0x18]
push 0x1000d780
push 7
call fcn.10026695
mov eax, dword [esp + 0x48]
add esp, 0x10
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esp + 0x14]
jmp 0x1004dcf3
push dword [esp + 0x14]
push 0x1000d868
push 4
call fcn.10026695
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x44]
add esp, 0xc
add eax, 0xfffffff0
call fcn.10084b37
cmp byte [ebp + 0x10], bl
je 0x1004dcb4
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
call fcn.1003abec
push dword [ebp + 0x14]
mov byte [esp + 0x4c], 6
call fcn.1004dd17
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.10084b37
cmp dword [esp + 0x18], 0xffffffff
je 0x1004dc32
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1004dca9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084b37
jmp 0x1004db18
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
call fcn.1003abec
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x48], 7
push dword [eax]
push 0x1000d8b0
push 4
call fcn.10026695
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.10084b37
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10