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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x2c], 1
mov eax, dword [eax + 0x18]
mov edi, dword [eax + ecx*4]
mov eax, dword [esi + 0x38]
add eax, 0x5b6
cmp byte [eax], 0
je 0x414f2d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414f2d
mov eax, dword [esi + 0x38]
add eax, 0x5b6
push eax
push eax
call fcn.0040bf12
pop ecx
test eax, eax
pop ecx
je 0x414f33
inc ebx
cmp ebx, 5
jl 0x414eff
mov eax, dword [esi + 0x38]
cmp byte [eax + 0x5b6], 0
je 0x414f86
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x414f49
mov eax, dword [edi + 0x10]
push 0x421a40
push eax
call fcn.00417710
pop ecx
test eax, eax
pop ecx
jne 0x414f86
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x414f64
mov eax, dword [edi + 0x10]
push eax
mov eax, dword [esi + 0x38]
add eax, 0x5b6
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.0040bfcf
add esp, 0xc
and byte [ebp - 0x309], 0
jmp 0x414fa5
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x414f90
mov eax, dword [edi + 0x10]
push 0x104
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.0040b25c
add esp, 0xc
push esi
call fcn.00415b7b
mov eax, dword [esi + 0x30]
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x38]
add eax, 0x5b6
lea ecx, [ebp - 0xc]
push eax
push 0x4219b8
lea eax, [ebp - 0x40c]
push 0x421a34
push eax
mov dword [ebp - 8], 0x415b0d
mov dword [ebp - 4], 3
call fcn.0040bb45
push esi
mov ebx, eax
call fcn.00415bf3
and dword [esi + 0x20], 0
pop ecx
test ebx, ebx
je 0x4150fc
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax + 0x18]
mov edi, dword [eax + ecx*4]
mov eax, dword [esi + 0x38]
add eax, 0x5b6
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.0040bf12
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.0040beae
mov eax, dword [edi + 0xc]
add esp, 0x10
test eax, eax
je 0x41503c
push eax
call fcn.004179a2
pop ecx
lea eax, [ebp - 0x40c]
push eax
call fcn.0041a5ec
mov dword [edi + 0xc], eax
mov dword [edi + 0x2c], 1
mov eax, dword [esi + 0x34]
xor edi, edi
pop ecx
cmp dword [eax + 0x1c], edi
jle 0x4150f3
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x2c], 0
je 0x4150a6
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x415078
mov eax, ecx
jmp 0x41507b
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esi + 0x38]
add eax, 0x5b6
push eax
lea eax, [ebp - 0x40c]
push eax
call fcn.0040bfcf
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4150b1
mov eax, dword [esi + 0x34]
inc edi
cmp edi, dword [eax + 0x1c]
jl 0x415061
jmp 0x4150f3
mov ecx, dword [esi + 0x30]
push 0x31
push 0x420860
push 0x421a18
mov eax, dword [ecx]
call dword [eax + 0x90]
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
jne 0x415100
mov eax, dword [esi + 0x34]
xor ecx, ecx
cmp dword [eax + 0x1c], ecx
jle 0x414fa5
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ecx*4]
and dword [eax + 0x2c], 0
mov eax, dword [esi + 0x34]
inc ecx
cmp ecx, dword [eax + 0x1c]
jl 0x4150e0
test ebx, ebx
jne 0x415100
jmp 0x414fa5
xor eax, eax
jmp 0x41510d
mov ecx, dword [esi + 0x38]
push 1
call fcn.00403066
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret