Function at 0x402b00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x458094]
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov dword [ebp - 0x258], ebx
cmp dword [eax], esi
je 0x402b56
mov eax, dword [eax]
xor edi, edi
nop dword [eax]
push eax
call fcn.00427f49
mov eax, dword [0x458094]
lea esi, [esi + 1]
add esp, 4
mov dword [edi + eax], 0
lea edi, [esi*4]
mov eax, dword [edi + eax]
test eax, eax
jne 0x402b30
push 0
push 0
push 0x184
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x45801c]
mov esi, edx
mov ecx, dword [0x4580b4]
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x402b76
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402b88
sub esi, ecx
cmp esi, 3
jle 0x402ba1
cmp byte [edx + esi - 1], 0x5c
jne 0x402ba1
mov byte [edx + esi - 1], al
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ba6
sub ecx, edi
cmp ecx, 2
jbe 0x402c14
push 0
push edx
call fcn.00425ccb
mov edx, dword [0x45801c]
add esp, 8
test eax, eax
je 0x402c14
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402bd0
sub ecx, edi
lea eax, [ecx - 1]
test eax, eax
js 0x402beb
cmp byte [eax + edx], 0x5c
je 0x402beb
sub eax, 1
jns 0x402be0
xor ecx, ecx
test eax, eax
cmovns ecx, eax
cmp ecx, 2
jle 0x402bfd
mov byte [ecx + edx], 0
jmp 0x402c01
mov byte [edx + 3], 0
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c06
sub ecx, edi
cmp ecx, 2
ja 0x402bb4
lea ecx, [ebp - 0x110]
sub ecx, edx
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x402c20
lea ecx, [ebp - 0x110]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402c34
mov ax, word [0x448bfc]
mov word [ecx], ax
mov al, byte [0x448bfe]
mov byte [ecx + 2], al
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x25c], edi
cmp edi, 0xffffffff
jne 0x402c83
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
lea ebx, [esi*4]
mov dword [ebp - 0x254], ebx
mov ecx, 0x448c00
lea eax, [ebp - 0x224]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402cc0
test dl, dl
je 0x402cbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402cc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x402ca0
xor eax, eax
jmp 0x402cc5
sbb eax, eax
or eax, 1
test eax, eax
je 0x402e07
test byte [ebp - 0x250], 0x10
je 0x402e07
lea eax, [ebp - 0x224]
push eax
call fcn.004231d0
mov ecx, dword [0x458094]
add esp, 4
mov edx, dword [0x45801c]
mov dword [ebx + ecx], eax
mov ecx, edx
mov ebx, dword [0x458068]
mov esi, ebx
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x402d04
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x402d14
sub edx, ecx
cmp edx, 3
jbe 0x402d38
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x402d25
mov ax, word [0x448c04]
mov word [edi], ax
lea edx, [ebp - 0x224]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402d40
sub edx, esi
lea edi, [ebx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402d50
mov ecx, edx
lea eax, [ebp - 0x224]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x448c08
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402d91
test dl, dl
je 0x402d8d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402d91
add eax, 2
add ecx, 2
test dl, dl
jne 0x402d71
xor eax, eax
jmp 0x402d96
sbb eax, eax
or eax, 1
test eax, eax
je 0x402dbd
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402da0
sub eax, edx
test eax, eax
jle 0x402dc6
nop dword [eax]
cmp byte [eax + ebx], 0x5c
je 0x402dc6
dec eax
test eax, eax
jg 0x402db0
jmp 0x402dc6
lea ebx, [ebp - 0x224]
or eax, 0xffffffff
mov edi, dword [ebp - 0x258]
inc ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add eax, ebx
push eax
push 0
push 0x180
push edi
call esi
mov ecx, dword [0x458094]
mov ebx, dword [ebp - 0x254]
push dword [ebx + ecx]
push eax
push 0x19a
push edi
call esi
mov edi, dword [ebp - 0x25c]
add ebx, 4
mov dword [ebp - 0x254], ebx
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402c90
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret