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

Disassembly:
push 0xffffffffffffffff
push 0x4779bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0046f891
push str.Materials.cfg
push 0x5c
push str.CONFIG
push 0x49b7b8
lea eax, [esp + 0x48]
push str._s_s_c_s
xor ebx, ebx
push eax
mov dword [esp + 0x258], ebx
call fcn.0045d67e
mov ecx, dword [esp + 0x260]
mov edi, dword [esp + 0x264]
add esp, 0x18
lea edx, [esp + 0x38]
mov dword [ecx], ebx
push edx
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ea06
lea eax, [esp + 0x10]
push eax
call fcn.0042e470
mov ecx, dword [esp + 0x14]
mov edx, ecx
imul edx, edx, 0x168
mov esi, eax
mov eax, dword [edx + esi - 0x164]
inc eax
push eax
push ecx
push esi
mov dword [edi], eax
call fcn.00427280
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0042e420
add esp, 0x18
mov dword [esp + 0x10], ebx
push ebx
push 2
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x20]
call fcn.0046fae2
lea ecx, [esp + 0x14]
call fcn.0046f783
mov ebp, eax
cmp ebp, 0x174
lea ecx, [esp + 0x14]
jl 0x42eac8
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
call dword [edx + 0x28]
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0046f59e
push 4
push edi
lea ecx, [esp + 0x1c]
call fcn.0046f59e
mov eax, dword [esp + 0x10]
mov esi, eax
imul esi, esi, 0x16c
add esi, 8
cmp ebp, esi
jl 0x42eac4
cmp eax, 1
jl 0x42eac4
lea ecx, [eax*4]
push ecx
call fcn.0045e1f2
mov edx, dword [esp + 0x14]
mov edi, eax
add esp, 4
lea eax, [edx*4]
push eax
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edi
call fcn.0046f59e
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor edx, edx
cmp eax, ebx
jle 0x42eab0
add ecx, dword [edi + edx*4]
inc edx
cmp edx, eax
jl 0x42eaa8
lea edx, [ecx + esi]
cmp ebp, edx
je 0x42eafc
cmp edi, ebx
je 0x42eac4
push edi
call fcn.0045df2d
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0046f82f
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call fcn.0046f8d0
xor eax, eax
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret
imul eax, eax, 0x168
add eax, ecx
mov esi, eax
push esi
call fcn.0045e1f2
add esp, 4
mov edi, eax
push esi
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], edi
call fcn.0046f59e
lea ecx, [esp + 0x14]
call fcn.0046f82f
mov eax, dword [esp + 0x10]
imul eax, eax, 0x168
push eax
call fcn.0045e1f2
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
xor ecx, ecx
cmp edx, ebx
mov dword [esp + 0x30], esi
jle 0x42ebb1
lea eax, [esi + 0x60]
nop
mov dword [eax - 4], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x10], ebx
mov dword [eax - 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x5c], ebx
mov dword [eax + 0x60], ebx
mov dword [eax + 0x64], ebx
mov dword [eax + 0x68], ebx
mov dword [eax + 0x70], ebx
mov dword [eax + 0x58], ebx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0xbc], ebx
mov dword [eax + 0xc0], ebx
mov dword [eax + 0xc4], ebx
mov dword [eax + 0xc8], ebx
mov dword [eax + 0xd0], ebx
mov dword [eax + 0xb8], ebx
mov dword [eax + 0xcc], ebx
mov edx, dword [esp + 0x10]
inc ecx
add eax, 0x168
cmp ecx, edx
jl 0x42eb50
xor eax, eax
cmp edx, ebx
mov dword [esp + 0x2c], eax
jle 0x42eec9
add esi, 0x60
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + eax*4]
cmp dword [edi], eax
mov dword [esp + 0x34], eax
jne 0x42ef17
mov ecx, dword [edi + 0x58]
mov eax, ecx
shl eax, 4
cmp ecx, 1
jle 0x42ebe6
lea eax, [eax + eax - 0x10]
mov ecx, dword [edi + 0xb8]
mov ebp, dword [edi + 0x6c]
add ebp, ecx
shl ebp, 4
add eax, ebp
cmp ecx, 1
jle 0x42ec02
shl ecx, 4
lea eax, [eax + ecx - 0x10]
mov ecx, dword [edi + 0x118]
mov ebp, dword [edi + 0xcc]
add ebp, ecx
shl ebp, 4
add eax, ebp
cmp ecx, 1
jle 0x42ec21
shl ecx, 4
lea eax, [eax + ecx - 0x10]
mov ecx, dword [edi + 0x12c]
shl ecx, 4
add ecx, eax
cmp ecx, dword [esp + 0x34]
jne 0x42ef13
push 0x168
lea ecx, [esi - 0x60]
push edi
push ecx
call fcn.0045dbf0
mov eax, dword [esi - 8]
add esp, 0xc
add edi, 0x168
cmp eax, ebx
mov dword [esi - 4], ebx
mov dword [esi], ebx
jle 0x42ec90
lea ebp, [eax*8]
push ebp
call fcn.0045e1f2
push ebp
mov dword [esi - 4], eax
call fcn.0045e1f2
mov edx, dword [esi - 4]
push ebp
push edi
push edx
mov dword [esi], eax
call fcn.0045dbf0
mov eax, dword [esi]
push ebp
add edi, ebp
push edi
push eax
call fcn.0045dbf0
add esp, 0x20
add edi, ebp
jmp 0x42ec93
mov dword [esi - 8], ebx
mov eax, dword [esi - 8]
cmp eax, 1
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jle 0x42ecd7
lea ebp, [eax*8 - 8]
push ebp
call fcn.0045e1f2
push ebp
mov dword [esi + 4], eax
call fcn.0045e1f2
mov ecx, dword [esi + 4]
push ebp
push edi
push ecx
mov dword [esi + 8], eax
call fcn.0045dbf0
mov edx, dword [esi + 8]
push ebp
add edi, ebp
push edi
push edx
call fcn.0045dbf0
add esp, 0x20
add edi, ebp
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jle 0x42ecfe
shl eax, 4
mov ebp, eax
push ebp
call fcn.0045e1f2
push ebp
push edi
push eax
mov dword [esi + 0x10], eax
call fcn.0045dbf0
add esp, 0x10
add edi, ebp
jmp 0x42ed01
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x58]
cmp eax, ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
jle 0x42ed46
lea ebp, [eax*8]
push ebp
call fcn.0045e1f2
push ebp
mov dword [esi + 0x5c], eax
call fcn.0045e1f2
push ebp
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x5c]
push edi
push eax
call fcn.0045dbf0
mov ecx, dword [esi + 0x60]
push ebp
add edi, ebp
push edi
push ecx
call fcn.0045dbf0
add esp, 0x20
add edi, ebp
jmp 0x42ed49
mov dword [esi + 0x58], ebx
mov eax, dword [esi + 0x58]
cmp eax, 1
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
jle 0x42ed8d
lea ebp, [eax*8 - 8]
push ebp
call fcn.0045e1f2
push ebp
mov dword [esi + 0x64], eax
call fcn.0045e1f2
mov edx, dword [esi + 0x64]
push ebp
push edi
push edx
mov dword [esi + 0x68], eax
call fcn.0045dbf0
mov eax, dword [esi + 0x68]
push ebp
add edi, ebp
push edi
push eax
call fcn.0045dbf0
add esp, 0x20
add edi, ebp
mov eax, dword [esi + 0x6c]
cmp eax, ebx
mov dword [esi + 0x70], ebx
jle 0x42edb4
shl eax, 4
mov ebp, eax
push ebp
call fcn.0045e1f2
push ebp
push edi
push eax
mov dword [esi + 0x70], eax
call fcn.0045dbf0
add esp, 0x10
add edi, ebp
jmp 0x42edb7
mov dword [esi + 0x6c], ebx
mov eax, dword [esi + 0xb8]
cmp eax, ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
jle 0x42ee11
lea ebp, [eax*8]
push ebp
call fcn.0045e1f2
push ebp
mov dword [esi + 0xbc], eax
call fcn.0045e1f2
mov ecx, dword [esi + 0xbc]
push ebp
push edi
push ecx
mov dword [esi + 0xc0], eax
call fcn.0045dbf0
mov edx, dword [esi + 0xc0]
push ebp
add edi, ebp
push edi
push edx
call fcn.0045dbf0
add esp, 0x20
add edi, ebp
jmp 0x42ee17
mov dword [esi + 0xb8], ebx
mov eax, dword [esi + 0xb8]
cmp eax, 1
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
jle 0x42ee70
lea ebp, [eax*8 - 8]
push ebp
call fcn.0045e1f2
push ebp
mov dword [esi + 0xc4], eax
call fcn.0045e1f2
push ebp
mov dword [esi + 0xc8], eax
mov eax, dword [esi + 0xc4]
push edi
push eax
call fcn.0045dbf0
mov ecx, dword [esi + 0xc8]
push ebp
add edi, ebp
push edi
push ecx
call fcn.0045dbf0
add esp, 0x20
add edi, ebp
mov eax, dword [esi + 0xcc]
cmp eax, ebx
mov dword [esi + 0xd0], ebx
jle 0x42eea0
shl eax, 4
mov ebp, eax
push ebp
call fcn.0045e1f2
push ebp
push edi
push eax
mov dword [esi + 0xd0], eax
call fcn.0045dbf0
add esp, 0x10
add edi, ebp
jmp 0x42eea6
mov dword [esi + 0xcc], ebx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
inc eax
add esi, 0x168
cmp eax, edx
mov dword [esp + 0x2c], eax
jl 0x42ebc2
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x42eede
push eax
call fcn.0045df2d
mov edx, dword [esp + 0x14]
add esp, 4
cmp edi, ebx
je 0x42eeef
push edi
call fcn.0045df2d
mov edx, dword [esp + 0x14]
add esp, 4
mov eax, dword [esp + 0x248]
lea ecx, [esp + 0x14]
mov dword [eax], edx
mov dword [esp + 0x240], 0xffffffff
call fcn.0046f8d0
mov eax, esi
jmp 0x42eae3
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x42ef28
push ecx
call fcn.0045df2d
mov edx, dword [esp + 0x14]
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x42ef3d
push eax
call fcn.0045df2d
mov edx, dword [esp + 0x14]
add esp, 4
mov ebp, dword [esp + 0x30]
cmp ebp, ebx
je 0x42eacd
cmp edx, 1
jl 0x42ef68
cmp edx, ebx
jle 0x42ef68
mov esi, ebp
mov edi, edx
push esi
call fcn.00426f40
add esp, 4
add esi, 0x168
dec edi
jne 0x42ef56
push ebp
call fcn.0045df2d
add esp, 4
jmp 0x42eacd