Function at 0x403c10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414cee
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x422070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], edx
mov ebx, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], ecx
mov word [ebp - 0x74], cx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
cmp dword [eax + 0x10], 0
je 0x403c89
cmp ecx, eax
je 0x403c97
push 0xffffffffffffffff
push 0
push eax
jmp 0x403c92
push 0xffffffffffffffff
push 0
push 0x423988
call fcn.00401820
lea ecx, [ebp - 0x5c]
call fcn.00401370
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00401270
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x8c]
call fcn.00404050
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x403d00
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x403ce3
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00401c70
xor eax, eax
mov dword [ebp - 0x18], 7
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00401940
mov eax, dword [ebp - 0x78]
cmp eax, 8
jb 0x403d1b
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00401c70
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], 0
cmp eax, 8
jb 0x403d47
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00401c70
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x403d74
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00401c70
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
cmp eax, 0xffffffff
je 0x403d91
test al, 0x10
je 0x403dc7
lea ecx, [ebp - 0x5c]
call fcn.004030e0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp ecx, eax
je 0x403dae
push 0xffffffffffffffff
push 0
push eax
call fcn.00401820
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x403dc7
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00401c70
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
cmp eax, 0xffffffff
je 0x403e17
test al, 0x10
jne 0x403e17
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.00401270
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
cmp ecx, eax
je 0x403dfe
push 0xffffffffffffffff
push 0
push eax
call fcn.00401820
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x403e17
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00401c70
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
jne 0x403e94
lea ecx, [ebp - 0x5c]
call fcn.004034e0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.004038e0
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
cmp ecx, eax
je 0x403e52
push 0xffffffffffffffff
push 0
push eax
call fcn.00401820
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x403e67
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00401c70
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x403e94
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00401c70
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00402f40
or esi, 0xffffffff
cmp dword [edi], 0
je 0x403eff
cmp dword [ebp - 0x60], 8
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x44]
cmovae edx, dword [ebp - 0x74]
call fcn.004025c0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
cmovae eax, dword [ebp - 0x44]
push eax
push 0x104
push 0x423750
call fcn.0040942d
add esp, 0xc
push str.CreateFruityInstance
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403ef7
push dword [ebp - 0x90]
push ebx
call eax
mov esi, eax
lea ecx, [ebp - 0x44]
call fcn.00401530
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x403f14
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00401c70
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], 0
cmp eax, 8
jb 0x403f3d
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00401c70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00404b43
mov esp, ebp
pop ebp
ret