Function at 0x4907d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50196e
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
movups xmmword [ecx], xmm0
mov esi, dword [edi + 0x2b4]
mov byte [ebp - 0x11], al
mov eax, esi
sub eax, dword [edi + 0x2b0]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], esi
cmp eax, 8
jb 0x490d3d
nop
test dword [edi], 0x400
je 0x49083e
mov dword [edi], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [edi], 0x10
je 0x4908e6
cmp byte [edi + 0x2c1], 0
je 0x4908e6
lea edx, [edi + 0x2c]
mov dword [edi], 0
mov eax, dword [edi + 0x290]
mov ecx, edx
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], eax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490880
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x280]
call fcn.004311c0
push 0x5c
lea ecx, [edi + 0x280]
call fcn.00431680
mov ecx, dword [edi + 0x2b4]
cmp ecx, dword [edi + 0x2b8]
je 0x4908d1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov dword [ecx], edx
mov dword [ecx + 4], eax
lea ecx, [edi + 0x2b0]
add dword [ecx + 4], 8
jmp 0x490c48
lea edx, [ebp - 0x24]
push edx
push ecx
lea ecx, [edi + 0x2b0]
call fcn.0047c870
jmp 0x490c42
mov eax, dword [esi - 4]
test eax, eax
jne 0x490a70
mov eax, dword [edi + 0x290]
add eax, dword [edi + 0x278]
cmp eax, 0xff
jae 0x490912
cmp byte [edi + 0x2c5], 0
mov eax, 0x268
je 0x490917
mov eax, 0x250
add eax, edi
lea esi, [edi + 0x298]
cmp esi, eax
je 0x490938
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x49092d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00431340
cmp dword [edi + 0x294], 8
lea ecx, [edi + 0x280]
jb 0x49094d
mov ecx, dword [edi + 0x280]
push dword [edi + 0x290]
push ecx
mov ecx, esi
call fcn.004311c0
push 0x2a
mov ecx, esi
call fcn.00431680
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x49096e
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x18]
mov dword [ecx - 4], eax
cmp eax, 0xffffffff
je 0x49098a
mov byte [ebp - 0x11], 1
jmp 0x490b4d
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp dword [esi + 0x14], 8
mov ecx, esi
mov dword [ebp - 0x20], eax
jb 0x49099e
mov ecx, dword [esi]
mov eax, dword [ebp - 0x1c]
push dword [esi + 0x10]
or eax, 2
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
push ecx
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00494410
mov eax, dword [ebp - 0x1c]
and eax, 0xfffffffd
or eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp - 0x44]
push eax
push str.path
call fcn.004a4430
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x490a3e
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x490a34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x490d5b
push ecx
push edx
call fcn.004d36cd
add esp, 8
push 0x5b6a10
push dword [ebp - 0x20]
mov dword [ebp - 0x50], str.S:KBT_third_partykbtkbt_platform_win32.cpp
push 3
sub esp, 0xc
mov dword [ebp - 0x4c], str.FileIterator_Advance
movq xmm0, qword [ebp - 0x50]
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x4e5
jmp 0x490b45
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x490a85
mov byte [ebp - 0x11], 1
jmp 0x490b50
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x12
je 0x490b50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [edi + 0x280]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004942e0
add esp, 8
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 2
jb 0x490abf
mov eax, dword [eax]
push eax
push str.path
call fcn.004a4430
mov ecx, dword [ebp - 0x6c]
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x490b08
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x490afe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x490d5b
push ecx
push edx
call fcn.004d36cd
add esp, 8
push 0x5b6a38
push esi
push 3
sub esp, 0xc
mov dword [ebp - 0x5c], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x58], str.FileIterator_Advance
movq xmm0, qword [ebp - 0x5c]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
movq qword [eax], xmm0
mov byte [ebp - 0x80], 0
mov dword [eax + 8], 0x4f4
call fcn.004a4b70
add esp, 0x18
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x490be7
mov eax, dword [esi - 4]
cmp eax, 0xffffffff
je 0x490baa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x490baa
push 0x5b6a48
mov dword [ebp - 0x68], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov dword [ebp - 0x64], str.FileIterator_Advance
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [ebp - 0x68]
push eax
push 3
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0x4fe
call fcn.004a4b70
add esp, 0x18
mov eax, dword [esi - 8]
lea ecx, [edi + 0x280]
mov edx, dword [ecx + 0x10]
cmp eax, edx
ja 0x490bd4
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x490bc5
mov ecx, dword [ecx]
xor edx, edx
mov word [ecx + eax*2], dx
add dword [edi + 0x2b4], 0xfffffff8
jmp 0x490c42
push 0
sub eax, edx
push eax
call fcn.00431020
add dword [edi + 0x2b4], 0xfffffff8
jmp 0x490c42
cmp byte [ebp - 0x11], 0
je 0x490c42
cmp byte [edi + 0x2c3], 0
lea eax, [edi + 0x2c]
je 0x490bff
cmp word [eax], 0x2e
je 0x490c0a
test byte [edi], 2
mov esi, eax
jne 0x490c0a
xor cl, cl
jmp 0x490c0e
mov cl, 1
mov esi, eax
cmp word [esi], 0x2e
jne 0x490c2b
movzx eax, word [esi + 2]
mov edx, eax
test ax, ax
je 0x490c38
cmp edx, 0x2e
jne 0x490c2b
cmp word [esi + 4], 0
je 0x490c38
cmp byte [edi + 0x2c2], 0
je 0x490c62
test cl, cl
je 0x490c62
mov dword [edi], 0
mov byte [ebp - 0x11], 0
lea ecx, [edi + 0x2b0]
mov esi, dword [ecx + 4]
mov eax, esi
sub eax, dword [ecx]
mov dword [ebp - 0x18], esi
test eax, 0xfffffff8
jne 0x490830
jmp 0x490d3d
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490c67
sub ecx, edx
sar ecx, 1
je 0x490c8e
movzx eax, word [edi + ecx*2 + 0x2a]
cmp eax, 0x20
je 0x490c87
cmp eax, 0x2e
jne 0x490c8e
mov byte [edi + 0x2c5], 1
mov eax, dword [edi + 0x290]
add eax, dword [edi + 0x278]
add eax, ecx
cmp eax, 0xff
jae 0x490cb1
cmp byte [edi + 0x2c5], 0
mov eax, 0x268
je 0x490cb6
mov eax, 0x250
add eax, edi
lea ecx, [edi + 0x298]
cmp ecx, eax
je 0x490cdb
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x490ccc
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00431340
lea ecx, [edi + 0x298]
cmp dword [edi + 0x294], 8
lea edx, [edi + 0x280]
jb 0x490cf0
mov edx, dword [edi + 0x280]
push dword [edi + 0x290]
push edx
call fcn.004311c0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490d01
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea esi, [edi + 0x298]
mov ecx, esi
call fcn.004311c0
mov eax, dword [ebp - 0x2c]
mov dword [eax], edi
mov ecx, dword [edi + 0x2bc]
mov dword [eax + 8], ecx
mov dword [eax + 4], esi
mov ecx, dword [edi + 0x2bc]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], 0
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
call fcn.004d826f
int3