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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56641a
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x18], 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 + 8]
mov edi, ecx
push eax
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x488], eax
call fcn.00404f00
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00448c3f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x447d97
push 0x80004005
call fcn.00404160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x478], eax
mov byte [ebp - 4], 1
call fcn.00448c3f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x447dc7
push 0x80004005
call fcn.00404160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x484], eax
lea ecx, [ebp - 0x224]
push ecx
push 0x104
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea edx, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x480]
call fcn.004103e0
mov eax, dword [eax]
mov ecx, 0x5958c8
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x447e36
cmp dx, si
je 0x447e32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x447e36
add eax, 4
add ecx, 4
cmp dx, si
jne 0x447e10
xor eax, eax
jmp 0x447e3b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
mov eax, dword [ebp - 0x47c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x447e62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x447e78
push 1
push 0x5958c8
lea ecx, [ebp - 0x480]
call fcn.0040a930
mov ecx, dword [ebp - 0x488]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x447f06
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x447eaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x447ed5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x480]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x447efe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x44826d
lea ecx, [ebp - 0x474]
push ecx
push str.oem.inf
mov dword [ebp - 0x474], 0x927
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x45c], esi
mov dword [ebp - 0x458], 0xffffffff
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x44c], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor edx, edx
cmp ebx, 0xffffffff
setne dl
push 0xffffffffffffffff
lea ecx, [edi + 0x2c]
push 0
mov dword [ebp - 0x47c], ebx
mov esi, edx
call fcn.0044a765
push 0xffffffffffffffff
lea ecx, [edi + 0x18]
push 0
call fcn.0045b135
lea esp, [esp]
test esi, esi
je 0x4481ce
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x480]
push ecx
lea edx, [ebp - 0x48c]
push edx
mov byte [ebp - 4], 3
call fcn.004105a0
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov esi, dword [ebp - 0x478]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x448024
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x448014
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x448014
push eax
call fcn.00406410
mov dword [ebp - 0x488], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x448003
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x488]
add ecx, 0x10
mov dword [ebp - 0x478], ecx
jmp 0x448024
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x478]
call fcn.00405470
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44804a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x448]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x448053
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x484]
call fcn.00405470
mov edx, dword [ebp - 0x478]
mov ecx, edi
call fcn.00446880
test eax, eax
je 0x448116
push 0x2a8
call fcn.00448a88
add esp, 4
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4480c6
lea edx, [edi + 0x14]
push edx
lea ecx, [edi + 0x10]
push ecx
lea edx, [edi + 0xc]
push edx
lea ecx, [edi + 8]
push ecx
lea edx, [ebp - 0x484]
push edx
push eax
call fcn.00445c70
mov esi, eax
jmp 0x4480c8
xor esi, esi
lea eax, [edi + 0x2d4]
push eax
lea ecx, [edi + 0x2c0]
push ecx
lea edx, [edi + 0x2ac]
push edx
lea eax, [edi + 0x298]
push eax
lea ecx, [edi + 0x284]
push ecx
mov eax, esi
mov byte [ebp - 4], 3
call fcn.00446050
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x18]
push esi
push eax
call fcn.0045b2a3
mov eax, dword [edi + 0x34]
lea ecx, [edi + 0x2c]
lea edx, [ebp - 0x448]
push edx
push eax
call fcn.0044abdf
lea eax, [ebp - 0x474]
mov dword [ebp - 4], 2
mov ebx, dword [ebp - 0x47c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x447f90
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4481f3
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [edi + 0x34]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44821c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x448242
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x480]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44826b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret 4