Function at 0x418220
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585137
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x5e9750]
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 [ebp + 0xc]
mov dword [ebp - 0x270], eax
xor esi, esi
mov dword [ebp - 4], esi
push 0x14
mov dword [ebp - 0x278], esi
call fcn.0044660c
add esp, 4
cmp eax, esi
je 0x41868d
mov dword [ebp - 0x27c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x27c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x27c]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x27c]
mov al, 1
mov byte [ecx + 0x10], al
mov edx, dword [ebp - 0x27c]
mov byte [edx + 0x11], al
mov byte [ebp - 4], al
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00405300
add eax, 0x10
add esp, 4
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x268]
push eax
mov ebx, 0x5bb0ac
mov byte [ebp - 4], 2
call fcn.00403410
push 6
push str..exe
lea ecx, [ebp - 0x268]
call fcn.004071a0
push 0x24c
lea ecx, [ebp - 0x25c]
push esi
push ecx
mov dword [ebp - 0x260], esi
call fcn.005474c0
mov eax, dword [ebp - 0x268]
add esp, 0xc
lea edx, [ebp - 0x260]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41841c
mov edi, edi
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x264]
call fcn.00405ab0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x264]
mov ecx, 0x5bce98
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418369
test dx, dx
je 0x418365
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418369
add eax, 4
add ecx, 4
test dx, dx
jne 0x418343
xor eax, eax
jmp 0x41836e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4183df
mov ecx, 0x5bce9c
mov eax, esi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4183a6
test dx, dx
je 0x4183a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4183a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x418380
xor eax, eax
jmp 0x4183ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x4183df
lea edx, [ebp - 0x264]
push edx
lea ecx, [ebp - 0x280]
call fcn.00419c10
push eax
lea eax, [ebp - 0x280]
push eax
lea edi, [ebp - 0x28c]
call fcn.00419850
mov esi, dword [ebp - 0x264]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4183ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x260]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418320
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
mov dword [ebp - 0x26c], edi
call fcn.00447243
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41843e
push 0x80004005
call fcn.00405920
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 4
cmp edi, 0x2710
jge 0x4184aa
push edi
lea ecx, [ebp - 0x264]
push str.NERO_TMP__04d.EXE
push ecx
call fcn.004075c0
mov esi, dword [ebp - 0x27c]
add esp, 0xc
lea edx, [ebp - 0x288]
push edx
lea eax, [ebp - 0x280]
push eax
lea ebx, [ebp - 0x264]
call fcn.00418d90
cmp dword [eax], esi
jne 0x41849e
mov dword [ebp - 0x26c], 1
inc edi
cmp dword [ebp - 0x26c], 0
je 0x418454
jmp 0x4184b7
cmp dword [ebp - 0x26c], 0
je 0x4185e6
mov esi, dword [ebp - 0x270]
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call fcn.00405370
lea edx, [ebp + 8]
push edx
mov ebx, 0x5bb0ac
call fcn.00403410
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x270]
push ebx
push ecx
call fcn.00418bd0
add esp, 0xc
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.004071a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418525
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
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 0x41854b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
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 0x418571
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x288]
lea esi, [ebp - 0x280]
call fcn.004191e0
mov ecx, dword [ebp - 0x27c]
push ecx
call fcn.0044663b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4185c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.00545559
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 2
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 0x41860c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
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 0x418632
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x288]
lea esi, [ebp - 0x280]
call fcn.004191e0
mov ecx, dword [ebp - 0x27c]
push ecx
call fcn.0044663b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418686
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4185ca
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x284], esi
call fcn.005455d3
push 0x5dcf68
lea edx, [ebp - 0x298]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0054739b
int3