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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x168
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov r12, rdx
mov rbp, rcx
mov rax, qword [rdx]
xor r9d, r9d
xor r8d, r8d
mov r13d, 0x1000
mov rdx, r13
mov rcx, r12
call qword [rax + 0x20]
xor r14d, r14d
cmp eax, r14d
jne 0x1003b0f9
mov edi, 0x34
mov r8, rdi
lea rdx, [rsp + 0xb0]
mov rcx, r12
call fcn.1000c5a4
cmp eax, r14d
jne 0x1003b0f9
mov ebx, 8
mov r8, rbx
lea rdx, str.gDla4
lea rcx, [rsp + 0xb0]
call sub.msvcrt.dll_memcmp
cmp eax, r14d
je 0x1003a7bc
lea eax, [rbx - 7]
jmp 0x1003b0f9
mov ecx, dword [rsp + 0xd8]
mov dword [rbp + 0x48], ecx
mov edx, dword [rsp + 0xdc]
mov dword [rbp + 0x4c], edx
mov eax, dword [rsp + 0xe0]
mov dword [rbp + 0x50], eax
cmp edx, r14d
je 0x1003a7f4
cmp edx, 0x100000
jae 0x1003a7f4
cmp ecx, r14d
je 0x1003a7f4
test ecx, 0x1ff
je 0x1003a7fe
mov eax, 1
jmp 0x1003b0f9
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0xb0]
call fcn.10039224
cmp al, r14b
jne 0x1003a820
mov eax, 1
jmp 0x1003b0f9
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov rax, qword [r12]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [rax + 0x20]
mov ebx, eax
cmp eax, r14d
je 0x1003a851
xor ecx, ecx
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x1003b0f9
mov qword [rsp + 0x48], r14
mov r15d, 0x2000
mov rcx, r15
call fcn.10003f74
mov rsi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r15
mov r8, r13
mov rdx, rax
mov rcx, r12
call fcn.1000c5a4
mov ebx, eax
cmp eax, r14d
je 0x1003a88b
jmp 0x1003aa55
mov rax, r14
mov edi, 1
cmp dword [rax + rsi], r14d
jne 0x1003a8a4
add rax, 4
cmp rax, r13
jb 0x1003a88e
jmp 0x1003a8a8
mov byte [rbp + 0x64], dil
mov r8, r15
mov rdx, rsi
mov rcx, r12
call fcn.1000c5a4
cmp eax, r14d
je 0x1003a8c2
mov ebx, eax
jmp 0x1003aa55
lea rdx, [rsi + 0x1000]
mov r8, r13
mov rcx, rsi
call sub.msvcrt.dll_memcmp
cmp eax, r14d
jne 0x1003a8f1
mov rax, r14
cmp dword [rsi + rax + 0x34], r14d
jne 0x1003a8f1
add rax, 4
cmp rax, 0xfcc
jb 0x1003a8dc
jmp 0x1003a8f5
mov byte [rbp + 0x64], dil
mov r13d, 0x80
mov r8, r13
mov rdx, rsi
mov rcx, r12
call fcn.1000c5a4
cmp eax, r14d
je 0x1003a915
mov ebx, eax
jmp 0x1003aa55
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.10039130
cmp dword [rsp + 0x50], 0x414c5030
jne 0x1003b0ef
movzx eax, word [rsp + 0x54]
cmp ax, 0xa
jne 0x1003b0ef
mov ecx, dword [rsp + 0x58]
cmp ecx, r13d
jb 0x1003b0ef
mov dword [rbp + 0x58], r14d
cmp ecx, r13d
jbe 0x1003a994
cmp ecx, 0x100
je 0x1003a964
mov ebx, edi
jmp 0x1003aa55
mov r8, r13
lea rdx, [rsi + 0x80]
mov rcx, r12
call fcn.1000c5a4
cmp eax, r14d
je 0x1003a982
mov ebx, eax
jmp 0x1003aa55
mov eax, dword [rsi + 0x80]
mov dword [rbp + 0x58], eax
mov ecx, dword [rsp + 0x58]
mov ax, word [rsp + 0x54]
mov word [rbp + 0x54], ax
movzx eax, word [rsp + 0x56]
mov word [rbp + 0x56], ax
mov edx, ecx
mov r8d, 0xc
mov rcx, rsi
call fcn.10039224
cmp al, r14b
jne 0x1003a9bd
mov ebx, edi
jmp 0x1003aa55
mov ecx, dword [rbp + 0x48]
mov eax, dword [rsp + 0x5c]
cmp ecx, eax
jb 0x1003b0e8
sub ecx, eax
cmp ecx, dword [rsp + 0x58]
jb 0x1003b0e8
mov rbx, rax
cmp rax, r15
jbe 0x1003aa10
cmp rsi, r14
je 0x1003a9f2
mov rcx, rsi
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov rcx, rbx
call fcn.10003f74
mov rsi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rbx
mov eax, dword [rsp + 0x5c]
mov r8d, eax
mov rdx, rsi
mov rcx, r12
call fcn.1000c5a4
cmp eax, r14d
je 0x1003aa27
mov ebx, eax
jmp 0x1003aa55
mov ecx, dword [rbp + 0x4c]
mov eax, dword [rbp + 0x48]
imul rcx, rax
lea r13, [rcx + rcx + 0x3000]
mov qword [rbp + 0x40], r13
mov edx, dword [rsp + 0x5c]
lea r8, [rsp + 0x60]
mov rcx, rsi
call fcn.100391c0
cmp al, r14b
jne 0x1003aa64
mov ebx, edi
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x1003b0f9
mov r8d, dword [rsp + 0x88]
cmp r8d, r14d
je 0x1003aaa5
mov r10d, dword [rsp + 0x84]
mov r9d, r10d
imul r9d, r8d
xor edx, edx
mov eax, r9d
div r8d
cmp eax, r10d
jne 0x1003aaa5
mov edx, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x5c]
cmp edx, ecx
ja 0x1003aaa5
mov eax, ecx
sub eax, edx
cmp eax, r9d
jae 0x1003aab4
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
cmp r8d, 0x34
je 0x1003aac9
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
mov r12d, r14d
mov r15d, 0x24
cmp r10d, r14d
jbe 0x1003abc6
jmp 0x1003aaec
mov r8d, dword [rsp + 0x88]
mov edx, dword [rsp + 0x80]
mov dword [rsp + 0xe4], r14d
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0xf0], r14
mov qword [rsp + 0xf8], r14
imul r8d, r12d
mov eax, r8d
mov ebx, edx
add rax, rsi
add rbx, rax
mov r8, r15
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call sub.msvcrt.dll_memcpy
mov r11d, dword [rbx + 0x24]
mov dword [rsp + 0xd4], r11d
mov ecx, dword [rbx + 0x28]
mov dword [rsp + 0xd8], ecx
mov eax, dword [rbx + 0x2c]
mov dword [rsp + 0xdc], eax
mov r8d, dword [rbx + 0x30]
mov dword [rsp + 0xe0], r8d
lea edx, [rax + rcx]
cmp edx, ecx
jb 0x1003abb7
cmp edx, dword [rsp + 0x90]
ja 0x1003abb7
cmp r8d, dword [rsp + 0x9c]
jae 0x1003abb7
lea rcx, [rsp + 0x110]
lea rdx, [rsp + 0xb0]
mov r8d, 0x50
call sub.msvcrt.dll_memcpy
lea rcx, [rbp + 0x18]
lea rdx, [rsp + 0x110]
call fcn.1003a694
add r12d, edi
cmp r12d, dword [rsp + 0x84]
jb 0x1003aadd
mov ecx, dword [rsp + 0x5c]
jmp 0x1003abc6
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
mov r8d, dword [rsp + 0x94]
cmp r8d, r14d
je 0x1003ac03
mov r9d, r8d
mov r10d, dword [rsp + 0x90]
imul r9d, r10d
xor edx, edx
mov eax, r9d
div r8d
cmp eax, r10d
jne 0x1003ac03
mov edx, dword [rsp + 0x8c]
cmp edx, ecx
ja 0x1003ac03
mov eax, ecx
sub eax, edx
cmp eax, r9d
jae 0x1003ac12
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
cmp r8d, 0x18
je 0x1003ac27
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
mov r12d, r14d
cmp r10d, r14d
jbe 0x1003acee
jmp 0x1003ac44
mov r8d, dword [rsp + 0x94]
mov edx, dword [rsp + 0x8c]
imul r8d, r12d
mov eax, r8d
mov ecx, edx
add rax, rsi
add rcx, rax
mov rdx, qword [rcx]
mov qword [rsp + 0x20], rdx
mov r9d, dword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r8, qword [rcx + 0xc]
mov qword [rsp + 0x30], r8
mov eax, dword [rcx + 0x14]
mov dword [rsp + 0x38], eax
cmp r9d, r14d
jne 0x1003ac94
cmp eax, dword [rsp + 0xa8]
jae 0x1003acdf
lea rax, [r8 + rdx]
shl rax, 9
cmp qword [rbp + 0x40], rax
jae 0x1003ac94
mov qword [rbp + 0x40], rax
mov ecx, r9d
mov eax, edi
shl eax, cl
or dword [rbp + 0x60], eax
lea rcx, [rbp + 0x28]
call fcn.10039b90
mov ecx, dword [rbp + 0x30]
lea eax, [rcx + 1]
mov dword [rbp + 0x30], eax
shl rcx, 5
add rcx, qword [rbp + 0x28]
lea rdx, [rsp + 0x20]
mov r8d, 0x20
call sub.msvcrt.dll_memcpy
add r12d, edi
cmp r12d, dword [rsp + 0x90]
jb 0x1003ac35
mov ecx, dword [rsp + 0x5c]
jmp 0x1003acee
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
mov r8d, dword [rsp + 0xa0]
cmp r8d, r14d
je 0x1003ad2d
mov r9d, r8d
imul r9d, dword [rsp + 0x9c]
xor edx, edx
mov eax, r9d
div r8d
cmp eax, dword [rsp + 0x9c]
jne 0x1003ad2d
cmp dword [rsp + 0x98], ecx
ja 0x1003ad2d
sub ecx, dword [rsp + 0x98]
cmp ecx, r9d
jae 0x1003ad3c
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
cmp r8d, 0x30
je 0x1003ad51
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
lea rcx, [rsp + 0x20]
call fcn.10001fbc
nop
mov r12d, r14d
cmp dword [rsp + 0x9c], r14d
jbe 0x1003ae2d
mov eax, dword [rsp + 0xa0]
imul eax, r12d
mov ebx, dword [rsp + 0x98]
add rax, rsi
add rbx, rax
mov r8, r15
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call sub.msvcrt.dll_memcpy
mov r11d, dword [rbx + 0x24]
mov dword [rsp + 0xd4], r11d
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0xd8], rax
cmp qword [rbp + 0x40], rax
jae 0x1003adba
mov qword [rbp + 0x40], rax
lea rdx, [0x10139a5c]
lea rcx, [rsp + 0x20]
call fcn.10002200
mov r8b, dil
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x20]
call fcn.100390c4
mov r8, qword [rsp + 0xd8]
lea rdx, str.maximum_size
lea rcx, [rsp + 0x20]
call fcn.10039274
mov r8d, dword [rsp + 0xd4]
lea rdx, str.flags
lea rcx, [rsp + 0x20]
call fcn.10039274
lea rcx, [rsp + 0x20]
call fcn.100030ec
add r12d, edi
cmp r12d, dword [rsp + 0x9c]
jb 0x1003ad6d
lea rcx, [rbp + 0x68]
lea rdx, [rsp + 0x20]
call fcn.10002120
nop
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
mov r11d, dword [rsp + 0xac]
cmp r11d, r14d
je 0x1003ae86
mov ecx, r11d
imul ecx, dword [rsp + 0xa8]
xor edx, edx
mov eax, ecx
div r11d
cmp eax, dword [rsp + 0xa8]
jne 0x1003ae86
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0xa4], eax
ja 0x1003ae86
sub eax, dword [rsp + 0xa4]
cmp eax, ecx
jae 0x1003ae95
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
cmp r11d, 0x40
je 0x1003aeaa
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
lea rcx, [rsp + 0x20]
call fcn.10001fbc
nop
mov r12d, r14d
cmp dword [rsp + 0xa8], r14d
jbe 0x1003b034
mov eax, dword [rsp + 0xac]
imul eax, r12d
mov ebx, dword [rsp + 0xa4]
add rax, rsi
add rbx, rax
lea rdx, [rbx + 0x18]
mov r8, r15
lea rcx, [rsp + 0xc8]
call sub.msvcrt.dll_memcpy
mov r11, qword [rbx]
mov qword [rsp + 0xb0], r11
mov eax, dword [rbx + 8]
mov dword [rsp + 0xb8], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0xbc], eax
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0xc0], rcx
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0xec], eax
shl r11, 9
cmp r13, r11
ja 0x1003b01a
cmp qword [rbp + 0x40], rcx
jae 0x1003af3e
mov qword [rbp + 0x40], rcx
lea rdx, [0x10139a5c]
lea rcx, [rsp + 0x20]
call fcn.10002200
cmp r12d, r14d
jne 0x1003af6b
lea rcx, [rbp + 0x88]
mov r8b, dil
lea rdx, [rsp + 0xc8]
call fcn.100390c4
mov r8b, dil
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x20]
call fcn.100390c4
mov r8, qword [rsp + 0xc0]
lea rdx, str.size
lea rcx, [rsp + 0x20]
call fcn.10039274
mov r8, qword [rsp + 0xb0]
lea rdx, str.first_logical_sector
lea rcx, [rsp + 0x20]
call fcn.10039274
mov r8d, dword [rsp + 0xb8]
lea rdx, str.alignment
lea rcx, [rsp + 0x20]
call fcn.10039274
mov r8d, dword [rsp + 0xbc]
lea rdx, str.alignment_offset
lea rcx, [rsp + 0x20]
call fcn.10039274
mov r8d, dword [rsp + 0xec]
lea rdx, str.flags
lea rcx, [rsp + 0x20]
call fcn.10039274
lea rcx, [rsp + 0x20]
call fcn.100030ec
add r12d, edi
cmp r12d, dword [rsp + 0xa8]
jb 0x1003aec6
jmp 0x1003b034
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
nop
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
lea rcx, [rbp + 0x78]
lea rdx, [rsp + 0x20]
call fcn.10002120
nop
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
mov r11d, r14d
cmp dword [rbp + 0x20], r14d
jbe 0x1003b0dc
mov rdx, r14
mov r8, qword [rbp + 0x18]
mov eax, dword [rbp + 0x30]
mov r9d, dword [rdx + r8 + 0x28]
cmp r9d, eax
ja 0x1003b0d0
mov ecx, dword [rdx + r8 + 0x2c]
sub eax, r9d
cmp ecx, eax
ja 0x1003b0d0
mov r12, r14
mov r10, r14
mov ebx, r14d
cmp ecx, r14d
jbe 0x1003b0b2
mov r13d, ecx
mov eax, r9d
shl rax, 5
add rax, qword [rbp + 0x28]
add r12, qword [rax]
mov ecx, dword [rax + 8]
cmp ecx, r14d
jne 0x1003b0a4
add r10, qword [rax]
mov eax, edi
shl eax, cl
or ebx, eax
add r9d, edi
sub r13, rdi
jne 0x1003b08b
mov qword [rdx + r8 + 0x38], r12
mov qword [rdx + r8 + 0x40], r10
mov dword [rdx + r8 + 0x34], ebx
add r11d, edi
add rdx, 0x50
cmp r11d, dword [rbp + 0x20]
jb 0x1003b05d
jmp 0x1003b0dc
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1003b0f9
mov rcx, rsi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x1003b0f9
mov ebx, edi
jmp 0x1003aa55
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret