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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d44a
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x5b4450]
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.00401210
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0044033f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x43f497
push 0x80004005
call fcn.004010a0
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.0044033f
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x43f4c7
push 0x80004005
call fcn.004010a0
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.00413980
mov eax, dword [eax]
mov ecx, 0x58abe4
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f536
cmp dx, si
je 0x43f532
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f536
add eax, 4
add ecx, 4
cmp dx, si
jne 0x43f510
xor eax, eax
jmp 0x43f53b
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 0x43f562
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x43f578
push 1
push 0x58abe4
lea ecx, [ebp - 0x480]
call fcn.004058b0
mov ecx, dword [ebp - 0x488]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x43f606
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 0x43f5af
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 0x43f5d5
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 0x43f5fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x43f96d
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.00441e85
push 0xffffffffffffffff
lea ecx, [edi + 0x18]
push 0
call fcn.00525751
lea esp, [esp]
test esi, esi
je 0x43f8ce
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.004063e0
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 0x43f724
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x43f714
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x43f714
push eax
call fcn.004017c0
mov dword [ebp - 0x488], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x43f703
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 0x43f724
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x478]
call fcn.004016b0
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 0x43f74a
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 0x43f753
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x484]
call fcn.004016b0
mov edx, dword [ebp - 0x478]
mov ecx, edi
call fcn.0043df80
test eax, eax
je 0x43f816
push 0x2a8
call fcn.00440188
add esp, 4
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x43f7c6
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.0043d3b0
mov esi, eax
jmp 0x43f7c8
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.0043d790
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x18]
push esi
push eax
call fcn.00525877
mov eax, dword [edi + 0x34]
lea ecx, [edi + 0x2c]
lea edx, [ebp - 0x448]
push edx
push eax
call fcn.004422ff
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 0x43f690
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 0x43f8f3
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 0x43f91c
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 0x43f942
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 0x43f96b
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.005337cb
mov esp, ebp
pop ebp
ret 4