Function at 0x140003900
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x368], rbx
mov rax, qword [0x140021030]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, r8
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rbx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x28], r13
lea ecx, [r13 + 0x10]
call qword [sym.imp.mfc100u.dll_CTagManager::CTagManager]
test rax, rax
je 0x140003bfe
mov qword [rsp + 0x28], rax
mov qword [rax], r13
mov qword [rax + 8], r13
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
mov qword [rax], rcx
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400039cf
lea rcx, [rax - 1]
cmp rax, rcx
ja 0x1400039b9
lea rcx, str.invalid_string_position
call qword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
cmp qword [rbx + 0x18], 8
jb 0x1400039c5
mov rax, qword [rbx]
jmp 0x1400039c8
mov rax, rbx
cmp word [rax + rcx*2], 0x5c
je 0x1400039e4
mov r8d, 1
lea rdx, [0x140017f14]
mov rcx, rbx
call fcn.140002810
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140007690
mov rdi, rax
lea rax, [rsp + 0x70]
cmp rax, rdi
je 0x140003a82
cmp qword [rbp - 0x78], 8
jb 0x140003a24
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
cmp qword [rdi + 0x18], 8
jae 0x140003a57
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCR100.dll_memmove]
jmp 0x140003a62
mov rax, qword [rdi]
mov qword [rsp + 0x70], rax
mov qword [rdi], r13
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x80], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x78], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r13
mov word [rdi], r13w
cmp qword [rbp - 0x50], 8
jb 0x140003a93
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov dword [rbp - 0x40], r13d
xor edx, edx
mov r8d, 0x24c
lea rcx, [rbp - 0x3c]
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140003b40
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.1400061d0
nop
cmp qword [rbp - 0x78], 8
jb 0x140003aeb
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, [rsp + 0x28]
call fcn.140002080
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rsp + 0x28], r13
cmp qword [rsi + 0x18], 8
jb 0x140003b27
mov rcx, qword [rsi]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r13
mov word [rsi], r13w
jmp 0x140003c2e
test byte [rbp - 0x40], 0x10
jne 0x140003b76
lea r8, [rbp - 0x14]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140007750
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140006280
nop
cmp qword [rbp - 0x50], 8
jb 0x140003b76
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003b40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.1400061d0
nop
cmp qword [rbp - 0x78], 8
jb 0x140003bb0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
lea rcx, [rsp + 0x28]
call fcn.140002080
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rsp + 0x28], r13
cmp qword [rsi + 0x18], 8
jb 0x140003bec
mov rcx, qword [rsi]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r13
mov word [rsi], r13w
jmp 0x140003c2e
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea r11, vtable.std::bad_alloc.0
mov qword [rbp - 0x68], r11
lea rdx, [0x14001eb58]
lea rcx, [rbp - 0x68]
call sub.MSVCR100.dll__CxxThrowException
nop
cmp qword [rbx + 0x18], 8
jb 0x140003c3e
mov rcx, qword [rbx]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
mov rax, r12
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400121a0
mov rbx, qword [rsp + 0x368]
add rsp, 0x320
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret