Function at 0x482470
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x565680]
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 - 0x494], ecx
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x478], ebx
call fcn.004e67c0
push 0x524a48
lea eax, [ebp - 0x490]
push ebx
push eax
call fcn.00402ae0
add esp, 0x18
mov edx, dword [0x566ac0]
mov dword [ebp - 4], 0
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 8
jne 0x48250d
call fcn.004e5d44
mov dword [0x566ac0], eax
mov esi, dword [ebp - 0x490]
lea ecx, [ebp - 0x218]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x482540
movzx eax, word [esi + ecx]
test ax, ax
je 0x482540
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x482522
jmp 0x482544
test edx, edx
jne 0x482547
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
or ecx, 0xffffffff
mov dword [ebp - 0x470], ebx
cmp ebx, ecx
jne 0x482576
xor bl, bl
jmp 0x482a8d
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 0
lea edi, [ebp - 0x43c]
shr edi, 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x474], edi
jmp 0x4825b0
mov eax, dword [0x5651b8]
mov ecx, 0x5651b8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x46c], esi
mov byte [ebp - 4], 2
test edi, edi
jne 0x4825f5
lea eax, [ebp - 0x43c]
movzx edi, ax
push 0
push edi
call fcn.00402f50
add esp, 8
test eax, eax
je 0x482628
push edi
push eax
lea ecx, [ebp - 0x46c]
call fcn.004073a0
jmp 0x482622
lea ecx, [ebp - 0x43c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482600
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x46c]
call fcn.00409940
mov esi, dword [ebp - 0x46c]
mov byte [ebp - 4], 3
mov ecx, 0x519ba0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x482659
test dx, dx
je 0x482655
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x482659
add eax, 4
add ecx, 4
test dx, dx
jne 0x482633
xor eax, eax
jmp 0x48265e
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x482790
mov ecx, 0x524a4c
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x482698
test dx, dx
je 0x482694
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x482698
add eax, 4
add ecx, 4
test dx, dx
jne 0x482672
xor eax, eax
jmp 0x48269d
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x482790
test byte [ebp - 0x468], 0x10
jne 0x482790
cmp dword [esi - 0xc], 0
jl 0x482790
push str..sqlite
push esi
call fcn.004e5f62
add esp, 8
test eax, eax
je 0x482790
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x482790
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x478]
lea eax, [ebp - 0x48c]
push eax
call fcn.00402a20
add esp, 0xc
mov ecx, dword [ebp - 0x494]
push eax
mov byte [ebp - 4], 4
call fcn.004807a0
mov edi, dword [ebp - 0x48c]
add edi, 0xfffffff0
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x482736
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x48278a
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x478]
lea eax, [ebp - 0x47c]
push eax
call fcn.00402a20
add esp, 0xc
push eax
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 5
call fcn.00420910
mov edx, dword [ebp - 0x47c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48278a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x470]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4827ae
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x468]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [ebp - 0x474]
test eax, eax
jne 0x4825b0
test ebx, ebx
je 0x4827d5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x484]
mov edi, dword [ebp - 0x488]
mov ecx, edx
sub ecx, edi
sar ecx, 2
xor eax, eax
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x47c], ecx
test ecx, ecx
jle 0x482a42
mov edi, edi
mov esi, dword [edi + eax*4]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x482829
cmp ecx, dword [esi - 0x10]
jne 0x482829
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x482862
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x482ad1
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004e5e78
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 0x48c], eax
lea esi, [eax - 0x10]
push ecx
mov ecx, dword [esi]
mov byte [ebp - 4], 6
mov eax, dword [ecx]
mov ebx, esp
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x482898
cmp ecx, dword [esi]
jne 0x482898
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4828d4
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x482ad1
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004e5e78
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebx], eax
call fcn.0040dc40
mov ecx, dword [esi]
add esp, 4
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x482904
cmp ecx, dword [esi]
jne 0x482904
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x482940
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x482ad1
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004e5e78
add esp, 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 0x478], eax
push 0x51781c
push str..sqlite
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 7
call fcn.00407680
mov edi, dword [ebp - 0x478]
push 1
push ecx
mov ecx, dword [edi - 0x10]
add edi, 0xfffffff0
mov eax, dword [ecx]
mov dword [ebp - 0x474], esp
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x482998
cmp ecx, dword [edi]
jne 0x482998
mov ebx, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4829d4
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x482ad1
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.004e5e78
add esp, 0x10
mov ecx, dword [ebp - 0x474]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.0040da50
add esp, 8
mov byte [ebp - 4], 6
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x482a02
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x482a1d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x470]
mov edi, dword [ebp - 0x488]
inc eax
mov dword [ebp - 0x470], eax
cmp eax, dword [ebp - 0x47c]
jl 0x482800
mov edx, dword [ebp - 0x484]
mov bl, 1
mov byte [ebp - 4], 0
test edi, edi
je 0x482a8a
mov esi, edi
cmp edi, edx
je 0x482a81
or edi, 0xffffffff
mov edx, dword [esi]
sub edx, 0x10
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x482a70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebp - 0x484]
jne 0x482a55
mov edi, dword [ebp - 0x488]
push edi
call fcn.004e4aa8
add esp, 4
or ecx, 0xffffffff
mov esi, dword [ebp - 0x490]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x482ab1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004e52a4
mov esp, ebp
pop ebp
ret 4
call fcn.00409e90
int3