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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x41a8
call fcn.1401200e0
sub rsp, rax
mov rax, qword [0x1401a1460]
xor rax, rsp
mov qword [rsp + 0x4190], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x41d8], 0
jne 0x1401258b3
lea rcx, [rsp + 0x70]
call fcn.14012c990
jmp 0x1401258ca
lea rax, [rsp + 0x70]
mov rdi, rax
mov rsi, qword [rsp + 0x41d8]
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0x41c8], 0
jne 0x1401258de
mov dword [rsp + 0x40], 0xb
jmp 0x1401258e6
mov dword [rsp + 0x40], 7
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x41c0]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
jne 0x140125919
xor eax, eax
jmp 0x140125dc3
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x88]
mov dword [rsp + 0x4178], eax
mov dword [rsp + 0xc8], 0
mov dword [rsp + 0x128], 0
mov dword [rsp + 0x4180], 0
mov dword [rsp + 0x417c], 0
lea rcx, [rsp + 0xb8]
call fcn.140127ee0
mov ecx, 0x4120
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1401259a6
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x98]
xor eax, eax
jmp 0x140125dc3
mov qword [rsp + 0x4188], 0
cmp dword [rsp + 0x41c8], 2
jne 0x140125d53
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140128510
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1401259e5
mov dword [rsp + 0x20], 0xffffffff
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x90]
test eax, eax
je 0x140125a10
mov dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x64]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140128410
test eax, eax
je 0x140125a33
mov dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140128370
test eax, eax
je 0x140125a56
mov dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x5c]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140128370
test eax, eax
je 0x140125a79
mov dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140128370
test eax, eax
je 0x140125a9c
mov dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x44]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140128370
test eax, eax
je 0x140125abf
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x44], eax
jne 0x140125ad7
cmp dword [rsp + 0x5c], 0
jne 0x140125ad7
cmp dword [rsp + 0x60], 0
je 0x140125adf
mov dword [rsp + 0x20], 0xffffff99
lea r8, [rsp + 0x3c]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140128410
test eax, eax
je 0x140125b02
mov dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140128410
test eax, eax
je 0x140125b25
mov dword [rsp + 0x20], 0xffffffff
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.140128370
test eax, eax
je 0x140125b48
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
cmp dword [rsp + 0x30], eax
jae 0x140125b69
cmp dword [rsp + 0x20], 0
jne 0x140125b69
mov dword [rsp + 0x20], 0xffffff99
cmp dword [rsp + 0x20], 0
je 0x140125b8e
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x98]
xor eax, eax
jmp 0x140125dc3
cmp dword [rsp + 0x28], 0
jbe 0x140125bed
mov eax, dword [rsp + 0x28]
inc eax
mov eax, eax
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x4188], rax
cmp qword [rsp + 0x4188], 0
je 0x140125bed
mov r9d, dword [rsp + 0x28]
mov r8, qword [rsp + 0x4188]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x4188]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x417c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x2c], eax
mov qword [rsp + 0x68], 0xff0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x90]
test eax, eax
je 0x140125c66
mov dword [rsp + 0x20], 0xffffffff
cmp dword [rsp + 0x2c], 0
jbe 0x140125cf5
cmp dword [rsp + 0x20], 0
jne 0x140125cf5
mov dword [rsp + 0x24], 0xff0
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x24], eax
jbe 0x140125c92
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x24], eax
mov r9d, dword [rsp + 0x24]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x78]
cmp eax, dword [rsp + 0x24]
je 0x140125cbe
mov dword [rsp + 0x20], 0xffffffff
cmp dword [rsp + 0x20], 0
jne 0x140125ce0
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xb8]
call fcn.140127f10
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x140125c66
cmp qword [rsp + 0x50], 0
je 0x140125d08
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x4178], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x4180], eax
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [rsp + 0x90]
test eax, eax
je 0x140125d53
mov dword [rsp + 0x20], 0xffffffff
cmp qword [rsp + 0x41d0], 0
je 0x140125d71
mov rax, qword [rsp + 0x41d0]
mov rcx, qword [rsp + 0x4188]
mov qword [rax], rcx
cmp dword [rsp + 0x20], 0
je 0x140125daa
cmp qword [rsp + 0x4188], 0
je 0x140125d91
mov rcx, qword [rsp + 0x4188]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [rsp + 0x48], 0
je 0x140125da4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140125dc3
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x48]
mov rsi, rax
mov ecx, 0x4120
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x4190]
xor rcx, rsp
call fcn.14011f470
add rsp, 0x41a8
pop rdi
pop rsi
ret