Function at 0x47d050
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f47f
mov eax, dword fs:[0]
push eax
sub esp, 0x588
mov eax, dword [0x567680]
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 - 0x574], ecx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x558]
push esi
xor ebx, ebx
push eax
mov dword [ebp - 0x56c], edi
mov dword [ebp - 0x578], esi
mov dword [ebp - 0x548], ebx
call fcn.0040cee0
add esp, 8
mov eax, dword [ebp - 0x558]
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x47d0fb
add eax, 0xfffffff0
push eax
call fcn.00405030
mov esi, dword [ebp - 0x558]
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 0x47d0f4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x47d7ee
push str.databases_
lea eax, [ebp - 0x55c]
push esi
push eax
call fcn.00402b60
push 0x5251f8
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x57c]
push eax
mov byte [ebp - 4], 1
call fcn.00402b60
add esp, 0x18
lea ecx, [ebp - 0x2e8]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x57c]
add esi, 0xfffffff0
or edi, 0xffffffff
mov dword [ebp - 0x568], eax
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47d169
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x568]
cmp eax, 0xffffffff
je 0x47d793
test byte [ebp - 0x2e8], 0x10
je 0x47d252
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x560], eax
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x47d1c7
movzx esi, ax
push 0
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x47d1f2
push esi
push eax
lea ecx, [ebp - 0x560]
call fcn.004082e0
jmp 0x47d1f2
lea ecx, [ebp - 0x2bc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d1d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x560]
call fcn.0040b9d0
lea eax, [ebp - 0x560]
push 0x51b238
or ebx, 2
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x548], ebx
call fcn.004753d0
add esp, 8
test al, al
je 0x47d252
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x584]
call fcn.00401c30
push 0x524808
or ebx, 4
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x548], ebx
call fcn.004753d0
add esp, 8
mov byte [ebp - 0x539], 1
test al, al
jne 0x47d259
mov byte [ebp - 0x539], 0
mov dword [ebp - 4], 3
test bl, 4
je 0x47d28d
mov edx, dword [ebp - 0x584]
add edx, 0xfffffff0
and ebx, 0xfffffffb
mov dword [ebp - 0x548], ebx
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d28d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
test bl, 2
je 0x47d2bb
mov edx, dword [ebp - 0x560]
add edx, 0xfffffff0
and ebx, 0xfffffffd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d2bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x539], 0
je 0x47d778
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x544], eax
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 5
test eax, 0xffff0000
jne 0x47d310
movzx esi, ax
push 0
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x47d342
push esi
push eax
lea ecx, [ebp - 0x544]
call fcn.004082e0
jmp 0x47d342
lea ecx, [ebp - 0x2bc]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d320
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x544]
call fcn.0040b9d0
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x580]
push eax
mov byte [ebp - 4], 6
call fcn.00402aa0
push 0x51a434
push eax
lea eax, [ebp - 0x54c]
push eax
mov byte [ebp - 4], 7
call fcn.00402b60
add esp, 0x18
mov edx, dword [ebp - 0x580]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d39c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x544]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d3bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5251f8
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x570]
push eax
call fcn.00402b60
add esp, 0xc
lea ecx, [ebp - 0x538]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x570]
add esi, 0xfffffff0
mov dword [ebp - 0x544], eax
lea ecx, [esi + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d414
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x544]
cmp eax, 0xffffffff
je 0x47d755
lea ecx, [ecx]
test byte [ebp - 0x538], 0x10
jne 0x47d571
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x554], eax
lea edi, [ebp - 0x50c]
shr edi, 0x10
mov byte [ebp - 4], 0xb
test edi, edi
jne 0x47d47a
lea eax, [ebp - 0x50c]
movzx esi, ax
push edi
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x47d4a5
push esi
push eax
lea ecx, [ebp - 0x554]
call fcn.004082e0
jmp 0x47d4a5
lea ecx, [ebp - 0x50c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d483
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x50c]
push eax
lea ecx, [ebp - 0x554]
call fcn.0040b9d0
lea eax, [ebp - 0x554]
push 0x51b238
or ebx, 8
push eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x548], ebx
call fcn.004753d0
add esp, 8
test al, al
je 0x47d571
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x550], eax
mov dword [ebp - 4], 0xd
lea eax, [ebp - 0x50c]
test edi, edi
jne 0x47d515
movzx esi, ax
push edi
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x47d542
push esi
push eax
lea ecx, [ebp - 0x550]
call fcn.004082e0
jmp 0x47d542
lea edx, [eax + 2]
jmp 0x47d520
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d520
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x50c]
push eax
lea ecx, [ebp - 0x550]
call fcn.0040b9d0
lea eax, [ebp - 0x550]
push 0x524808
or ebx, 0x10
push eax
mov dword [ebp - 4], 0xe
mov dword [ebp - 0x548], ebx
call fcn.004753d0
add esp, 8
mov byte [ebp - 0x539], 1
test al, al
jne 0x47d578
mov byte [ebp - 0x539], 0
or edi, 0xffffffff
mov dword [ebp - 4], 0xc
test bl, 0x10
je 0x47d5af
mov edx, dword [ebp - 0x550]
add edx, 0xfffffff0
and ebx, 0xffffffef
mov dword [ebp - 0x548], ebx
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d5af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xa
test bl, 8
je 0x47d5dd
mov edx, dword [ebp - 0x554]
add edx, 0xfffffff0
and ebx, 0xfffffff7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d5dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x539], 0
je 0x47d73a
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x564]
push eax
call fcn.00402b60
add esp, 0xc
mov ecx, dword [ebp - 0x574]
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x540]
push eax
mov byte [ebp - 4], 0xf
call fcn.00487720
mov eax, dword [ebp - 0x540]
mov byte [ebp - 4], 0x10
cmp dword [eax - 0xc], 0
je 0x47d6fa
lea ecx, [ebp - 0x98]
call fcn.00468510
push 0
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 0x11
call fcn.0046b9e0
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0x12
call fcn.00493510
add esp, 8
push 1
lea ecx, [ebp - 0x594]
push ecx
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x13
call fcn.00469cf0
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 0x539], al
mov byte [ebp - 4], 0x12
jb 0x47d6a5
push dword [ebp - 0x28]
call fcn.004e8c3e
mov al, byte [ebp - 0x539]
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
test al, al
je 0x47d6da
push 0x5251fc
lea ecx, [ebp - 0x594]
call fcn.0046bf90
mov ecx, eax
call fcn.0046d270
test al, al
jne 0x47d80c
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 0x11
call fcn.0046bd00
lea ecx, [ebp - 0x98]
call fcn.00402650
mov eax, dword [ebp - 0x540]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d717
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x564]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d73a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x538]
push eax
push dword [ebp - 0x544]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47d420
mov edx, dword [ebp - 0x54c]
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 0x47d778
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x2e8]
push eax
push dword [ebp - 0x568]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47d172
mov esi, dword [ebp - 0x56c]
push 0x51707c
mov ecx, esi
call fcn.00401c30
mov edx, dword [ebp - 0x55c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d7c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x558]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x47d7ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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.004e9514
mov esp, ebp
pop ebp
ret 8
push 0x5251fc
lea ecx, [ebp - 0x594]
call fcn.0046bf90
mov ecx, eax
call fcn.0046c650
push eax
lea ecx, [ebp - 0x540]
call fcn.004027d0
lea eax, [ebp - 0x540]
push eax
push eax
call fcn.00413230
lea eax, [ebp - 0x540]
push eax
push dword [ebp - 0x578]
call fcn.0040e9c0
mov eax, dword [ebp - 0x540]
add eax, 0xfffffff0
push eax
call fcn.00405030
mov esi, dword [ebp - 0x56c]
add eax, 0x10
add esp, 0x14
lea ecx, [ebp - 0x594]
mov dword [esi], eax
mov byte [ebp - 4], 0x11
call fcn.0046bd00
lea ecx, [ebp - 0x98]
call fcn.00402650
mov edx, dword [ebp - 0x540]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d8a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x564]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d8cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54c]
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 0x47d7a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47d7a5