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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c77b
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 0x431b23
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [0x589078]
call fcn.004119b0
mov dword [ebp - 4], 0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x270]
call fcn.004095e0
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 0x43161f
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.0048acb0
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x270]
call fcn.004113a0
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 0x431666
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.0042cdf0
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x270]
call fcn.004113a0
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 0x4316ad
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 0x4316f2
push edi
lea ecx, [ebp - 0x274]
call fcn.00406e00
mov esi, dword [ebp - 0x274]
cmp dword [esi - 8], edi
jge 0x431701
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.004eb8eb
add esp, 8
test eax, eax
js 0x4316f7
cmp eax, dword [esi - 8]
jg 0x4316f7
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
lea eax, [ebp - 0x268]
push eax
call fcn.00422780
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x264]
push edx
call fcn.0041f010
add esp, 0x10
mov bl, 0xc
mov byte [ebp - 4], bl
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004095e0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x270]
call fcn.00411920
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 0x4317a9
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 0x4317cf
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 0x4317f5
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.0042cdf0
add esp, 4
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x270]
call fcn.004113a0
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 0x43183c
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.00406e60
add eax, 0x10
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x26c]
push ecx
call fcn.0042cf80
add esp, 8
mov byte [ebp - 4], 0x18
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x264]
call fcn.004113a0
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 0x43189f
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.00406e60
add eax, 0x10
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x268]
push ecx
call fcn.00430e10
add esp, 8
mov byte [ebp - 4], 0x1d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004113a0
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 0x431902
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 0x4319fc
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
jl 0x431948
cmp eax, dword [edi]
jne 0x431948
mov esi, edi
lea eax, [edi + 0xc]
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x431983
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 0x431b3f
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.004eaae2
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.004113a0
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x268]
push eax
call fcn.0042c600
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 0x4319da
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 0x431925
mov esi, dword [ebp - 0x274]
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
push eax
call fcn.00406e60
add eax, 0x10
mov dword [ebp - 0x268], eax
mov bl, 0x26
mov byte [ebp - 4], bl
lea eax, [ebp - 0x278]
push eax
call fcn.0042d130
add esp, 8
mov byte [ebp - 4], 0x27
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x268]
call fcn.004113a0
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 0x431a5f
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.0042c600
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 0x431a97
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 0x431abd
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 0x431ada
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 0x431afa
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 0x431b23
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.004eaf3b
mov esp, ebp
pop ebp
ret
call fcn.004069c0
int3