Function at 0x431660
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c87b
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x587978]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x34]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x27c], ecx
test eax, eax
jne 0x431bf3
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [0x589078]
call fcn.00411c90
mov dword [ebp - 4], 0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x270]
call fcn.00409590
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4316ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.00420560
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x270]
call fcn.00411680
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x431736
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.00448e30
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x270]
call fcn.00411680
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43177d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x274], esi
mov byte [ebp - 4], 0xa
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x4317c2
push edi
lea ecx, [ebp - 0x274]
call fcn.00406d20
mov esi, dword [ebp - 0x274]
cmp dword [esi - 8], edi
jge 0x4317d1
push 0x80070057
call fcn.00406170
push esi
xor ecx, ecx
mov dword [esi - 0xc], edi
push edi
mov word [esi + 0x208], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ebabf
add esp, 8
test eax, eax
js 0x4317c7
cmp eax, dword [esi - 8]
jg 0x4317c7
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
lea eax, [ebp - 0x268]
push eax
call fcn.00422a20
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x264]
push edx
call fcn.0041f300
add esp, 0x10
mov bl, 0xc
mov byte [ebp - 4], bl
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00409590
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x270]
call fcn.00411c00
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431879
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43189f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4318c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.00448e30
add esp, 4
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x270]
call fcn.00411680
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43190c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
push eax
call fcn.00406d80
add eax, 0x10
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0042d060
add esp, 8
mov byte [ebp - 4], 0x18
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x264]
call fcn.00411680
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43196f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x264]
add edi, 0xfffffff0
push edi
call fcn.00406d80
add eax, 0x10
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x268]
push ecx
call fcn.00430ee0
add esp, 8
mov byte [ebp - 4], 0x1d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00411680
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4319d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x26c]
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x278], eax
cmp eax, 0xffffffff
je 0x431acc
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
jl 0x431a18
cmp eax, dword [edi]
jne 0x431a18
mov esi, edi
lea eax, [edi + 0xc]
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x431a53
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x431c0f
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [edi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.004ead12
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x268], esi
mov byte [ebp - 4], 0x21
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x268]
call fcn.00411680
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x268]
push eax
call fcn.0042c870
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431aaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4319f5
mov esi, dword [ebp - 0x274]
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
push eax
call fcn.00406d80
add eax, 0x10
mov dword [ebp - 0x268], eax
mov bl, 0x26
mov byte [ebp - 4], bl
lea eax, [ebp - 0x278]
push eax
call fcn.0042d210
add esp, 8
mov byte [ebp - 4], 0x27
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x268]
call fcn.00411680
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431b2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [ebp - 0x27c]
call fcn.0042c870
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x431b67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431b8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431baa
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [ebp - 4], 3
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431bca
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 - 0x270]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431bf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eb16b
mov esp, ebp
pop ebp
ret
call fcn.00406970
int3