Function at 0x482f40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517337
mov eax, dword fs:[0]
push eax
sub esp, 0x700
mov eax, dword [0x577680]
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 - 0x6dc], ecx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6b8]
xor ebx, ebx
push esi
push eax
mov dword [ebp - 0x6d4], edi
mov dword [ebp - 0x70c], edi
mov dword [ebp - 0x6f4], esi
mov dword [ebp - 0x6ac], ebx
mov dword [ebp - 0x6b4], ebx
call fcn.0040e340
add esp, 8
mov ecx, dword [ebp - 0x6b8]
mov dword [ebp - 4], ebx
cmp dword [ecx - 0xc], ebx
je 0x48301c
mov eax, dword [0x578ad4]
imul eax, eax
cdq
mov esi, 0xe
idiv esi
mov eax, dword [0x579db8]
mov esi, 0xc5228bb2
cmp edx, 6
cmove eax, esi
add ecx, 0xfffffff0
push ecx
mov dword [0x579db8], eax
call fcn.004056f0
mov esi, dword [ebp - 0x6b8]
add eax, 0x10
add esi, 0xfffffff0
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x483015
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x483a16
push str.databases_
lea eax, [ebp - 0x6c4]
push esi
push eax
call fcn.00402b40
push 0x534f78
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x6e8]
push eax
mov byte [ebp - 4], 1
call fcn.00402b40
add esp, 0x18
lea ecx, [ebp - 0x6a8]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x6e8]
add esi, 0xfffffff0
or edi, 0xffffffff
mov dword [ebp - 0x6d0], eax
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48308a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x6d0]
cmp eax, 0xffffffff
je 0x48397c
mov esi, 0xd
jmp 0x4830a0
test byte [ebp - 0x6a8], 0x10
je 0x48311e
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x6d8]
call fcn.00401c30
or ebx, 2
push 0x52afb8
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x6ac], ebx
mov dword [ebp - 0x6b4], ebx
call fcn.0047a200
add esp, 8
test al, al
je 0x48311e
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x6e0]
call fcn.00401c30
or ebx, 4
push 0x534584
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x6ac], ebx
mov dword [ebp - 0x6b4], ebx
call fcn.0047a200
add esp, 8
test al, al
je 0x48311e
mov bl, 1
jmp 0x483120
xor bl, bl
mov eax, dword [ebp - 0x6ac]
mov dword [ebp - 4], 2
test al, 4
je 0x483165
mov edx, dword [ebp - 0x6e0]
and eax, 0xfffffffb
add edx, 0xfffffff0
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6b4], eax
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48315f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x6ac]
mov dword [ebp - 4], 1
test al, 2
je 0x483198
mov edx, dword [ebp - 0x6d8]
and eax, 0xfffffffd
add edx, 0xfffffff0
mov dword [ebp - 0x6ac], eax
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x483198
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x48380b
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x6f8]
call fcn.00401c30
push eax
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x6f0]
push eax
mov byte [ebp - 4], 4
call fcn.00402a80
push 0x52a1a0
push eax
lea eax, [ebp - 0x6bc]
push eax
mov byte [ebp - 4], 5
call fcn.00402b40
add esp, 0x18
mov edx, dword [ebp - 0x6f0]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x483206
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6f8]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x483229
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00493960
test al, al
jne 0x483261
mov ecx, dword [0x578ad4]
mov eax, ecx
sub eax, 0
je 0x483257
dec eax
je 0x48324b
inc ecx
mov dword [0x578ad4], ecx
jmp 0x483261
mov dword [0x578ad4], 0
jmp 0x483261
mov dword [0x578ad4], 2
push 0x534f78
lea eax, [ebp - 0x6bc]
push eax
lea eax, [ebp - 0x6ec]
push eax
call fcn.00402b40
add esp, 0xc
lea ecx, [ebp - 0x458]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x6ec]
add esi, 0xfffffff0
mov ebx, eax
mov dword [ebp - 0x6e4], ebx
lea ecx, [esi + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4832b2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xffffffff
je 0x4837d4
jmp 0x4832c0
test byte [ebp - 0x458], 0x10
jne 0x483424
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6c0], eax
lea edi, [ebp - 0x42c]
shr edi, 0x10
mov byte [ebp - 4], 9
test edi, edi
jne 0x48331a
lea eax, [ebp - 0x42c]
movzx esi, ax
push edi
push esi
call fcn.00403070
add esp, 8
test eax, eax
je 0x483345
push esi
push eax
lea ecx, [ebp - 0x6c0]
call fcn.00408b00
jmp 0x483345
lea ecx, [ebp - 0x42c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x483323
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x6c0]
call fcn.0040c730
mov ebx, dword [ebp - 0x6ac]
lea eax, [ebp - 0x6c0]
or ebx, 8
push 0x52afb8
push eax
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x6ac], ebx
mov dword [ebp - 0x6b4], ebx
call fcn.0047a200
add esp, 8
test al, al
je 0x483424
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6c8], eax
mov dword [ebp - 4], 0xb
test edi, edi
jne 0x4833c1
lea eax, [ebp - 0x42c]
movzx esi, ax
push edi
push esi
call fcn.00403070
add esp, 8
test eax, eax
je 0x4833f2
push esi
push eax
lea ecx, [ebp - 0x6c8]
call fcn.00408b00
jmp 0x4833f2
lea ecx, [ebp - 0x42c]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4833d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x6c8]
call fcn.0040c730
lea eax, [ebp - 0x6c8]
or ebx, 0x10
push 0x534584
push eax
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x6ac], ebx
mov dword [ebp - 0x6b4], ebx
call fcn.0047a200
add esp, 8
test al, al
je 0x483424
mov bl, 1
jmp 0x483426
xor bl, bl
mov eax, dword [ebp - 0x6ac]
or edi, 0xffffffff
mov dword [ebp - 4], 0xa
test al, 0x10
je 0x48346e
mov edx, dword [ebp - 0x6c8]
and eax, 0xffffffef
add edx, 0xfffffff0
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6b4], eax
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x483468
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x6ac]
mov dword [ebp - 4], 8
test al, 8
je 0x4834a1
mov edx, dword [ebp - 0x6c0]
and eax, 0xfffffff7
add edx, 0xfffffff0
mov dword [ebp - 0x6ac], eax
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4834a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4837b8
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x6bc]
push eax
lea eax, [ebp - 0x6cc]
push eax
call fcn.00402b40
add esp, 0xc
mov ecx, dword [ebp - 0x6dc]
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x6b0]
push eax
mov byte [ebp - 4], 0xd
call fcn.0048e810
mov eax, dword [ebp - 0x6b0]
mov byte [ebp - 4], 0xe
cmp dword [eax - 0xc], 0
je 0x483778
lea ecx, [ebp - 0x1f0]
call fcn.0046d2e0
push 0
lea ecx, [ebp - 0x708]
mov byte [ebp - 4], 0xf
call fcn.004707b0
mov ecx, dword [0x578ad4]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 9
idiv ecx
mov byte [ebp - 4], 0x10
cmp edx, 4
jne 0x483566
push 0x28
call fcn.004ef820
add esp, 4
mov edi, eax
xor esi, esi
call fcn.004f1791
add eax, dword [0x578ad4]
inc esi
mov dword [edi + esi*4 - 4], eax
cmp esi, 0xa
jl 0x483540
mov eax, dword [edi + 0x24]
push edi
mov dword [0x578ad4], eax
call fcn.004f0683
add esp, 4
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0049acd0
add esp, 8
push 1
lea ecx, [ebp - 0x708]
push ecx
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x11
call fcn.0046eac0
cmp dword [ebp - 0x1f4], 0x10
mov bl, al
mov byte [ebp - 4], 0x10
jb 0x4835b2
push dword [ebp - 0x208]
call fcn.004f03fe
add esp, 4
test bl, bl
je 0x4835d5
push 0x534f7c
lea ecx, [ebp - 0x708]
call fcn.00470d60
mov ecx, eax
call fcn.00472030
test al, al
jne 0x483855
mov eax, dword [0x578ad4]
imul eax, eax
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 6
jne 0x483655
xor esi, esi
lea esp, [esp]
call fcn.004f1791
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc esi
movsd qword [ebp + esi*8 - 0x188], xmm0
cmp esi, 0x2e
jb 0x4835f0
xor ecx, ecx
mov edi, edi
mov eax, 0x2d
cmp ecx, eax
jge 0x48364f
lea esp, [esp]
movsd xmm0, qword [ebp + eax*8 - 0x180]
movsd xmm1, qword [ebp + eax*8 - 0x188]
comisd xmm0, xmm1
jbe 0x48364a
movsd qword [ebp + eax*8 - 0x180], xmm1
movsd qword [ebp + eax*8 - 0x188], xmm0
dec eax
cmp eax, ecx
jg 0x483620
inc ecx
cmp ecx, 0x2e
jl 0x483610
lea ecx, [ebp - 0x708]
mov byte [ebp - 4], 0xf
call fcn.00470ad0
cmp dword [ebp - 0x188], 0x10
jb 0x48367b
push dword [ebp - 0x19c]
call fcn.004f03fe
add esp, 4
cmp dword [ebp - 0x1b4], 0x10
mov dword [ebp - 0x188], 0xf
mov dword [ebp - 0x18c], 0
mov byte [ebp - 0x19c], 0
jb 0x4836ad
push dword [ebp - 0x1c8]
call fcn.004f03fe
add esp, 4
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x1b4], 0xf
mov dword [ebp - 0x1b8], 0
mov byte [ebp - 0x1c8], 0
call fcn.0040cc80
push dword [ebp - 0x1dc]
call fcn.004f03fe
mov eax, dword [ebp - 0x1e0]
add esp, 4
mov dword [ebp - 0x1dc], 0
test eax, eax
je 0x483714
mov ecx, dword [ebp - 0x1e4]
dec eax
mov edx, 0
cmove ecx, edx
mov dword [ebp - 0x1e4], ecx
test eax, eax
jne 0x4836fb
mov dword [ebp - 0x1e0], eax
mov esi, dword [ebp - 0x1e8]
mov ecx, dword [ebp - 0x1ec]
test esi, esi
je 0x483740
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x48373c
push eax
call fcn.004f03fe
mov ecx, dword [ebp - 0x1ec]
add esp, 4
test esi, esi
jne 0x483724
test ecx, ecx
je 0x48374d
push ecx
call fcn.004f03fe
add esp, 4
push dword [ebp - 0x1f0]
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1ec], 0
call fcn.004f03fe
mov eax, dword [ebp - 0x6b0]
add esp, 4
or edi, 0xffffffff
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x483795
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6cc]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4837b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x6e4]
lea eax, [ebp - 0x458]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4832c0
call fcn.00493a90
test al, al
jne 0x4837e3
dec dword [0x579e88]
mov edx, dword [ebp - 0x6bc]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x483806
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 0xd
lea eax, [ebp - 0x6a8]
push eax
push dword [ebp - 0x6d0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x48397c
mov edx, dword [0x578ad4]
mov ebx, dword [ebp - 0x6ac]
lea eax, [edx + 2]
lea ecx, [edx + 1]
imul eax, ecx
imul eax, edx
cdq
idiv esi
cmp edx, 0xc
jne 0x4830a0
inc dword [0x57a0a0]
jmp 0x4830a0
push 0x534f7c
lea ecx, [ebp - 0x708]
call fcn.00470d60
mov ecx, eax
call fcn.00471820
push eax
lea ecx, [ebp - 0x6b0]
call fcn.004027b0
lea eax, [ebp - 0x6b0]
push eax
push eax
call fcn.004155c0
lea eax, [ebp - 0x6b0]
push eax
push dword [ebp - 0x6f4]
call fcn.00410110
mov eax, dword [ebp - 0x6b0]
add eax, 0xfffffff0
push eax
call fcn.004056f0
mov ebx, dword [ebp - 0x6d4]
add eax, 0x10
add esp, 0x14
lea ecx, [ebp - 0x708]
mov dword [ebx], eax
mov byte [ebp - 4], 0xf
call fcn.00470ad0
lea ecx, [ebp - 0x1f0]
call fcn.00402630
mov edx, dword [ebp - 0x6b0]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4838f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6cc]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x483917
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6bc]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48393a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6c4]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48395d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6b8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jmp 0x483a0a
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x6d4]
add eax, 0x10
mov dword [ebx], eax
mov eax, 0x52e4a0
mov byte [ebp - 4], 0x12
push 0
test eax, 0xffff0000
jne 0x4839c1
movzx esi, ax
push esi
call fcn.00403070
add esp, 8
test eax, eax
je 0x4839cd
push esi
push eax
mov ecx, ebx
call fcn.00408b00
jmp 0x4839cd
push 0x52e4a0
mov ecx, ebx
call fcn.0040c730
mov edx, dword [ebp - 0x6c4]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4839f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6b8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x483a14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.004f0cd4
mov esp, ebp
pop ebp
ret 8