Function at 0x47dd60
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.0041e210
mov edx, 0x3e7
lea ecx, [esp + 0x550]
call fcn.0041e210
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 0x47e03e
jmp 0x47ddd0
test byte [esp + 0x28], 0x10
lea ecx, [esp + 0x54]
je 0x47de97
push 0x5754a0
push ecx
call fcn.00572b46
add esp, 8
test eax, eax
je 0x47e023
lea edx, [esp + 0x54]
push 0x5786a8
push edx
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x47de29
lea eax, [ebx + 0x648]
push eax
lea ecx, [ebx + 0x544]
push ecx
call fcn.00572b46
add esp, 8
test eax, eax
je 0x47e023
xor eax, eax
jmp 0x47de30
mov cl, byte [esp + eax + 0x54]
mov byte [esp + eax + 0x168], cl
inc eax
test cl, cl
jne 0x47de30
mov eax, dword [ebx + 0x86c]
test eax, eax
jne 0x47de64
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47de52
mov dx, word [0x575404]
mov word [edi], dx
lea eax, [esp + 0x168]
push eax
call fcn.00572cd9
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
lea edx, [esp + 0x16c]
call fcn.004c2560
test eax, eax
je 0x47e257
mov dword [esp + 0x14], eax
jmp 0x47e023
push str.dirinfo.srv
push ecx
call fcn.00572b46
add esp, 8
test eax, eax
je 0x47e023
xor eax, eax
nop
mov cl, byte [esp + eax + 0x54]
mov byte [esp + eax + 0x168], cl
inc eax
test cl, cl
jne 0x47deb0
mov eax, dword [ebx + 0x86c]
test eax, eax
jne 0x47dfd1
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 0x47deff
push eax
lea edx, [esp + 0x554]
push str._ld_b
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x47df20
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.004ee9d0
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47df28
mov ax, word [0x57868c]
mov cl, byte [0x57868e]
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 0x47df50
sub eax, edx
mov esi, eax
lea eax, [esp + 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47df65
sub eax, edx
add eax, esi
cmp eax, 0x17
jae 0x47dfb0
mov bp, word [0x575258]
lea esp, [esp]
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47df88
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 0x47dfa0
sub eax, edx
add eax, esi
cmp eax, 0x17
jb 0x47df80
lea edx, [esp + 0x550]
push edx
mov edx, 0x3e7
lea ecx, [esp + 0x16c]
call fcn.0041e180
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x168]
push eax
call fcn.00572bde
mov eax, dword [ebx + 0x86c]
add esp, 4
test eax, eax
jne 0x47e005
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47dff3
mov cx, word [0x575404]
mov word [edi], cx
push 0
lea edx, [esp + 0x16c]
mov ecx, ebp
call fcn.004c2560
test eax, eax
je 0x47e257
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 0x47ddd0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
xor edx, edx
mov ecx, ebp
call fcn.00517550
mov ecx, dword [esp + 0x14]
push 0
xor edx, edx
mov esi, eax
call fcn.00517550
push esi
xor edx, edx
mov ecx, eax
call fcn.004c27b0
mov ecx, dword [ebx + 0x86c]
test ecx, ecx
mov dword [ebx + 0x874], eax
je 0x47e1e5
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 0x47e1e5
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 0x47e0a0
lea eax, [esp + 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47e0b4
sub eax, edx
cmp eax, 0xf
jae 0x47e0fe
mov si, word [0x575258]
lea esp, [esp]
lea edi, [esp + 0x168]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47e0d8
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 0x47e0f0
sub eax, edx
cmp eax, 0xf
jb 0x47e0d0
lea ecx, [esp + 0x168]
push ecx
mov edx, 0x3e7
lea ecx, [esp + 0x554]
call fcn.0041e180
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x864]
inc ebp
lea edi, [esp + 0x550]
dec edi
cmp ebp, eax
jl 0x47e173
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47e130
mov ax, word [0x575404]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x874]
push 0
lea edx, [esp + 0x554]
mov word [edi], ax
call fcn.004c2560
test eax, eax
je 0x47e257
mov dword [esi + 0x874], eax
mov byte [esp + 0x550], 0
xor ebp, ebp
jmp 0x47e18e
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47e173
mov cx, word [0x57868c]
mov dl, byte [0x57868e]
mov word [edi], cx
mov byte [edi + 2], dl
mov ecx, ebx
call fcn.004c2680
mov ebx, eax
test ebx, ebx
jne 0x47e094
mov al, byte [esp + 0x550]
test al, al
je 0x47e1e5
lea edi, [esp + 0x550]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x47e1b2
mov ax, word [0x575404]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x874]
push 0
lea edx, [esp + 0x554]
mov word [edi], ax
call fcn.004c2560
test eax, eax
je 0x47e257
mov dword [esi + 0x874], eax
push 0
xor edx, edx
mov ecx, 0xa29
call fcn.0041c9e0
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x874]
mov edx, eax
call fcn.004c2560
test eax, eax
je 0x47e257
mov dword [esi + 0x874], eax
lea eax, [esi + 0x544]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47e217
mov ecx, dword [esp + 0x24]
sub eax, edx
add eax, ecx
push eax
lea edx, [esp + 0x554]
push 0x574b70
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.004c2f40
test eax, eax
jne 0x47e261
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