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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0xd0]
call fcn.180053510
mov dword [rsp + 0x50], eax
mov eax, 1
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x68]
add rax, qword [rcx + 0x50]
mov rcx, rax
call fcn.180039240
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
jb 0x180058dc8
mov ecx, 0x11182
call fcn.1800f57e0
jmp 0x18005987e
cmp dword [rsp + 0x54], 0
jbe 0x180059603
mov byte [rsp + 0x24], 0
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0xf0]
cmp eax, 1
jne 0x180058e3b
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0xe8], eax
ja 0x180058e39
xor r9d, r9d
lea r8, [rsp + 0x3c]
mov edx, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xd0]
call fcn.180050da0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180058e2a
mov eax, dword [rsp + 0x20]
jmp 0x18005987e
movzx eax, byte [rsp + 0x3c]
cmp eax, 2
jne 0x180058e39
mov byte [rsp + 0x24], 1
jmp 0x180058e4d
movzx eax, byte [rsp + 0xf0]
cmp eax, 2
jne 0x180058e4d
mov byte [rsp + 0x24], 1
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180058e6f
mov eax, dword [rsp + 0x20]
jmp 0x18005987e
mov eax, dword [rsp + 0x54]
dec eax
mov ecx, 1
imul rcx, rcx, 0x24
mov rdx, qword [rsp + 0x68]
add rcx, qword [rdx + 0x50]
mov edx, eax
call fcn.180039260
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180058ec0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
add rax, qword [rcx + 0x50]
mov rcx, rax
call fcn.180039240
mov dword [rsp + 0x38], eax
jmp 0x180058ede
mov eax, 1
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
add rax, qword [rcx + 0x50]
mov rcx, rax
call fcn.180039240
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x38], eax
ja 0x180058f18
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x98], eax
jbe 0x180058f28
mov ecx, 0x111ba
call fcn.1800f57e0
mov dword [rsp + 0x20], eax
jmp 0x180058f45
xor r9d, r9d
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd0]
call fcn.1800536f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180058f5a
mov qword [rsp + 0x30], 0
jmp 0x180059866
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x50]
mov rcx, rax
call fcn.180039240
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x180058ffd
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x180058ffd
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180058fa6
jmp 0x180059866
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x50]
mov edx, 1
imul rdx, rdx, 0x20
mov r8, qword [rsp + 0x68]
mov r8, qword [r8 + 0x50]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov qword [rsp + 0x30], 0
jmp 0x1800595de
xor edx, edx
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x34]
mov ecx, 4
div ecx
sub eax, 2
cmp dword [rsp + 0x28], eax
jbe 0x180059032
mov ecx, 0x111d7
call fcn.1800f57e0
mov dword [rsp + 0x20], eax
jmp 0x180059866
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1800592ca
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0xe8], eax
je 0x18005906e
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x38], eax
jae 0x1800592ca
movzx eax, byte [rsp + 0xf0]
cmp eax, 2
jne 0x1800592ca
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov byte [rsp + 0x24], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1800590af
jmp 0x180059866
cmp dword [rsp + 0x28], 0
jne 0x18005913d
cmp qword [rsp + 0x48], 0
jne 0x1800590ef
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x50]
mov edx, 1
imul rdx, rdx, 0x20
mov r8, qword [rsp + 0x68]
mov r8, qword [r8 + 0x50]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
jmp 0x180059138
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18005910d
jmp 0x180059866
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x50]
mov edx, 1
imul rdx, rdx, 0
mov r8, qword [rsp + 0x48]
mov r8, qword [r8 + 0x50]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
jmp 0x1800592bc
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x50]
mov rcx, rax
call fcn.180039240
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x58], eax
jbe 0x180059178
mov ecx, 0x111f9
call fcn.1800f57e0
mov dword [rsp + 0x20], eax
jmp 0x180059866
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xd0]
call fcn.1800536f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1800591a1
jmp 0x180059866
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1800591c9
mov rcx, qword [rsp + 0x70]
call fcn.1800536b0
jmp 0x180059866
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x50]
mov edx, 1
imul rdx, rdx, 0
mov r8, qword [rsp + 0x70]
mov r8, qword [r8 + 0x50]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, dword [rsp + 0x28]
dec eax
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x70]
add rcx, qword [rdx + 0x50]
mov edx, eax
call fcn.180039260
mov eax, dword [rsp + 0x28]
lea eax, [rax*4 - 4]
mov eax, eax
mov ecx, 1
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
add rcx, qword [rdx + 0x50]
mov edx, 1
imul rdx, rdx, 8
mov r8, qword [rsp + 0x70]
add rdx, qword [r8 + 0x50]
mov rdi, rdx
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x70]
call fcn.1800536b0
cmp qword [rsp + 0x48], 0
jne 0x180059280
mov eax, 1
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
add rax, qword [rcx + 0x50]
mov edx, dword [rsp + 0x58]
mov rcx, rax
call fcn.180039260
jmp 0x1800592bc
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18005929e
jmp 0x180059866
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
add rax, qword [rcx + 0x50]
mov edx, dword [rsp + 0x58]
mov rcx, rax
call fcn.180039260
mov qword [rsp + 0x30], 0
jmp 0x1800595de
cmp dword [rsp + 0x28], 0
jbe 0x1800595de
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0xe8], 0
jbe 0x18005940b
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0xf0]
cmp eax, 2
jne 0x180059366
mov dword [rsp + 0x2c], 0
jmp 0x18005931a
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], eax
jae 0x180059361
mov eax, dword [rsp + 0x2c]
lea eax, [rax*4 + 8]
mov eax, eax
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180039240
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x40], eax
ja 0x18005935f
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x44], eax
jmp 0x180059361
jmp 0x180059310
jmp 0x180059409
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180039240
sub eax, dword [rsp + 0xe8]
mov ecx, eax
call fcn.1800396e0
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x2c], 1
jmp 0x1800593a8
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], eax
jae 0x180059409
mov eax, dword [rsp + 0x2c]
lea eax, [rax*4 + 8]
mov eax, eax
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180039240
sub eax, dword [rsp + 0xe8]
mov ecx, eax
call fcn.1800396e0
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x80], eax
jge 0x180059407
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x78], eax
jmp 0x18005939e
jmp 0x180059413
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
lea eax, [rax*4 + 8]
mov eax, eax
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180039240
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jbe 0x180059454
mov ecx, 0x1123a
call fcn.1800f57e0
mov dword [rsp + 0x20], eax
jmp 0x180059866
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x18005948c
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x40], eax
je 0x18005948c
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x40], eax
jae 0x1800595de
movzx eax, byte [rsp + 0xf0]
cmp eax, 2
jne 0x1800595de
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1800594b8
jmp 0x180059866
mov eax, dword [rsp + 0x28]
dec eax
cmp dword [rsp + 0x44], eax
jae 0x1800594ee
mov eax, dword [rsp + 0x28]
lea eax, [rax*4 + 4]
mov eax, eax
mov ecx, dword [rsp + 0x44]
lea ecx, [rcx*4 + 8]
mov ecx, ecx
mov rdx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x60]
mov eax, dword [rdi + rax]
mov dword [rdx + rcx], eax
mov eax, dword [rsp + 0x28]
dec eax
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov edx, eax
call fcn.180039260
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax]
mov rcx, qword [rsp + 0xd0]
call fcn.1800504c0
test eax, eax
jne 0x180059534
mov dword [rsp + 0x7c], 1
jmp 0x18005953c
mov dword [rsp + 0x7c], 0
cmp dword [rsp + 0x7c], 0
je 0x180059550
mov dword [rsp + 0x84], 1
jmp 0x18005955b
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x94], eax
mov r9d, dword [rsp + 0x94]
mov r8, qword [rsp + 0xd8]
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax]
mov rcx, qword [rsp + 0xd0]
call fcn.1800536f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1800595d9
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1800595d9
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rax]
call fcn.1800536b0
mov rax, qword [rsp + 0xd8]
mov qword [rax], 0
mov byte [rsp + 0x24], 0
mov rcx, qword [rsp + 0x48]
call fcn.1800536b0
mov qword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x180058e8e
jmp 0x180059866
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x23]
test eax, eax
jne 0x180059620
mov dword [rsp + 0x8c], 1
jmp 0x18005962b
mov dword [rsp + 0x8c], 0
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180059662
mov eax, dword [rsp + 0x20]
jmp 0x18005987e
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x3c], eax
xor edx, edx
mov eax, dword [0x180129564]
mov rcx, qword [rsp + 0xd0]
div dword [rcx + 0x30]
inc eax
mov rcx, qword [rsp + 0xd0]
cmp dword [rcx + 0x3c], eax
jne 0x1800596b4
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x1800597b4
mov rax, qword [rsp + 0xd0]
mov edx, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xd0]
call fcn.180050b80
mov rcx, qword [rsp + 0xd0]
cmp eax, dword [rcx + 0x3c]
jne 0x1800597b4
mov qword [rsp + 0xa0], 0
mov r9d, dword [rsp + 0x88]
lea r8, [rsp + 0xa0]
mov rax, qword [rsp + 0xd0]
mov edx, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xd0]
call fcn.1800536f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x180059752
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0xa0]
call fcn.1800536b0
cmp dword [rsp + 0x20], 0
je 0x180059762
mov eax, dword [rsp + 0x20]
jmp 0x18005987e
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x3c], eax
xor edx, edx
mov eax, dword [0x180129564]
mov rcx, qword [rsp + 0xd0]
div dword [rcx + 0x30]
inc eax
mov rcx, qword [rsp + 0xd0]
cmp dword [rcx + 0x3c], eax
jne 0x1800597b4
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0xd0]
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x50]
add rax, 0x1c
mov rcx, qword [rsp + 0xd0]
mov edx, dword [rcx + 0x3c]
mov rcx, rax
call fcn.180039260
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd0]
mov ecx, dword [rcx + 0x3c]
mov dword [rax], ecx
mov r9d, dword [rsp + 0x88]
mov r8, qword [rsp + 0xd8]
mov rax, qword [rsp + 0xe0]
mov edx, dword [rax]
mov rcx, qword [rsp + 0xd0]
call fcn.1800536f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180059828
mov eax, dword [rsp + 0x20]
jmp 0x18005987e
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180059866
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rax]
call fcn.1800536b0
mov rax, qword [rsp + 0xd8]
mov qword [rax], 0
mov rcx, qword [rsp + 0x30]
call fcn.1800536b0
mov rcx, qword [rsp + 0x48]
call fcn.1800536b0
mov eax, dword [rsp + 0x20]
add rsp, 0xb8
pop rdi
pop rsi
ret