Function at 0x404b80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x404bd0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x404bd0
lea esi, [eax + eax]
mov eax, esi
call fcn.00411340
mov edi, esp
test edi, edi
je 0x404bd0
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x404bd2
xor eax, eax
mov ebx, eax
lea edi, [ebp + 0xc]
call fcn.00401300
mov eax, edi
call fcn.00401660
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
mov edx, edi
push edx
call eax
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x404c34
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x404c34
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00411340
mov edi, esp
test edi, edi
je 0x404c34
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x404c36
xor eax, eax
mov ebx, eax
lea edi, [ebp - 0x14]
call fcn.00401300
mov eax, edi
call fcn.00401660
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
mov eax, edi
push eax
call edx
push 0x13e
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.0040b980
mov ecx, dword [0x424d88]
add esp, 0xc
push 0x41fcfc
push 0x41fcfc
mov dword [ebp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax - 8]
push eax
lea edx, [ebp + 0x10]
push edx
call fcn.00402090
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x160]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp ecx, 0x424d78
je 0x404cce
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x404cce
push esi
call fcn.0040b07a
add esp, 4
cmp edi, 0xffffffff
jne 0x404d17
mov eax, dword [ebp - 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x424d78
je 0x404cfa
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x404cfa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.0040b07a
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x424d78
je 0x405391
add eax, 0xfffffff4
push eax
call ebx
jmp 0x40537e
lea eax, [ebp - 0x134]
shr eax, 0x10
mov dword [ebp - 0x20], eax
jmp 0x404d33
mov eax, dword [ebp - 0x20]
mov esi, dword [0x424d88]
mov dword [ebp + 0x10], esi
test ax, ax
jne 0x404d5d
lea eax, [ebp - 0x134]
movzx eax, ax
lea ecx, [ebp + 0x10]
call fcn.00401dc0
mov esi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x404db1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x134]
push ecx
call ebx
mov edi, eax
test edi, edi
je 0x404db1
lea edx, [edi + 0xd]
push edx
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x404db1
mov dword [eax], 1
mov byte [eax + edi + 0xc], 0
lea esi, [eax + 0xc]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea eax, [edi + 1]
mov dword [ebp + 0x10], esi
cmp eax, edi
jb 0x404db1
push edi
lea ecx, [ebp - 0x134]
push ecx
push esi
call fcn.0040b610
add esp, 0xc
test byte [ebp - 0x160], 0x10
je 0x404f93
mov ecx, 0x41fd00
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404de5
test dl, dl
je 0x404de1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404de5
add eax, 2
add ecx, 2
test dl, dl
jne 0x404dc5
xor eax, eax
jmp 0x404dea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4052f4
mov ecx, 0x41fd04
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404e20
test dl, dl
je 0x404e1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404e20
add eax, 2
add ecx, 2
test dl, dl
jne 0x404e00
xor eax, eax
jmp 0x404e25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4052f4
mov edx, dword [0x424d88]
push 0x41fd08
push 0x41fd08
mov dword [ebp - 4], edx
call ebx
push eax
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00402090
mov eax, dword [esi - 8]
mov edx, dword [0x424d88]
push esi
push eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax - 8]
push eax
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], edx
call fcn.00402090
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404e8e
call fcn.004010a0
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x404e95
push 0x8007000e
call fcn.00401100
mov dword [ebp - 0xc], 0
mov edx, dword [0x424d88]
push 0x41fd08
push 0x41fd08
mov dword [ebp - 0x18], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402090
mov eax, dword [esi - 8]
mov edx, dword [0x424d88]
push esi
mov esi, dword [ebp - 0x18]
mov ebx, dword [esi - 8]
push eax
push esi
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edx
call fcn.00402090
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404ef1
call fcn.004010a0
mov edi, eax
test edi, edi
je 0x404e84
jmp 0x404ef3
xor edi, edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
push ecx
push edi
push eax
call edx
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebx - 0xc]
cmp eax, 0x424d78
je 0x404f2d
add ebx, 0xfffffff4
push ebx
call edi
test eax, eax
jg 0x404f2d
push ebx
call fcn.0040b07a
add esp, 4
lea ecx, [esi - 0xc]
cmp ecx, 0x424d78
je 0x404f4b
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x404f4b
push esi
call fcn.0040b07a
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x424d78
je 0x404f76
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x404f76
push esi
call fcn.0040b07a
add esp, 4
mov eax, dword [ebp - 4]
lea edx, [eax - 0xc]
cmp edx, 0x424d78
je 0x4052f4
lea esi, [eax - 0xc]
push esi
call edi
jmp 0x4052e7
mov eax, dword [0x424d88]
push 0x41fd08
mov dword [ebp - 8], eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax - 8]
lea edi, [esi + ebx]
cmp edi, ebx
mov dword [ebp - 0x10], eax
jl 0x405017
cmp edi, esi
jl 0x405017
test edi, edi
je 0x405017
lea ecx, [edi + 0xd]
push ecx
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x405017
mov dword [eax], 1
mov byte [eax + edi + 0xc], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edi
add eax, 0xc
lea edx, [edi + 1]
mov dword [ebp - 8], eax
cmp edx, ebx
jb 0x404ffb
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push ebx
push eax
push ecx
call fcn.0040b610
add esp, 0xc
mov edx, dword [ebp - 8]
sub edi, ebx
inc edi
lea eax, [ebx + edx]
cmp edi, esi
jb 0x405017
push esi
push 0x41fd08
push eax
call fcn.0040b610
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [eax - 8]
mov ebx, dword [ecx - 8]
mov esi, dword [0x424d88]
lea edi, [ebx + eax]
cmp edi, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], eax
jl 0x405096
cmp edi, eax
jl 0x405096
test edi, edi
je 0x405096
lea edx, [edi + 0xd]
push edx
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x405096
mov dword [eax], 1
mov byte [eax + edi + 0xc], 0
lea esi, [eax + 0xc]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea eax, [edi + 1]
mov dword [ebp - 0x18], esi
cmp eax, ebx
jb 0x40507a
mov ecx, dword [ebp - 8]
push ebx
push ecx
push esi
call fcn.0040b610
add esp, 0xc
sub edi, ebx
inc edi
lea eax, [ebx + esi]
cmp edi, dword [ebp - 4]
jb 0x405096
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
call fcn.0040b610
add esp, 0xc
test esi, esi
je 0x4050e8
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea eax, [edi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x4050db
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x4050db
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ebx, ebx
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x404e84
jmp 0x4050ef
mov dword [ebp - 4], 0
mov edx, dword [0x424d88]
push 0x41fd08
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax - 8]
lea edi, [esi + ebx]
cmp edi, ebx
mov dword [ebp - 0x10], eax
jl 0x405175
cmp edi, esi
jl 0x405175
test edi, edi
je 0x405175
lea eax, [edi + 0xd]
push eax
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x405175
mov dword [eax], 1
mov byte [eax + edi + 0xc], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edi
add eax, 0xc
lea ecx, [edi + 1]
mov dword [ebp - 0xc], eax
cmp ecx, ebx
jb 0x405159
mov edx, dword [ebp - 0x10]
push ebx
push edx
push eax
call fcn.0040b610
add esp, 0xc
mov ecx, dword [ebp - 0xc]
sub edi, ebx
inc edi
lea eax, [ebx + ecx]
cmp edi, esi
jb 0x405175
push esi
push 0x41fd08
push eax
call fcn.0040b610
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx - 8]
mov esi, dword [ecx - 8]
mov ebx, dword [0x424d88]
lea edi, [esi + eax]
cmp edi, esi
mov dword [ebp - 0x10], eax
jl 0x4051ee
cmp edi, eax
jl 0x4051ee
test edi, edi
je 0x4051ee
lea edx, [edi + 0xd]
push edx
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x4051ee
mov dword [eax], 1
mov byte [eax + edi + 0xc], 0
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea ebx, [eax + 0xc]
lea eax, [edi + 1]
cmp eax, esi
jb 0x4051d2
mov ecx, dword [ebp - 0xc]
push esi
push ecx
push ebx
call fcn.0040b610
add esp, 0xc
sub edi, esi
inc edi
lea eax, [esi + ebx]
cmp edi, dword [ebp - 0x10]
jb 0x4051ee
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
call fcn.0040b610
add esp, 0xc
test ebx, ebx
je 0x40523f
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea edx, [esi - 1]
push edx
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x405233
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x405233
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
mov esi, edi
test edi, edi
je 0x404e84
jmp 0x405241
xor esi, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x39]
add eax, 0x39
push edx
push esi
push eax
mov eax, dword [ecx + 0x24]
call eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [ebx - 0xc]
cmp ecx, 0x424d78
je 0x405280
add ebx, 0xfffffff4
push ebx
call edi
test eax, eax
jg 0x405280
push ebx
call fcn.0040b07a
add esp, 4
mov eax, dword [ebp - 0xc]
lea edx, [eax - 0xc]
cmp edx, 0x424d78
je 0x4052a1
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x4052a1
push esi
call fcn.0040b07a
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x424d78
je 0x4052cc
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x4052cc
push esi
call fcn.0040b07a
add esp, 4
mov edx, dword [ebp - 8]
add edx, 0xfffffff4
cmp edx, 0x424d78
je 0x4052f4
mov esi, dword [ebp - 8]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4052f4
push esi
call fcn.0040b07a
add esp, 4
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x160]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x424d78
je 0x40532c
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40532c
push esi
call fcn.0040b07a
add esp, 4
test edi, edi
jne 0x404d30
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x424d78
je 0x405366
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405366
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.0040b07a
add esp, 4
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x424d78
je 0x405391
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405391
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0040b07a
add esp, 4
xor eax, eax
lea esp, [ebp - 0x16c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc