Function at 0x180003950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
sub rsp, 0x1a0
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rcx + 0x34]
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebx
mov rbp, rbx
mov qword [rsp + 0x88], rbx
mov byte [rsp + 0x1c0], 2
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x180004119
lea rax, [rsp + 0x70]
test rax, rax
je 0x180004119
mov qword [rsp + 0x198], rdi
test rcx, rcx
je 0x1800039d8
lea rax, [rsp + 0x50]
test rax, rax
je 0x1800039d8
mov eax, dword [rcx + 0x87]
mov rax, qword [rcx + rax*8 + 0x8b]
mov qword [rsp + 0x68], rax
jmp 0x1800039e2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
xor ecx, ecx
mov edx, 0x200
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x180004048
mov rax, qword [rsp + 0x60]
xor ecx, ecx
mov r8d, 0x1000
mov edx, dword [rax + 0x7f]
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180004037
mov rax, qword [rsp + 0x60]
mov rbx, r9
mov ecx, dword [rax + 0x7f]
add dword [rsp + 0x1e0], ecx
mov eax, ecx
imul eax, dword [rsp + 0x1d8]
bt dword [rsi + 0x54], 0x1f
mov qword [rsp + 0x90], rax
jb 0x180004024
mov qword [rsp + 0xa8], rbp
nop word [rax + rax]
mov rcx, qword [rsi + 0x24]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18000401f
mov rax, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
movzx edx, byte [rbx]
mov ecx, dword [rax + 0x7f]
lea r8, [rbx + rdx]
lea rax, [r9 + rcx]
mov qword [rsp + 0x50], r8
cmp rbx, rax
jae 0x180003aaa
test dl, dl
jne 0x180003b19
mov eax, dword [rsp + 0x1e0]
cmp eax, ecx
jbe 0x180004024
mov rdx, qword [rsp + 0x90]
sub eax, ecx
mov r8d, ecx
mov rcx, qword [rsi + 0x34]
mov dword [rsp + 0x1e0], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov rbx, r9
call fcn.180002c60
test eax, eax
je 0x18000401a
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x7f]
cmp dword [rsp + 0xa0], eax
jne 0x180004015
add qword [rsp + 0x90], rax
movzx eax, byte [rbx]
mov rcx, rbx
add rax, rbx
mov qword [rsp + 0x50], rax
test byte [rbx + 0x19], 2
jne 0x180003e4a
lea rcx, [rsp + 0xd0]
xor edx, edx
mov r8d, 0x93
call fcn.180035040
mov eax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x68]
movzx ebp, byte [rsp + 0x148]
inc eax
mov qword [rsp + 0x120], 0xffffffffffffffff
cmp eax, dword [rcx + 0xc]
mov ecx, dword [rcx + 4]
mov qword [rsp + 0x128], 0xffffffffffffffff
setae al
xor edx, edx
mov qword [rsp + 0x130], 0xffffffffffffffff
xor al, bpl
mov byte [rsp + 0x14c], 0
mov qword [rsp + 0x118], 0xffffffffffffffff
and al, 1
mov qword [rsp + 0x110], 0
xor bpl, al
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x108], rax
mov eax, dword [rbx + 0xa]
mov qword [rsp + 0xd8], rax
lea rax, [rcx + rax - 1]
div rcx
mov ecx, eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x15b], rax
mov eax, dword [rbx + 2]
mov qword [rsp + 0x140], rcx
lea rcx, [rsp + 0x170]
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
movzx eax, byte [rbx + 0x12]
xor r11d, r11d
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], r11
mov ecx, 0x762
add ax, cx
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x78]
mov word [rsp + 0x78], ax
movzx eax, byte [rbx + 0x13]
mov word [rsp + 0x7a], ax
movzx eax, byte [rbx + 0x14]
mov word [rsp + 0x7e], ax
movzx eax, byte [rbx + 0x15]
mov word [rsp + 0x80], ax
movzx eax, byte [rbx + 0x16]
mov word [rsp + 0x82], ax
movzx eax, byte [rbx + 0x17]
mov word [rsp + 0x84], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
movsx r11, byte [rbx + 0x18]
mov rcx, qword [rsp + 0x68]
movabs rax, 0xfffffffde78ee600
imul r11, rax
mov rax, qword [rsp + 0xb0]
sub r11, qword [rsp + 0xc8]
add r11, qword [rsp + 0xb8]
add rax, r11
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0x1c8]
imul rax, rax, 0x1d
cmp byte [rax + rcx + 0x2c], 2
je 0x180003d1f
movzx r9d, byte [rbx + 0x20]
lea r8, [rbx + 0x21]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx r11d, byte [rbx + 0x20]
xor ebx, ebx
mov word [rdi + r11*2], bx
jmp 0x180003d3f
movzx r8d, byte [rbx + 0x20]
lea rdx, [rbx + 0x22]
mov rcx, rdi
call fcn.18002dae0
movzx r11d, byte [rbx + 0x20]
shr r11d, 1
xor ebx, ebx
mov word [rdi + r11*2], bx
movsxd rax, r11d
test r11d, r11d
je 0x180003d69
lea rax, [rdi + rax*2]
nop dword [rax + rax]
sub rax, 2
dec r11d
cmp word [rax], 0x3b
je 0x180003d64
test r11d, r11d
jne 0x180003d50
jmp 0x180003d69
mov word [rdi + r11*2], bx
mov r8d, dword [rsi + 0x248]
mov rax, qword [rsp + 0x1d0]
and bpl, 0xc9
or bpl, 8
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0xd0], rax
mov byte [rsp + 0x148], bpl
test r8b, 1
je 0x180003dc2
test bpl, 1
je 0x180003daa
test r8b, 4
je 0x180003dc2
shl r8d, 0x1e
lea rdx, [rsp + 0xd0]
mov rcx, rsi
sar r8d, 0x1f
call fcn.180003790
lea r9, [rsp + 0x15b]
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x3c]
mov r8d, 4
call fcn.180017020
test eax, eax
je 0x180003ff6
lea r8, [rsp + 0x100]
lea rcx, [rsi + 0x3c]
mov rdx, rdi
call fcn.180016f30
test eax, eax
je 0x180003ff6
movzx eax, word [rsp + 0x155]
and byte [rsp + 0x14b], 0xfe
mov ecx, 0xcfff
and ax, cx
mov ecx, 0x4000
lea rdx, [rsp + 0xd0]
or ax, cx
lea rcx, [rsi + 0x3c]
xor r8d, r8d
mov word [rsp + 0x155], ax
mov dword [rsp + 0x157], ebx
call fcn.180017150
jmp 0x180003ff6
movzx eax, byte [rsp + 0x1c0]
test al, al
je 0x180003e64
dec al
mov byte [rsp + 0x1c0], al
jmp 0x180003ff6
xor edx, edx
mov r8d, 0x200
mov rcx, rdi
call fcn.180035040
mov r11d, dword [rsp + 0x1c8]
mov rax, qword [rsp + 0x68]
imul r11, r11, 0x1d
cmp byte [r11 + rax + 0x2c], 2
jne 0x180003ea8
movzx r9d, byte [rbx + 0x20]
lea r8, [rbx + 0x22]
mov edx, pe_nt_image_headers64
shr r9, 1
mov rcx, rdi
call fcn.18002de14
jmp 0x180003ec8
movzx r9d, byte [rbx + 0x20]
lea r8, [rbx + 0x21]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, qword [rsp + 0x1d0]
lea rax, [rsp + 0x70]
lea rcx, [rsi + 0x3c]
mov qword [rsp + 0x30], rax
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov r8, rdi
mov dword [rsp + 0x20], eax
call fcn.1800174c0
test eax, eax
je 0x180003ff6
mov eax, dword [rbx + 0xa]
mov ecx, dword [rsp + 0x44]
mov dword [rsp + 0x9c], eax
mov eax, dword [rbx + 2]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x40], ecx
jb 0x180003fbf
lea eax, [rcx + 0x1000]
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180003f9a
mov rdx, qword [rsp + 0xc0]
lea r9d, [rax + 4]
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x180003fb5
mov eax, dword [rsp + 0x40]
mov rdx, rbp
mov rcx, rbx
lea r8, [rax + rax*4]
shl r8, 2
call fcn.18002dae0
test rbp, rbp
je 0x180003f9a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [rsp + 0x44]
mov rbp, rbx
mov qword [rsp + 0x88], rbx
add ecx, 0xcc
mov dword [rsp + 0x44], ecx
jmp 0x180003fb9
mov ecx, dword [rsp + 0x44]
cmp dword [rsp + 0x40], ecx
jae 0x180003ff6
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x70]
inc dword [rsp + 0x40]
mov qword [rcx + rbp], rax
mov eax, dword [rsp + 0x98]
add rcx, 0x14
mov dword [rcx + rbp - 0xc], eax
mov eax, dword [rsp + 0x9c]
mov qword [rsp + 0xa8], rcx
mov dword [rcx + rbp - 8], eax
bt dword [rsi + 0x54], 0x1f
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x88]
jae 0x180003a70
mov r9, qword [rsp + 0x58]
jmp 0x180004024
mov r9, rbx
jmp 0x180004024
mov r9, rbx
jmp 0x180004024
mov r9, qword [rsp + 0x58]
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r9d, dword [rsp + 0x40]
test r9d, r9d
je 0x1800040fb
mov ecx, dword [rsp + 0x1f0]
xor edx, edx
mov rdi, rbx
mov eax, ecx
lea rbx, [rbp + 8]
mov qword [rsp + 0x70], rcx
mov ecx, dword [rsp + 0x1e8]
div r9d
mov rbp, r9
mov r8d, eax
mov dword [rsp + 0x1c0], eax
mov qword [rsp + 0x50], r9
nop dword [rax]
xor edx, edx
mov dword [rsp + 0x30], r8d
mov rax, rdi
div rbp
mov edx, dword [rsp + 0x1c8]
add ecx, eax
mov dword [rsi + 4], ecx
mov eax, dword [rbx + 4]
mov r9d, dword [rbx]
mov r8, qword [rbx - 8]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.180003950
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x1e8]
mov r8d, dword [rsp + 0x1c0]
add rdi, rax
xor edx, edx
mov rax, rdi
add rbx, 0x14
div rbp
add eax, ecx
sub qword [rsp + 0x50], 1
mov dword [rsi + 4], eax
jne 0x180004090
mov rbp, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x198]
test rbp, rbp
je 0x180004119
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [rsi + 0x210], 0
mov eax, 0
setne al
add rsp, 0x1a0
pop rsi
pop rbp
pop rbx
ret