Function at 0x4a5fb0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5092bb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x541074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c4], ecx
test edx, edx
jne 0x4a5fef
xor eax, eax
jmp 0x4a649f
push edx
lea ecx, [ebp - 0x58]
call fcn.00402d60
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
jne 0x4a600d
xor edi, edi
jmp 0x4a6488
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x58]
mov esi, dword [ebp - 0x58]
cmp edx, 8
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x2f
lea eax, [ebp - 0x58]
jne 0x4a6039
cmp edx, 8
mov edx, 0x5c
cmovae eax, esi
mov word [eax + ecx*2 - 2], dx
jmp 0x4a6054
cmp edx, 8
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4a6054
push 0x51bb3c
lea ecx, [ebp - 0x58]
call fcn.004046f0
xor esi, esi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2c0], esi
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b8], eax
push 0x51bb4c
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404d30
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4a6097
mov eax, dword [eax]
lea ecx, [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4a60bc
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403ab0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp edi, 0xffffffff
je 0x4a6195
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
test byte [ebp - 0x2a8], 0x10
jne 0x4a615e
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x27c], ax
jne 0x4a610a
xor ecx, ecx
jmp 0x4a6122
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6113
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402f90
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2c0]
call fcn.004072f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a615e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403ab0
lea eax, [ebp - 0x2a8]
push eax
push edi
call esi
test eax, eax
jne 0x4a60e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x2b8]
mov esi, dword [ebp - 0x2c0]
mov ebx, dword [ebp - 0x2bc]
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b0], esi
mov ecx, ebx
mov dword [ebp - 0x2ac], 0x4a5f80
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
lea eax, [ebp - 0x2ac]
mov ecx, esi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, ebx
push eax
push edi
mov dword [ebp - 0x2cc], edi
call fcn.004a8290
xor ebx, ebx
add esp, 8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
test edi, edi
je 0x4a639f
mov ebx, dword [ebp - 0x2cc]
mov edi, esi
nop dword [eax]
push edi
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
call fcn.00407ad0
add esp, 4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x4a620b
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c4]
mov edx, eax
call fcn.004a76c0
mov esi, eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4a6233
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403ab0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test esi, esi
je 0x4a626c
cmp dword [esi + 0x1c], eax
jbe 0x4a6264
push dword [esi + 0x24]
lea ecx, [ebp - 0x1c]
call fcn.00409560
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
add edi, 0x18
sub ebx, 1
jne 0x4a61f0
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
cmp ebx, esi
je 0x4a639f
push 0x28
call fcn.004c8893
mov edi, eax
sub esi, ebx
mov dword [ebp - 0x2c4], edi
xor ecx, ecx
sar esi, 2
mov eax, esi
mov dword [ebp - 0x2ac], esi
mov dword [edi + 0x1c], esi
mov esi, 4
mul esi
mov dword [edi], vtable.ui::tagTImageInfo.0
mov dword [edi + 8], 0
seto cl
mov dword [edi + 0xc], 0
neg ecx
mov dword [edi + 0x10], 0x60
or ecx, eax
mov dword [edi + 0x14], 0x60
push ecx
mov dword [edi + 0x18], 0
mov byte [edi + 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.004c8b41
mov dword [edi + 0x20], eax
xor ecx, ecx
mov eax, dword [edi + 0x1c]
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c8b41
mov ecx, eax
mov eax, dword [edi + 0x1c]
shl eax, 2
push eax
push 0
push ecx
mov dword [edi + 0x24], ecx
call fcn.004e2480
mov eax, dword [edi + 0x1c]
shl eax, 2
push eax
push 0
push dword [edi + 0x20]
call fcn.004e2480
xor esi, esi
add esp, 0x24
cmp dword [ebp - 0x2ac], esi
jbe 0x4a63a1
nop
test esi, esi
jne 0x4a637b
mov eax, dword [ebx]
lea edx, [ebp - 0x2c8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
movss xmm0, dword [eax]
call fcn.004c93d0
mov dword [edi + 8], eax
lea edx, [ebp - 0x2d0]
mov eax, dword [ebx]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
movss xmm0, dword [eax + 4]
call fcn.004c93d0
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0x24]
xor edx, edx
mov eax, dword [ebx + esi*4]
mov dword [ecx + esi*4], eax
mov eax, 0x3e8
div dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0x2ac]
jb 0x4a6340
jmp 0x4a63a1
xor edi, edi
test ebx, ebx
je 0x4a63fa
mov eax, dword [ebp - 0x14]
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x4a63b9
call fcn.004e4e85
shl eax, 2
cmp eax, 0x1000
jb 0x4a63f1
test bl, 0x1f
je 0x4a63cd
call fcn.004e4e85
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x4a63d9
call fcn.004e4e85
sub ebx, eax
cmp ebx, 4
jae 0x4a63e5
call fcn.004e4e85
cmp ebx, 0x23
jbe 0x4a63ef
call fcn.004e4e85
mov ebx, eax
push ebx
call fcn.004c8b2e
add esp, 4
mov ebx, dword [ebp - 0x2b0]
test ebx, ebx
je 0x4a6488
push dword [ebp - 0x2c4]
mov edx, dword [ebp - 0x2bc]
push ecx
mov ecx, ebx
call fcn.00408010
mov ecx, dword [ebp - 0x2b4]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x4a6444
call fcn.004e4e85
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x4a647f
test bl, 0x1f
je 0x4a645b
call fcn.004e4e85
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x4a6467
call fcn.004e4e85
sub ebx, eax
cmp ebx, 4
jae 0x4a6473
call fcn.004e4e85
cmp ebx, 0x23
jbe 0x4a647d
call fcn.004e4e85
mov ebx, eax
push ebx
call fcn.004c8b2e
add esp, 4
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x4a649d
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00403ab0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8882
mov esp, ebp
pop ebp
ret