Function at 0x42fa10
Capabilities:
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x248]
sub esp, 0x248
push 0xffffffffffffffff
push 0x459f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x46be4c]
xor eax, ebp
mov dword [ebp + 0x244], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x250]
mov esi, ecx
mov ecx, dword [ebp + 0x254]
mov dword [ebp - 0x28], ecx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
call fcn.004027b0
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004317f7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42fa88
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.004317f7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42fab5
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp + 0x140]
push ecx
push 0x104
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x14]
call fcn.004072d0
mov eax, dword [eax]
push 0x45c6ec
push eax
call fcn.00442f25
add esp, 8
cmp eax, edi
mov eax, dword [ebp - 0x20]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fb1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42fb2f
push 1
push 0x45c6ec
lea ecx, [ebp - 0x14]
call fcn.00401c50
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [esi + 0x11e4]
push 0x104
push edx
call fcn.004423ff
mov eax, dword [ebp - 0x24]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x42fbc9
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fb78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fb9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fbc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x42fe2c
lea ecx, [ebp]
push ecx
push str..inf
mov dword [ebp], 0x927
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], 0xffffffff
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
xor edx, edx
cmp ebx, 0xffffffff
setne dl
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x2c]
mov dword [ebp - 0x20], ebx
mov edi, edx
call fcn.0043081b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x18]
call fcn.0043f7dc
test edi, edi
je 0x42fd96
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00401f00
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00402020
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fc74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp + 0x2c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42fc80
sub eax, edx
push eax
lea ecx, [ebp + 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401bc0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
push edx
push eax
mov ecx, esi
call fcn.0042e710
test eax, eax
je 0x42fd3e
push 0x1a4
mov byte [ebp - 4], 4
call fcn.00430337
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
test ecx, ecx
mov byte [ebp - 4], 5
je 0x42fcea
lea edx, [esi + 0x14]
push edx
lea eax, [esi + 0x10]
push eax
lea edx, [esi + 0xc]
push edx
lea eax, [esi + 8]
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.0042dca0
mov edi, eax
jmp 0x42fcec
xor edi, edi
lea eax, [esi + 0x1d0]
push eax
lea ecx, [esi + 0x1bc]
push ecx
lea edx, [esi + 0x1a8]
push edx
lea eax, [esi + 0x194]
push eax
lea ecx, [esi + 0x180]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0042d980
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x18]
push edi
push eax
call fcn.0043b9b7
mov eax, dword [esi + 0x34]
lea ecx, [esi + 0x2c]
lea edx, [ebp + 0x2c]
push edx
push eax
call fcn.00430da4
mov dword [ebp - 4], 2
lea ecx, [ebp]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x42fc28
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x42fdbb
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x1c]
mov esi, dword [esi + 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fde1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fe04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fe2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.0044027a
add ebp, 0x248
mov esp, ebp
pop ebp
ret 8