Function at 0x43ef90
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, 0x4cb9f8
cmp dword [0x4cb9f4], edi
jle 0x43f087
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 0x43efc0
mov eax, dword [0x4dfd7c]
sub ecx, edx
cmp ecx, eax
jne 0x43f031
push eax
push dword [0x4dfd78]
push esi
call fcn.004178ae
add esp, 0xc
test eax, eax
jne 0x43f031
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43eff0
sub ecx, edx
inc esi
add esi, ecx
cmp bl, 2
je 0x43f1a8
push esi
push dword [esp + 0x14]
push ebp
push dword [0x4dfd9c]
call fcn.004535d0
test eax, eax
jne 0x43f1a8
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f023
sub ecx, edx
lea eax, [ecx + esi]
jmp 0x43f05c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f036
sub ecx, edx
lea edx, [ecx + 1]
add edx, esi
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f050
sub ecx, esi
lea eax, [ecx + edx]
cmp byte [eax + 1], 6
lea esi, [eax + 2]
jne 0x43f073
push esi
call fcn.004507e0
add eax, dword [0x4ef2bc]
jmp 0x43f078
mov eax, 8
inc edi
add esi, eax
cmp edi, dword [0x4cb9f4]
jl 0x43efb4
mov ebp, dword [esp + 0x350]
cmp byte [ebp], 0
jne 0x43f370
cmp dword [0x4dfda0], 0
jne 0x43f2f1
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x4cb064]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x153], al
test al, al
jne 0x43f0b0
lea ecx, [esp + 0x154]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x43f0d0
mov eax, dword [str.Residents.res]
mov dword [ecx], eax
mov eax, dword [0x4aeb70]
mov dword [ecx + 4], eax
mov eax, dword [0x4aeb74]
mov dword [ecx + 8], eax
mov eax, dword [0x4aeb78]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x154]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f103
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 0x43f2ea
test byte [esp + 0x14], 0x10
jne 0x43f2cf
cmp dword [0x4cb014], 0
je 0x43f2a2
movq xmm0, qword [str.Unicode_]
lea edx, [esp + 0x40]
movq qword [ebx], xmm0
mov esi, edx
mov al, byte [0x4aeb84]
mov byte [ebx + 8], al
mov al, byte [edx]
inc edx
test al, al
jne 0x43f163
sub edx, esi
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43f170
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 0x43f286
mov eax, 1
push eax
jmp 0x43f2bf
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f1b0
sub ecx, edx
add esi, ecx
movsx eax, byte [esi + 1]
add esi, 2
sub eax, 3
je 0x43f25f
sub eax, 2
je 0x43f23a
sub eax, 1
jne 0x43f47f
mov edi, dword [esp + 0x34c]
push esi
mov dword [edi], 0x25
call fcn.004507e0
add eax, dword [0x4ef2bc]
push eax
push 0
push dword [0x4ddd30]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 8], eax
test eax, eax
je 0x43f21e
push esi
push eax
call fcn.00450760
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.00448ba0
add esp, 8
mov dword [0x4dfbd4], eax
jmp 0x43f475
mov eax, dword [esp + 0x34c]
pop edi
mov dword [eax], 0x24
movsd xmm0, qword [esi]
pop esi
pop ebp
movsd qword [eax + 8], xmm0
mov byte [eax + 0x12], 0
pop ebx
add esp, 0x338
ret
mov edx, dword [esp + 0x34c]
pop edi
mov dword [edx], 0x23
mov eax, dword [esi]
mov ecx, dword [esi + 4]
pop esi
pop ebp
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov byte [edx + 0x12], 0
pop ebx
add esp, 0x338
ret
lea ecx, [esp + 0x40]
mov edx, ebx
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x43f290
xor eax, eax
push eax
jmp 0x43f2bf
lea ecx, [esp + 0x40]
mov edx, ebx
mov eax, ecx
sub edx, eax
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x43f2b0
push 0
lea eax, [esp + 0x158]
push eax
call fcn.0043d620
add esp, 8
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43f131
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x350]
mov ebx, dword [0x4dfda0]
test ebx, ebx
je 0x43f370
nop dword [eax + eax]
mov edi, dword [ebx + 4]
mov eax, dword [ebx + 8]
add eax, edi
cmp edi, eax
jae 0x43f36a
nop dword [eax]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f315
mov eax, dword [0x4dfd7c]
sub ecx, edx
cmp ecx, eax
jne 0x43f33f
push eax
push dword [0x4dfd78]
push edi
call fcn.004178ae
add esp, 0xc
test eax, eax
je 0x43f48a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f344
push dword [ebx + 0xc]
sub ecx, edx
lea eax, [ecx + 1]
add eax, edi
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 0x43f310
mov ebx, dword [ebx]
test ebx, ebx
jne 0x43f300
cmp dword [0x4dfbd0], 0
jne 0x43f47f
push str.ConstantNotFound
push str.Parser
call fcn.00448ba0
mov edx, 0x4dfbd8
add esp, 8
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x43f396
mov ebx, 0x4dfbd8
lea ecx, [ebx - 1]
nop dword [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x43f3b0
mov ax, word [0x4aeb64]
mov word [ecx], ax
mov al, byte [0x4aeb66]
mov byte [ecx + 2], al
cmp byte [ebp], 0
je 0x43f41b
mov esi, ebp
mov al, byte [ebp]
inc ebp
test al, al
jne 0x43f3d3
sub ebp, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43f3e0
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]
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x43f400
mov ax, word [0x4aa3ac]
mov word [ecx], ax
mov al, byte [0x4aa3ae]
mov byte [ecx + 2], al
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x43f420
push dword [0x4dfd7c]
mov ax, word [0x4aeb9c]
push dword [0x4dfd78]
mov word [edi], ax
push 0x4dfbd8
call fcn.004780a0
add esp, 0xc
dec ebx
nop dword [eax]
mov al, byte [ebx + 1]
lea ebx, [ebx + 1]
test al, al
jne 0x43f450
mov ax, word [0x4aeb68]
mov word [ebx], ax
mov al, byte [0x4aeb6a]
mov byte [ebx + 2], al
mov dword [0x4dfbd4], 0x4dfbd8
mov dword [0x4dfbd0], 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 0x43f490
push dword [ebx + 0xc]
mov esi, dword [esp + 0x350]
sub ecx, edx
push esi
lea eax, [ecx + 1]
add eax, edi
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