Function at 0x481880
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.0041ef30
mov edx, 0x3e7
lea ecx, [esp + 0x550]
call fcn.0041ef30
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 0x481b5e
jmp 0x4818f0
test byte [esp + 0x28], 0x10
lea ecx, [esp + 0x54]
je 0x4819b7
push 0x584508
push ecx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x481b43
lea edx, [esp + 0x54]
push 0x587914
push edx
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x481949
lea eax, [ebx + 0x648]
push eax
lea ecx, [ebx + 0x544]
push ecx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x481b43
xor eax, eax
jmp 0x481950
mov cl, byte [esp + eax + 0x54]
mov byte [esp + eax + 0x168], cl
inc eax
test cl, cl
jne 0x481950
mov eax, dword [ebx + 0x86c]
test eax, eax
jne 0x481984
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x481972
mov dx, word [0x58445c]
mov word [edi], dx
lea eax, [esp + 0x168]
push eax
call fcn.005810da
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
lea edx, [esp + 0x16c]
call fcn.004c7e10
test eax, eax
je 0x481d77
mov dword [esp + 0x14], eax
jmp 0x481b43
push str.dirinfo.srv
push ecx
call fcn.005809c6
add esp, 8
test eax, eax
je 0x481b43
xor eax, eax
nop
mov cl, byte [esp + eax + 0x54]
mov byte [esp + eax + 0x168], cl
inc eax
test cl, cl
jne 0x4819d0
mov eax, dword [ebx + 0x86c]
test eax, eax
jne 0x481af1
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 0x481a1f
push eax
lea edx, [esp + 0x554]
push str._ld_b
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x481a40
fild dword [esp + 0x20]
push 1
push 0
push 1
sub esp, 8
mov edx, 1
fstp qword [esp]
lea ecx, [esp + 0x564]
call fcn.004f5d50
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x481a48
mov ax, word [0x5878f8]
mov cl, byte [0x5878fa]
mov word [edi], ax
lea eax, [esp + 0x550]
mov byte [edi + 2], cl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x481a70
sub eax, edx
mov esi, eax
lea eax, [esp + 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x481a85
sub eax, edx
add eax, esi
cmp eax, 0x17
jae 0x481ad0
mov bp, word [0x5842b8]
lea esp, [esp]
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x481aa8
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 0x481ac0
sub eax, edx
add eax, esi
cmp eax, 0x17
jb 0x481aa0
lea edx, [esp + 0x550]
push edx
mov edx, 0x3e7
lea ecx, [esp + 0x16c]
call fcn.0041eea0
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x168]
push eax
call fcn.00580fc6
mov eax, dword [ebx + 0x86c]
add esp, 4
test eax, eax
jne 0x481b25
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x481b13
mov cx, word [0x58445c]
mov word [edi], cx
push 0
lea edx, [esp + 0x16c]
mov ecx, ebp
call fcn.004c7e10
test eax, eax
je 0x481d77
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 0x4818f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
xor edx, edx
mov ecx, ebp
call fcn.0051f5e0
mov ecx, dword [esp + 0x14]
push 0
xor edx, edx
mov esi, eax
call fcn.0051f5e0
push esi
xor edx, edx
mov ecx, eax
call fcn.004c8060
mov ecx, dword [ebx + 0x86c]
test ecx, ecx
mov dword [ebx + 0x874], eax
je 0x481d05
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 0x481d05
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 0x481bc0
lea eax, [esp + 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x481bd4
sub eax, edx
cmp eax, 0xf
jae 0x481c1e
mov si, word [0x5842b8]
lea esp, [esp]
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x481bf8
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 0x481c10
sub eax, edx
cmp eax, 0xf
jb 0x481bf0
lea ecx, [esp + 0x168]
push ecx
mov edx, 0x3e7
lea ecx, [esp + 0x554]
call fcn.0041eea0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x864]
inc ebp
lea edi, [esp + 0x550]
dec edi
cmp ebp, eax
jl 0x481c93
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x481c50
mov ax, word [0x58445c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x874]
push 0
lea edx, [esp + 0x554]
mov word [edi], ax
call fcn.004c7e10
test eax, eax
je 0x481d77
mov dword [esi + 0x874], eax
mov byte [esp + 0x550], 0
xor ebp, ebp
jmp 0x481cae
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x481c93
mov cx, word [0x5878f8]
mov dl, byte [0x5878fa]
mov word [edi], cx
mov byte [edi + 2], dl
mov ecx, ebx
call fcn.004c7f30
mov ebx, eax
test ebx, ebx
jne 0x481bb4
mov al, byte [esp + 0x550]
test al, al
je 0x481d05
lea edi, [esp + 0x550]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x481cd2
mov ax, word [0x58445c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x874]
push 0
lea edx, [esp + 0x554]
mov word [edi], ax
call fcn.004c7e10
test eax, eax
je 0x481d77
mov dword [esi + 0x874], eax
push 0
xor edx, edx
mov ecx, 0xa29
call fcn.0041d620
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x874]
mov edx, eax
call fcn.004c7e10
test eax, eax
je 0x481d77
mov dword [esi + 0x874], eax
lea eax, [esi + 0x544]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x481d37
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.004c8960
test eax, eax
jne 0x481d81
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