Function at 0x41ff00
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488943
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x4c2010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x488], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ff46
xor eax, eax
jmp 0x420410
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.FreeImage.dll__FreeImage_GetFileTypeU_8]
mov dword [ebp - 0x494], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.FreeImage.dll__FreeImage_GetFIFFromFilenameU_4]
mov dword [ebp - 0x498], eax
cmp dword [ebp - 0x494], 0xffffffff
jne 0x41ff81
cmp dword [ebp - 0x498], 0xffffffff
jne 0x41ff81
xor eax, eax
jmp 0x420410
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004720a0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.0047377e
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 4
lea ecx, [ebp - 0x21c]
call fcn.00401320
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00401c80
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x228]
call fcn.00401320
lea ecx, [ebp - 0x228]
call fcn.00401d20
mov byte [ebp - 4], 1
push 4
lea ecx, [ebp - 0x224]
call fcn.00401320
lea ecx, [ebp - 0x224]
call fcn.00401d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x21c]
call fcn.004022c0
sub eax, 1
push eax
lea ecx, [ebp - 0x21c]
call fcn.004291c0
movzx eax, ax
cmp eax, 0x5c
je 0x420052
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.00429100
push 0x49fbfc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x4a4]
push edx
call fcn.00428b90
add esp, 0xc
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x4a0], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4a0]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00429160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4a4]
call fcn.00401c60
mov dword [ebp - 0x490], 0
push 4
lea ecx, [ebp - 0x220]
call fcn.00401320
lea ecx, [ebp - 0x220]
call fcn.00401d20
mov byte [ebp - 4], 4
push 0xc
lea ecx, [ebp - 0x234]
call fcn.00401320
lea ecx, [ebp - 0x234]
call fcn.00401bb0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x484]
push edx
lea ecx, [ebp - 0x228]
call fcn.00401d70
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x48c], 0xffffffff
je 0x4202c2
mov ecx, 1
test ecx, ecx
je 0x4202b5
mov edx, dword [ebp - 0x484]
and edx, 0x10
jne 0x420296
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401c40
lea ecx, [ebp - 0x220]
call fcn.004022c0
test eax, eax
jle 0x420296
lea ecx, [ebp - 0x220]
call fcn.00401bf0
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x4bc]
push edx
mov ecx, dword [ebp - 0x488]
add ecx, 0x3e8
call fcn.00401930
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x4c0]
push ecx
mov ecx, dword [ebp - 0x488]
add ecx, 0x3e8
call fcn.00401990
mov edx, dword [eax]
push edx
call fcn.0042d0e0
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x4201df
lea ecx, [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x4a8]
push edx
call fcn.004737e2
add esp, 8
test eax, eax
jne 0x420296
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x4b4]
push edx
call fcn.00428b90
add esp, 0xc
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x4b0], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4b0]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00429160
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4b4]
call fcn.00401c60
lea ecx, [ebp - 0x224]
call fcn.00429180
push eax
lea ecx, [ebp - 0x4d8]
call fcn.00428920
mov byte [ebp - 4], 7
lea edx, [ebp - 0x4d8]
push edx
lea ecx, [ebp - 0x234]
call fcn.004283b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4d8]
call fcn.004113b0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x224]
call fcn.004290d0
test eax, eax
jne 0x420296
lea ecx, [ebp - 0x234]
call fcn.0040c040
sub eax, 1
mov dword [ebp - 0x490], eax
lea ecx, [ebp - 0x484]
push ecx
mov edx, dword [ebp - 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4202b0
jmp 0x4202b5
jmp 0x420122
mov eax, dword [ebp - 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x488]
add ecx, 0x48c
call fcn.00401910
mov ecx, eax
call fcn.0040b010
mov edx, dword [ebp - 0x490]
push edx
mov ecx, dword [ebp - 0x488]
call fcn.00425de0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x488]
add ecx, 0x470
call fcn.004290d0
test eax, eax
jne 0x42032e
mov ecx, dword [ebp - 0x488]
mov ecx, dword [ecx + 0x414]
call fcn.004479c0
mov ecx, dword [ebp - 0x488]
add ecx, 0x470
call fcn.00403fa0
mov edx, dword [ebp - 0x488]
mov ecx, dword [edx + 0x414]
call fcn.004468b0
mov eax, dword [ebp - 0x488]
mov ecx, dword [eax + 0x434]
push ecx
mov edx, dword [ebp - 0x488]
mov eax, dword [edx + 0x430]
push eax
mov ecx, dword [ebp - 0x488]
call fcn.00422f60
mov ecx, dword [ebp - 0x488]
call fcn.00425b00
mov ecx, dword [ebp - 0x488]
call fcn.004225d0
mov ecx, dword [ebp - 0x488]
call fcn.00425590
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x4f0]
call fcn.00428920
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4f0]
call fcn.00453ed0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4f0]
call fcn.004113b0
mov dword [ebp - 0x4b8], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call fcn.00428370
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.00401c60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00401c60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00401c60
mov eax, dword [ebp - 0x4b8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458fdd
mov esp, ebp
pop ebp
ret 4