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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9c6f
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x4ff5e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4ac], esi
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x4a4], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp dword [edi + 0x10], 0
mov esi, 1
mov dword [ebp - 4], 0
je 0x431df6
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x431bbd
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x431df6
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004679d0
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x431bec
mov eax, dword [edi]
push 0x4d9790
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x431df6
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x49c], eax
test eax, eax
je 0x431df6
nop dword [eax]
test byte [ebp - 0x498], 0x10
mov dword [ebp - 0x4a8], esi
jne 0x431dd9
xor eax, eax
mov dword [ebp - 4], 1
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
mov eax, dword [edi + 0x10]
or esi, 2
inc eax
mov dword [ebp - 0x220], 0
push eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x4a0], esi
call fcn.00426f20
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x431c8a
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.00426bf0
push 1
push str._.
lea ecx, [ebp - 0x230]
call fcn.00426bf0
lea eax, [ebp - 0x46c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431cb4
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.00426bf0
mov esi, dword [ebp - 0x4a8]
xor ecx, ecx
or esi, 6
mov dword [ebp - 0x4a0], esi
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movups xmmword [ebp - 0x248], xmm0
mov word [eax], cx
movq qword [ebp - 0x238], xmm1
mov eax, dword [ebp - 0x4a4]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 4]
cmp dword [eax + 8], ecx
je 0x431d3d
movups xmmword [ecx], xmm0
mov edx, 7
movq qword [ecx + 0x10], xmm1
xor ecx, ecx
add dword [eax + 4], 0x18
mov word [ebp - 0x248], cx
jmp 0x431d52
lea edx, [ebp - 0x248]
push edx
push ecx
mov ecx, eax
call fcn.0041f360
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x431d90
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x431d86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431e17
push edx
push ecx
call fcn.0043b3b2
add esp, 8
mov edx, dword [ebp - 0x21c]
and esi, 0xfffffffd
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x431dd3
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x431dc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431e17
push edx
push ecx
call fcn.0043b3b2
add esp, 8
mov eax, dword [ebp - 0x49c]
lea ecx, [ebp - 0x498]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x431df6
mov eax, dword [ebp - 0x49c]
jmp 0x431c30
mov eax, dword [ebp - 0x4a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b668
mov esp, ebp
pop ebp
ret
call fcn.0046af28
int3