Function at 0x431b00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474d6e
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0x14]
movq qword [esi], xmm0
push 0x18
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x148], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0046c08a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [ebp - 4], 0
mov edi, 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x134], edi
mov esi, dword [eax]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x432504
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x158], eax
mov eax, dword [esi + 0x14]
push 0x68
mov dword [ebp - 0x140], eax
call fcn.0046c08a
add esp, 4
mov dword [ebp - 0x144], eax
mov dword [ebp - 4], 2
mov dword [eax], vtable.MObject.0
mov dword [eax + 4], 1
mov byte [ebp - 4], 3
lea ecx, [eax + 0x38]
mov dword [eax], vtable.LCMaterial.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 4
lea edx, [eax + 0x50]
mov dword [ebp - 0x14c], edx
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x144]
movups xmm0, xmmword [eax + 8]
movups xmmword [edx + 8], xmm0
movups xmm0, xmmword [eax + 0x18]
movups xmmword [edx + 0x18], xmm0
movups xmm0, xmmword [eax + 0x28]
add eax, 0x38
movups xmmword [edx + 0x28], xmm0
mov edx, dword [ebp - 0x14c]
cmp ecx, eax
je 0x431c6f
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x431c62
mov eax, dword [eax]
push edx
push eax
call fcn.00405f10
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x140]
add eax, 0x50
cmp edx, eax
je 0x431c90
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x431c87
mov eax, dword [eax]
push ecx
push eax
mov ecx, edx
call fcn.00405f10
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x144]
cmp dword [eax + 0x48], 0
je 0x43208b
lea edx, [eax + 0x38]
lea ecx, [ebp - 0x118]
call fcn.00404ba0
mov dword [ebp - 4], 6
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x28]
call fcn.00411460
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xe8]
mov edx, dword [ebp - 0x148]
call fcn.004117f0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb8]
mov edx, dword [ebp - 0x148]
call fcn.00411640
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x88]
mov edx, dword [ebp - 0x150]
call fcn.004117f0
mov byte [ebp - 4], 0xb
mov eax, SysReAllocString
mov edx, dword [ebp - 0xd8]
sub eax, edx
cmp eax, dword [ebp - 0xa8]
jb 0x432527
cmp dword [ebp - 0xd4], 8
lea ecx, [ebp - 0xe8]
push dword [ebp - 0xa8]
cmovae ecx, dword [ebp - 0xe8]
lea eax, [ebp - 0xb8]
cmp dword [ebp - 0xa4], 8
cmovae eax, dword [ebp - 0xb8]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x1b0]
call fcn.00408350
or edi, 0x20
lea ecx, [ebp - 0x58]
push 0x480c40
mov edx, eax
mov dword [ebp - 0x134], edi
call fcn.004243b0
add esp, 4
mov byte [ebp - 4], 0xc
and edi, 0xffffffdf
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1b0]
call fcn.00404570
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x431db8
test al, 0x10
jne 0x431dcc
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 0xe
mov eax, SysReAllocString
mov edx, dword [ebp - 0x78]
sub eax, edx
cmp eax, dword [ebp - 0x18]
jb 0x432527
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x1c8]
call fcn.00408350
or edi, 0x80
mov ecx, eax
mov dword [ebp - 0x134], edi
call fcn.00411400
and edi, 0xffffff7f
mov byte [ebp - 0x135], al
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1c8]
call fcn.00404570
mov al, byte [ebp - 0x135]
test al, al
je 0x431f6b
mov byte [ebp - 4], 0xf
mov eax, SysReAllocString
mov edx, dword [ebp - 0x48]
sub eax, edx
cmp eax, dword [ebp - 0x18]
jb 0x432527
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x1f8]
call fcn.00408350
or edi, 0x100
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0x10
mov eax, SysReAllocString
mov edx, dword [ebp - 0x78]
sub eax, edx
cmp eax, dword [ebp - 0x18]
jb 0x432527
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x1e0]
call fcn.00408350
mov edx, dword [ebp - 0x140]
or edi, 0x200
mov ecx, eax
mov dword [ebp - 0x134], edi
call fcn.00411900
and edi, 0xfffffdff
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1e0]
call fcn.00404570
and edi, 0xfffffeff
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1f8]
call fcn.00404570
mov al, byte [ebp - 0x135]
test al, al
je 0x431f6b
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x210]
call fcn.00404a10
mov byte [ebp - 4], 0x11
or edi, 2
jmp 0x431fbc
push 0
mov dword [ebp - 0x180], 0
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x17c], 0
push 0x47f521
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0xf
mov byte [ebp - 0x190], 0
call fcn.00405f10
lea eax, [ebp - 0x190]
mov dword [ebp - 4], 0x12
or edi, 4
mov dword [ebp - 0x134], edi
mov ecx, dword [ebp - 0x144]
add ecx, 0x38
cmp ecx, eax
je 0x431fe1
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x431fda
mov eax, dword [eax]
push edx
push eax
call fcn.00405f10
mov dword [ebp - 4], 0x11
mov eax, dword [ebp - 0x134]
test al, 4
je 0x43200c
and eax, 0xfffffffb
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x134], eax
call fcn.00405e80
mov eax, dword [ebp - 0x134]
mov dword [ebp - 4], 0xd
test al, 2
je 0x43202b
and eax, 0xfffffffd
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x134], eax
call fcn.00405e80
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x58]
call fcn.00404570
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x88]
call fcn.00404570
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb8]
call fcn.00404570
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xe8]
call fcn.00404570
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00404570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.00404570
mov edi, dword [ebp - 0x134]
mov eax, dword [ebp - 0x144]
cmp dword [eax + 0x60], 0
je 0x43248e
mov edx, dword [ebp - 0x14c]
lea ecx, [ebp - 0x130]
call fcn.00404ba0
mov dword [ebp - 4], 0x13
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x40]
call fcn.00411460
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x100]
mov edx, dword [ebp - 0x148]
call fcn.004117f0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd0]
mov edx, dword [ebp - 0x148]
call fcn.00411640
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xa0]
mov edx, dword [ebp - 0x150]
call fcn.004117f0
mov byte [ebp - 4], 0x18
mov eax, SysReAllocString
mov edx, dword [ebp - 0xf0]
sub eax, edx
cmp eax, dword [ebp - 0xc0]
jb 0x432527
cmp dword [ebp - 0xec], 8
lea ecx, [ebp - 0x100]
push dword [ebp - 0xc0]
cmovae ecx, dword [ebp - 0x100]
lea eax, [ebp - 0xd0]
cmp dword [ebp - 0xbc], 8
cmovae eax, dword [ebp - 0xd0]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x228]
call fcn.00408350
or edi, 0x400
lea ecx, [ebp - 0x70]
push 0x480c40
mov edx, eax
mov dword [ebp - 0x134], edi
call fcn.004243b0
add esp, 4
mov byte [ebp - 4], 0x19
and edi, 0xfffffbff
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x228]
call fcn.00404570
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4321b2
test al, 0x10
jne 0x4321c6
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 0x1b
mov eax, SysReAllocString
mov edx, dword [ebp - 0x90]
sub eax, edx
cmp eax, dword [ebp - 0x30]
jb 0x432527
cmp dword [ebp - 0x8c], 8
lea ecx, [ebp - 0xa0]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x240]
call fcn.00408350
or edi, 0x1000
mov ecx, eax
mov dword [ebp - 0x134], edi
call fcn.00411400
and edi, 0xffffefff
mov byte [ebp - 0x135], al
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x240]
call fcn.00404570
mov al, byte [ebp - 0x135]
test al, al
je 0x432371
mov byte [ebp - 4], 0x1c
mov eax, SysReAllocString
mov edx, dword [ebp - 0x60]
sub eax, edx
cmp eax, dword [ebp - 0x30]
jb 0x432527
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x270]
call fcn.00408350
or edi, 0x2000
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0x1d
mov eax, SysReAllocString
mov edx, dword [ebp - 0x90]
sub eax, edx
cmp eax, dword [ebp - 0x30]
jb 0x432527
cmp dword [ebp - 0x8c], 8
lea ecx, [ebp - 0xa0]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x258]
call fcn.00408350
mov edx, dword [ebp - 0x140]
or edi, 0x4000
mov ecx, eax
mov dword [ebp - 0x134], edi
call fcn.00411900
and edi, 0xffffbfff
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x258]
call fcn.00404570
and edi, 0xffffdfff
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x270]
call fcn.00404570
mov al, byte [ebp - 0x135]
test al, al
je 0x432371
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x288]
call fcn.00404a10
mov byte [ebp - 4], 0x1e
or edi, 8
jmp 0x4323c2
push 0
mov dword [ebp - 0x168], 0
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x164], 0
push 0x47f521
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0xf
mov byte [ebp - 0x178], 0
call fcn.00405f10
lea eax, [ebp - 0x178]
mov dword [ebp - 4], 0x1f
or edi, 0x10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x134], edi
cmp ecx, eax
je 0x4323e4
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4323dd
mov eax, dword [eax]
push edx
push eax
call fcn.00405f10
mov dword [ebp - 4], 0x1e
mov eax, dword [ebp - 0x134]
test al, 0x10
je 0x43240f
and eax, 0xffffffef
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x134], eax
call fcn.00405e80
mov eax, dword [ebp - 0x134]
mov dword [ebp - 4], 0x1a
test al, 8
je 0x43242e
and eax, 0xfffffff7
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x134], eax
call fcn.00405e80
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x70]
call fcn.00404570
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xa0]
call fcn.00404570
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd0]
call fcn.00404570
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x100]
call fcn.00404570
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x40]
call fcn.00404570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.00404570
mov edi, dword [ebp - 0x134]
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x198]
mov dword [ebp - 0x160], ecx
mov ecx, dword [ebp - 0x154]
push eax
call fcn.00429e20
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4324e4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4324e0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x4324e0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4324d0
mov esi, eax
jmp 0x4324fa
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4324fa
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4324f0
cmp byte [esi + 0xd], 0
je 0x431bb0
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c079
mov esp, ebp
pop ebp
ret 0x10
call fcn.004044c0
int3