Function at 0x481e30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x928
push ebx
push ebp
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edx, 0x3e7
lea ecx, [esp + 0x168]
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ebx
call fcn.00420e60
mov edx, 0x3e7
lea ecx, [esp + 0x550]
call fcn.00420e60
lea eax, [esp + 0x28]
push eax
xor ebp, ebp
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x48211e
jmp 0x481ea0
test byte [esp + 0x28], 0x10
lea ecx, [esp + 0x54]
je 0x481f67
push 0x5a55c8
push ecx
call fcn.005a299c
add esp, 8
test eax, eax
je 0x482103
lea edx, [esp + 0x54]
push 0x5a81c0
push edx
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x481ef9
lea eax, [ebx + 0x648]
push eax
lea ecx, [ebx + 0x544]
push ecx
call fcn.005a299c
add esp, 8
test eax, eax
je 0x482103
xor eax, eax
jmp 0x481f00
mov cl, byte [esp + eax + 0x54]
mov byte [esp + eax + 0x168], cl
inc eax
test cl, cl
jne 0x481f00
mov eax, dword [ebx + 0x86c]
test eax, eax
jne 0x481f34
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x481f22
mov dx, word [0x5a551c]
mov word [edi], dx
lea eax, [esp + 0x168]
push eax
call fcn.005a30ba
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
lea edx, [esp + 0x16c]
call fcn.004d38f0
test eax, eax
je 0x482337
mov dword [esp + 0x14], eax
jmp 0x482103
push str.dirinfo.srv
push ecx
call fcn.005a299c
add esp, 8
test eax, eax
je 0x482103
xor eax, eax
nop
mov cl, byte [esp + eax + 0x54]
mov byte [esp + eax + 0x168], cl
inc eax
test cl, cl
jne 0x481f80
mov eax, dword [ebx + 0x86c]
test eax, eax
jne 0x4820b1
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, dword [ebx + 0x870]
sub eax, edx
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x481fcf
push eax
lea edx, [esp + 0x554]
push str._ld_b
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x481ff2
fild dword [esp + 0x20]
push 1
push 1
push 0
push 1
sub esp, 8
mov edx, 1
fstp qword [esp]
lea ecx, [esp + 0x568]
call fcn.00504de0
lea edi, [esp + 0x168]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x482000
mov ax, word [0x5a81a4]
mov cl, byte [0x5a81a6]
mov word [edi], ax
lea eax, [esp + 0x550]
mov byte [edi + 2], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482024
sub eax, edx
mov esi, eax
lea eax, [esp + 0x168]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482040
sub eax, edx
add eax, esi
cmp eax, 0x17
jae 0x482090
mov bp, word [0x5a5348]
jmp 0x482060
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x482068
lea eax, [esp + 0x168]
mov word [edi], bp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482080
sub eax, edx
add eax, esi
cmp eax, 0x17
jb 0x482060
lea edx, [esp + 0x550]
push edx
mov edx, 0x3e7
lea ecx, [esp + 0x16c]
call fcn.00420dd0
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x168]
push eax
call fcn.005a2fa6
mov eax, dword [ebx + 0x86c]
add esp, 4
test eax, eax
jne 0x4820e5
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4820d3
mov cx, word [0x5a551c]
mov word [edi], cx
push 0
lea edx, [esp + 0x16c]
mov ecx, ebp
call fcn.004d38f0
test eax, eax
je 0x482337
mov ebp, eax
mov dword [esp + 0x18], ebp
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x481ea0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
xor edx, edx
mov ecx, ebp
call fcn.00531820
mov ecx, dword [esp + 0x14]
push 0
xor edx, edx
mov esi, eax
call fcn.00531820
push esi
xor edx, edx
mov ecx, eax
call fcn.004d3b40
mov ecx, dword [ebx + 0x86c]
test ecx, ecx
mov dword [ebx + 0x874], eax
je 0x4822c5
xor ebp, ebp
mov ebx, eax
cmp ebx, ebp
mov eax, dword [esp + 0x10]
mov dword [eax + 0x874], ebp
mov byte [esp + 0x550], 0
je 0x4822c5
mov ecx, dword [ebx]
lea edx, [esp + 0x168]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x482180
lea eax, [esp + 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x482194
sub eax, edx
cmp eax, 0xf
jae 0x4821de
mov si, word [0x5a5348]
lea esp, [esp]
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4821b8
lea eax, [esp + 0x168]
mov word [edi], si
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4821d0
sub eax, edx
cmp eax, 0xf
jb 0x4821b0
lea ecx, [esp + 0x168]
push ecx
mov edx, 0x3e7
lea ecx, [esp + 0x554]
call fcn.00420dd0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x864]
inc ebp
lea edi, [esp + 0x550]
dec edi
cmp ebp, eax
jl 0x482253
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x482210
mov ax, word [0x5a551c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x874]
push 0
lea edx, [esp + 0x554]
mov word [edi], ax
call fcn.004d38f0
test eax, eax
je 0x482337
mov dword [esi + 0x874], eax
mov byte [esp + 0x550], 0
xor ebp, ebp
jmp 0x48226e
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x482253
mov cx, word [0x5a81a4]
mov dl, byte [0x5a81a6]
mov word [edi], cx
mov byte [edi + 2], dl
mov ecx, ebx
call fcn.004d3a10
mov ebx, eax
test ebx, ebx
jne 0x482174
mov al, byte [esp + 0x550]
test al, al
je 0x4822c5
lea edi, [esp + 0x550]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x482292
mov ax, word [0x5a551c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x874]
push 0
lea edx, [esp + 0x554]
mov word [edi], ax
call fcn.004d38f0
test eax, eax
je 0x482337
mov dword [esi + 0x874], eax
push 0
xor edx, edx
mov ecx, 0xa29
call fcn.0041f1a0
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x874]
mov edx, eax
call fcn.004d38f0
test eax, eax
je 0x482337
mov dword [esi + 0x874], eax
lea eax, [esi + 0x544]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4822f7
mov ecx, dword [esp + 0x24]
sub eax, edx
add eax, ecx
push eax
lea edx, [esp + 0x554]
push str.__s__n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 0x874]
add esp, 0xc
push 0
push 0
lea edx, [esp + 0x558]
call fcn.004d4440
test eax, eax
jne 0x482341
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x874], eax
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret