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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x428044]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov dword [ebp - 0x430], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404fb0
add esp, 8
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
je 0x40fc7a
mov eax, dword [ebp - 0x430]
jmp 0x40fef2
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.00417ec0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00417ec0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call fcn.00401000
add esp, 4
push 0x4226e8
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.0041123d
add esp, 0xc
mov byte [ebp - 0x42c], 0
xor edx, edx
mov dword [ebp - 0x42b], edx
mov dword [ebp - 0x427], edx
mov dword [ebp - 0x423], edx
mov dword [ebp - 0x41f], edx
mov word [ebp - 0x41b], dx
mov byte [ebp - 0x419], dl
mov dword [ebp - 4], 0
mov dword [ebp - 0x434], 0
jmp 0x40fd30
mov eax, dword [ebp - 0x434]
add eax, 1
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 5
jge 0x40fdfd
mov ecx, dword [ebp - 0x434]
imul ecx, ecx, 0x118
movzx edx, word [ecx + 0x42a648]
test edx, edx
jne 0x40fd56
jmp 0x40fd21
lea eax, [ebp - 0x418]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004107b6
add esp, 0xc
mov edx, dword [ebp - 0x434]
imul edx, edx, 0x118
add edx, 0x42a648
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0041123d
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x42c]
push edx
call fcn.00404220
add esp, 8
test eax, eax
je 0x40fdef
mov ecx, 5
mov edi, dword [ebp - 0x434]
imul edi, edi, 0x118
add edi, 0x42a74c
lea esi, [ebp - 0x42c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40fdef
mov ecx, dword [ebp - 0x434]
imul ecx, ecx, 0x118
xor edx, edx
mov word [ecx + 0x42a648], dx
jmp 0x40fd21
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x40fd21
mov dword [ebp - 0x438], 0
jmp 0x40fe18
mov ecx, dword [ebp - 0x438]
add ecx, 1
mov dword [ebp - 0x438], ecx
cmp dword [ebp - 0x438], 5
jge 0x40fe3c
mov edx, dword [ebp - 0x438]
imul edx, edx, 0x118
movzx eax, word [edx + 0x42a648]
test eax, eax
jne 0x40fe3a
jmp 0x40fe09
jmp 0x40fe09
mov dword [ebp - 0x43c], 0
jmp 0x40fe57
mov ecx, dword [ebp - 0x43c]
add ecx, 1
mov dword [ebp - 0x43c], ecx
cmp dword [ebp - 0x43c], 5
jge 0x40feb7
mov edx, dword [ebp - 0x43c]
imul edx, edx, 0x118
movzx eax, word [edx + 0x42a648]
test eax, eax
jne 0x40fe79
jmp 0x40fe48
mov ecx, dword [ebp - 0x43c]
imul ecx, ecx, 0x118
mov edx, dword [ecx + 0x42a748]
mov dword [0x42ad54], edx
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x43c]
imul edx, edx, 0x118
add edx, 0x42a648
push edx
call fcn.00405240
add esp, 0xc
jmp 0x40fe48
push 0x42ad58
push 0x104
lea eax, [ebp - 0x418]
push eax
call fcn.0041123d
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40feec
mov dword [ebp - 0x430], 2
mov eax, dword [ebp - 0x430]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004107a7
mov esp, ebp
pop ebp
ret