Function at 0x41e980
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
sub esp, 0x338
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, 0x44b1cc
cmp dword [0x44b1c8], edi
jle 0x41ea75
mov ebp, dword [esp + 0x350]
mov bl, byte [esi]
inc esi
mov ecx, esi
mov byte [esp + 0x10], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e9b0
mov eax, dword [0x44f7dc]
sub ecx, edx
cmp ecx, eax
jne 0x41ea21
push eax
push dword [0x44f7d8]
push esi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x41ea21
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x41e9e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e9e0
sub ecx, edx
inc esi
add esi, ecx
cmp bl, 2
je 0x41eb96
push esi
push dword [esp + 0x14]
push ebp
push dword [0x44f7fc]
call fcn.004316a0
test eax, eax
jne 0x41eb96
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ea13
sub ecx, edx
inc esi
add esi, ecx
jmp 0x41ea4e
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ea26
sub ecx, edx
lea edx, [ecx + 1]
add edx, esi
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ea40
sub ecx, esi
lea esi, [ecx + 1]
add esi, edx
mov al, byte [esi]
inc esi
cmp al, 6
jne 0x41ea65
push esi
call fcn.0042efd0
add eax, dword [0x45f130]
add esi, eax
jmp 0x41ea68
add esi, 8
inc edi
cmp edi, dword [0x44b1c8]
jl 0x41e9a4
mov ebp, dword [esp + 0x350]
cmp byte [ebp], 0
jne 0x41ed60
mov ebx, dword [0x44f628]
test ebx, ebx
jne 0x41ecf0
xor ecx, ecx
jmp 0x41eaa0
mov al, byte [ecx + 0x44b026]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x153], al
test al, al
jne 0x41eaa0
lea ecx, [esp + 0x154]
dec ecx
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x41eac0
mov eax, dword [str.Residents.res]
mov dword [ecx], eax
mov eax, dword [0x4414dc]
mov dword [ecx + 4], eax
mov eax, dword [0x4414e0]
mov dword [ecx + 8], eax
mov eax, dword [0x4414e4]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x154]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41eaf3
lea eax, [esp + 0x14]
sub ecx, edx
push eax
lea eax, [esp + 0x158]
push eax
lea ebx, [esp + ecx + 0x157]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41ecda
test byte [esp + 0x14], 0x10
jne 0x41ecbf
cmp dword [0x44b015], 0
je 0x41ec8f
mov eax, dword [str.Unicode_]
lea edx, [esp + 0x40]
mov dword [ebx], eax
mov esi, edx
mov eax, dword [0x4414ec]
mov dword [ebx + 4], eax
mov al, byte [0x4414f0]
mov byte [ebx + 8], al
mov al, byte [edx]
inc edx
test al, al
jne 0x41eb56
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41eb62
mov ecx, edx
lea eax, [esp + 0x154]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41ec70
push 1
jmp 0x41ecaf
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x41eba0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41eba0
sub ecx, edx
add esi, ecx
movsx eax, byte [esi + 1]
add esi, 2
sub eax, 3
je 0x41ec49
sub eax, 2
je 0x41ec28
dec eax
jne 0x41ee6f
mov edi, dword [esp + 0x34c]
push esi
mov dword [edi], 0x25
call fcn.0042efd0
add eax, dword [0x45f130]
push eax
push 0
push dword [0x44e798]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 8], eax
test eax, eax
je 0x41ec0c
push esi
push eax
call fcn.0042ef50
mov byte [edi + 0x12], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x338
ret
push str.NoMemory
push str.Parser
call fcn.00427e80
add esp, 8
mov dword [0x44f634], eax
jmp 0x41ee65
mov eax, dword [esp + 0x34c]
pop edi
mov dword [eax], 0x24
fld qword [esi]
pop esi
pop ebp
fstp qword [eax + 8]
mov byte [eax + 0x12], 0
pop ebx
add esp, 0x338
ret
mov ecx, dword [esp + 0x34c]
pop edi
mov dword [ecx], 0x23
mov eax, dword [esi]
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
pop esi
pop ebp
mov dword [ecx + 0xc], eax
mov byte [ecx + 0x12], 0
pop ebx
add esp, 0x338
ret
lea ecx, [esp + 0x40]
mov edx, ebx
mov eax, ecx
sub edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x41ec80
jmp 0x41ecad
lea ecx, [esp + 0x40]
mov edx, ebx
mov eax, ecx
sub edx, eax
lea esp, [esp]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x41eca0
push 0
lea eax, [esp + 0x158]
push eax
call fcn.0041d4e0
add esp, 8
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41eb21
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [0x44f628]
mov ebp, dword [esp + 0x350]
test ebx, ebx
je 0x41ed60
jmp 0x41ecf0
mov edi, dword [ebx + 4]
mov eax, dword [ebx + 8]
add eax, edi
cmp edi, eax
jae 0x41ed5a
lea esp, [esp]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ed05
mov eax, dword [0x44f7dc]
sub ecx, edx
cmp ecx, eax
jne 0x41ed2f
push eax
push dword [0x44f7d8]
push edi
call sub.MSVCRT.dll__strnicmp
add esp, 0xc
test eax, eax
je 0x41ee7a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ed34
push dword [ebx + 0xc]
sub ecx, edx
lea eax, [edi + 1]
add eax, ecx
push eax
mov eax, dword [ebx + 0x14]
call eax
mov ecx, dword [ebx + 4]
mov edi, eax
add ecx, dword [ebx + 8]
add esp, 8
cmp edi, ecx
jb 0x41ed00
mov ebx, dword [ebx]
test ebx, ebx
jne 0x41ecf0
cmp dword [0x44f630], 0
jne 0x41ee6f
push str.ConstantNotFound
push str.Parser
call fcn.00427e80
mov edx, 0x44f638
add esp, 8
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x41ed86
mov ebx, 0x44f638
lea ecx, [ebx - 1]
jmp 0x41eda0
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x41eda0
mov ax, word [0x4414cc]
mov word [ecx], ax
mov al, byte [0x4414ce]
mov byte [ecx + 2], al
cmp byte [ebp], 0
je 0x41ee0b
mov esi, ebp
mov al, byte [ebp]
inc ebp
test al, al
jne 0x41edc3
sub ebp, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41edd0
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx - 1]
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x41edf0
mov ax, word [0x4414d0]
mov word [ecx], ax
mov al, byte [0x4414d2]
mov byte [ecx + 2], al
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x41ee10
push dword [0x44f7dc]
mov ax, word [0x441508]
push dword [0x44f7d8]
mov word [edi], ax
push 0x44f638
call sub.MSVCRT.dll_strncat
add esp, 0xc
dec ebx
lea ecx, [ecx]
mov al, byte [ebx + 1]
lea ebx, [ebx + 1]
test al, al
jne 0x41ee40
mov ax, word [0x4414d4]
mov word [ebx], ax
mov al, byte [0x4414d6]
mov byte [ebx + 2], al
mov dword [0x44f634], 0x44f638
mov dword [0x44f630], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x338
ret
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ee80
push dword [ebx + 0xc]
mov esi, dword [esp + 0x350]
lea eax, [edi + 1]
sub ecx, edx
add eax, ecx
push esi
push eax
mov eax, dword [ebx + 0x10]
call eax
add esp, 0xc
mov byte [esi + 0x12], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x338
ret