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

Disassembly:
push 0xffffffffffffffff
push 0x449c8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push ebp
mov ebp, dword [esp + 0x274]
push esi
push edi
mov esi, ecx
push ebp
lea ecx, [esp + 0x14]
call fcn.00402470
mov dword [esp + 0x274], 0
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x274], 1
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x168]
push eax
push 0x104
mov byte [esp + 0x27c], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405c40
mov eax, dword [eax]
push 0x44b63c
push eax
call fcn.0042f5a3
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x426539
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x42654d
push 1
push 0x44b63c
lea ecx, [esp + 0x18]
call fcn.00401b10
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x103
or eax, ecx
jge 0x426579
push 0x103
lea ecx, [esp + 0x14]
call fcn.00401490
mov edx, dword [esp + 0x10]
lea edi, [esi + 0x11e4]
mov eax, edx
sub edi, edx
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x426583
xor ebx, ebx
cmp edx, ebx
jne 0x426597
xor eax, eax
jmp 0x4265af
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4265a0
sub eax, edi
js 0x426901
cmp eax, dword [edx - 8]
jg 0x426901
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x10]
push ebp
mov byte [eax + ecx], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x426665
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x274], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4265f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x274], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42661e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x274], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426647
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or eax, 0xffffffff
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x268
ret 8
lea eax, [esp + 0x28]
push eax
push str..inf
mov dword [esp + 0x30], 0x927
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
mov ebp, eax
cmp ebp, 0xffffffff
setne cl
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x28], ebp
mov edi, ecx
lea ecx, [esi + 0x2c]
call fcn.0043bec1
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
push ebx
call fcn.0043c1e7
cmp edi, ebx
je 0x42685b
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00401d70
add esp, 0xc
mov ecx, dword [eax]
mov edi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
mov byte [esp + 0x274], 3
je 0x42674f
mov edx, dword [edi + 0xc]
test edx, edx
lea ebp, [edi + 0xc]
jl 0x42673f
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x42673f
push eax
call fcn.004014e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x426736
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x42674d
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401a70
xor ebx, ebx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x274], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x426775
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x54]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426780
sub eax, edx
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a70
mov ecx, dword [esp + 0x280]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.00425260
cmp eax, ebx
je 0x426843
push 0x1a4
call fcn.0043cc58
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x274], 4
je 0x4267f1
lea ecx, [esi + 0x14]
push ecx
lea edx, [esi + 0x10]
push edx
lea ecx, [esi + 0xc]
push ecx
lea edx, [esi + 8]
push edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.004247b0
mov edi, eax
jmp 0x4267f3
xor edi, edi
lea edx, [esi + 0x1d0]
push edx
lea eax, [esi + 0x1bc]
push eax
lea ecx, [esi + 0x1a8]
push ecx
lea edx, [esi + 0x194]
push edx
lea eax, [esi + 0x180]
push eax
mov ecx, edi
mov byte [esp + 0x288], 2
call fcn.004244b0
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x18]
push edi
push eax
call fcn.0043c346
mov eax, dword [esi + 0x34]
lea ecx, [esi + 0x2c]
lea edx, [esp + 0x54]
push edx
push eax
call fcn.0043c149
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, ebx
jne 0x4266d7
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x426882
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x18]
mov esi, dword [esi + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x274], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4268ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x274], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4268d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x274], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4268fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
jmp 0x42664a
push 0x80070057
call fcn.004010c0
int3