Function at 0x404550
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x467fce
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov esi, ecx
push 0x46db5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], 0
call fcn.00403c70
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x1009
push eax
mov byte [esp + 0x174], 1
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x16c]
cmp dword [eax - 0xc], 0
jne 0x4045fc
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x164], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4047b9
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x16c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.004030b0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00403250
lea ecx, [esp + 0x16c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004037f0
push 1
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.00403550
mov eax, dword [eax]
push 0x46d8b4
push eax
call fcn.0044a83e
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40467f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x404693
push 1
push 0x46d8b4
lea ecx, [esp + 0x18]
call fcn.004036d0
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.004030b0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00404060
push 3
push 0x46db80
lea ecx, [esp + 0x18]
call fcn.004036d0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40479d
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.00403c70
test byte [esp + 0x18], 0x10
mov byte [esp + 0x164], 2
je 0x40474d
mov ecx, dword [esp + 0x14]
push 0x46db7c
push ecx
call fcn.0044a83e
add esp, 8
test eax, eax
setne al
test al, al
je 0x40475e
mov edx, dword [esp + 0x14]
push 0x46db68
push edx
call fcn.0044a83e
add esp, 8
test eax, eax
setne al
test al, al
je 0x40475e
push 1
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00404290
inc dword [esi + 0x60]
jmp 0x40475e
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00404290
inc dword [esi + 0x5c]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x164], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404786
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push edi
call ebx
test eax, eax
jne 0x4046e7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x164], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4047c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x16c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x164], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00449ba6
add esp, 0x158
ret 4