Function at 0x1004db3c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a7d2f
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 0x1004dd79
push ebx
push 0x100c4258
mov esi, 0x100c4218
push esi
push ebx
push eax
call fcn.10094655
add esp, 0x14
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x1004db9d
mov al, 1
jmp 0x1004dd7b
push ebx
push 0x100c4330
push esi
push ebx
push dword [edi + 4]
call fcn.10094655
add esp, 0x14
cmp eax, ebx
je 0x1004dbc0
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 4]
test al, al
je 0x1004db96
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
call fcn.1003ab8e
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.10084c29
cmp dword [esp + 0x1c], ebx
je 0x1004dd43
push ebx
push 0x100c4354
push esi
push ebx
push dword [edi + 4]
call fcn.10094655
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x1004db96
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
call fcn.1003ab8e
mov dword [esp + 0x48], ebx
cmp byte [ebp + 0xc], bl
je 0x1004dcdc
lea esi, [esp + 0x20]
mov eax, edi
call fcn.10046f00
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x4c], 1
call fcn.1003abad
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.1004d805
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10084c29
mov byte [esp + 0x48], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.10084c29
mov ecx, esi
call fcn.1004d840
mov esi, dword [ebp + 0x14]
cmp eax, ebx
jge 0x1004dcb9
push eax
push dword [esp + 0x18]
push 0x1000d7b0
push 7
call fcn.100266c3
mov eax, dword [esp + 0x48]
add esp, 0x10
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [esp + 0x14]
jmp 0x1004dd71
push dword [esp + 0x14]
push 0x1000d898
push 4
call fcn.100266c3
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x44]
add esp, 0xc
add eax, 0xfffffff0
call fcn.10084c29
cmp byte [ebp + 0x10], bl
je 0x1004dd32
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
call fcn.1003ab8e
push dword [ebp + 0x14]
mov byte [esp + 0x4c], 6
call fcn.1004dd95
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.10084c29
cmp dword [esp + 0x18], 0xffffffff
je 0x1004dcb0
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1004dd27
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.10084c29
jmp 0x1004db96
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
call fcn.1003ab8e
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x48], 7
push dword [eax]
push 0x1000d8e0
push 4
call fcn.100266c3
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0xfffffff0
call fcn.10084c29
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