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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe94
mov eax, dword [0x447034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push 0x24c
lea ecx, [ebp - 0xe84]
push edi
push ecx
mov dword [ebp - 0xe94], esi
mov dword [ebp - 0xe8c], eax
mov dword [ebp - 0xe88], edi
call fcn.0042a8d0
add esp, 0xc
push 0x40e
lea edx, [ebp - 0x826]
push edi
push edx
mov word [ebp - 0x828], di
call fcn.0042a8d0
add esp, 0xc
push 0x40e
lea eax, [ebp - 0xc36]
push edi
push eax
mov word [ebp - 0xc38], di
call fcn.0042a8d0
add esp, 0xc
push 0x40e
lea ecx, [ebp - 0x416]
push edi
push ecx
mov word [ebp - 0x418], di
call fcn.0042a8d0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41202f
test al, 0x10
jne 0x41202f
cmp esi, edi
je 0x4121f0
lea edx, [ebp - 0xe88]
push edx
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004282a0
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0xc38]
push str._s
push eax
call fcn.0042869a
add esp, 0xc
lea ecx, [ebp - 0xe88]
push ecx
lea edx, [ebp - 0xc38]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xe90], eax
je 0x4121f0
jmp 0x412070
test byte [ebp - 0xe88], 0x10
je 0x412193
mov ecx, 0x440c8c
lea eax, [ebp - 0xe5c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4120ae
cmp dx, di
je 0x4120aa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4120ae
add eax, 4
add ecx, 4
cmp dx, di
jne 0x412088
xor eax, eax
jmp 0x4120b3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4121c7
mov ecx, 0x440c90
lea eax, [ebp - 0xe5c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4120ec
cmp dx, di
je 0x4120e8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4120ec
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4120c6
xor eax, eax
jmp 0x4120f1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4121c7
lea eax, [ebp - 0xe5c]
push eax
push ebx
lea ecx, [ebp - 0x418]
push str._s_s
push ecx
call fcn.0042869a
mov eax, dword [ebp - 0xe8c]
add esp, 0x10
cmp eax, edi
je 0x412173
lea edx, [ebp - 0xe88]
push edx
lea ecx, [ebp - 0x418]
push ecx
call eax
test eax, eax
jne 0x412173
lea edx, [ebp - 0x418]
push 0x5c
push edx
call fcn.00428955
add esp, 8
cmp eax, edi
je 0x4121e3
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x412151
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
push edi
push eax
call fcn.0042a8d0
mov esi, dword [ebp - 0xe94]
add esp, 0xc
mov edx, dword [ebp - 0xe8c]
push edx
push esi
lea eax, [ebp - 0xe88]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.00411f60
add esp, 0x10
jmp 0x4121c7
lea edx, [ebp - 0xe5c]
push edx
push ebx
lea eax, [ebp - 0x828]
push str._s_s
push eax
call fcn.0042869a
add esp, 0x10
cmp esi, edi
je 0x4121c7
lea ecx, [ebp - 0xe88]
push ecx
lea edx, [ebp - 0x828]
push edx
call esi
test eax, eax
je 0x4121e3
mov ecx, dword [ebp - 0xe90]
lea eax, [ebp - 0xe88]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412070
mov edx, dword [ebp - 0xe90]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004282a0
mov esp, ebp
pop ebp
ret