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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov edx, 0x651bed46
mov r13, rcx
lea rcx, [0x0041ba60]
call fcn.00411ed0
mov edx, 0x39421c22
mov rcx, rax
call fcn.00412120
lea rcx, section..rdata
test rax, rax
je 0x4083f4
cmp qword [rax], 0
lea rdx, [rax + 0x10]
cmovne rcx, rdx
call qword [r13 + 0x10]
mov r9d, 0x18
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rdx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
call qword [r13 + 0x18]
lea rcx, [0x0041ba20]
mov edx, 0x70f68522
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
call fcn.00411ed0
mov edx, 0x45124986
mov rcx, rax
call fcn.00412120
test rax, rax
mov rbx, rax
je 0x4087e5
cmp qword [rax], 0
je 0x40871e
lea rsi, [rax + 0x10]
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rdx, rax
mov rcx, rsi
call fcn.00413a40
mov edx, 3
lea rcx, [0x0041b065]
mov rsi, rax
call fcn.00413a40
mov rcx, rsi
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wfopen]
test rax, rax
mov rcx, rax
je 0x40872c
call qword [sym.imp.msvcrt.dll__fileno]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__get_osfhandle]
xor r9d, r9d
xor edx, edx
mov r8d, 0x1000002
cdqe
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x48], rax
mov rcx, rax
mov qword [rsp + 0x28], 0
call qword [r13 + 0x20]
test rax, rax
mov qword [rsp + 0x58], rax
je 0x408700
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov qword [rsp + 0x20], 0
mov rcx, rax
call qword [r13 + 0x28]
test rax, rax
mov qword [rsp + 0x40], rax
je 0x408700
mov rax, qword [rsp + 0x38]
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
cmp word [rsi + 6], 0
je 0x4086c4
movdqa xmm6, xmmword [0x0041e290]
lea rdi, [rsi + 0x18]
xor ebx, ebx
mov qword [rsp + 0x100], r13
lea r12, [rsp + 0x78]
lea rbp, [rsp + 0x70]
lea r14, [rsp + 0x60]
nop dword [rax]
movzx r10d, word [rsi + 0x14]
lea eax, [rbx + rbx*4]
mov edx, 0x19
lea rcx, [0x0041a020]
shl eax, 3
movzx eax, ax
add r10, rdi
lea r13, [r10 + rax]
call fcn.00411f60
lea rcx, [0x0041ba00]
movups xmmword [rax], xmm6
movzx edx, byte [r13]
mov r15, rax
mov byte [rax + 0x10], dl
movzx edx, byte [r13 + 1]
mov byte [rax + 0x11], dl
movzx edx, byte [r13 + 2]
mov byte [rax + 0x12], dl
movzx edx, byte [r13 + 3]
mov byte [rax + 0x13], dl
movzx edx, byte [r13 + 4]
mov byte [rax + 0x14], dl
movzx edx, byte [r13 + 5]
mov byte [rax + 0x15], dl
movzx edx, byte [r13 + 6]
mov byte [rax + 0x16], dl
movzx edx, byte [r13 + 7]
mov byte [rax + 0x17], dl
mov edx, 0x76139486
call fcn.00411ed0
mov rcx, r15
mov rdx, rax
call fcn.00402830
test rax, rax
js 0x4086af
movsxd rax, dword [r13 + 0xc]
mov r9d, 4
mov r8, r12
mov rdx, rbp
add rax, qword [rsp + 0x38]
mov rcx, 0xffffffffffffffff
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rax
movsxd rax, dword [r13 + 8]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x78], rax
call qword [0x0042a748]
test eax, eax
jne 0x408700
movsxd rax, dword [r13 + 0xc]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
lea r8, [rcx + rax]
mov rcx, 0xffffffffffffffff
call qword [0x0042a740]
test eax, eax
jne 0x408700
lea rax, [rsp + 0x64]
mov r9d, dword [rsp + 0x60]
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffffffffffff
call qword [0x0042a748]
test eax, eax
jne 0x408700
add ebx, 1
cmp word [rsi + 6], bx
ja 0x408570
mov r13, qword [rsp + 0x100]
mov rcx, 0xffffffffffffffff
call qword [0x0042a730]
mov rcx, qword [rsp + 0x48]
call qword [0x0042a730]
mov rcx, qword [rsp + 0x58]
call qword [0x0042a730]
mov rcx, qword [rsp + 0x50]
call qword [r13 + 0x30]
mov eax, 1
jmp 0x408702
xor eax, eax
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, section..rdata
xor edx, edx
jmp 0x40848d
lea rcx, [0x0042a8c0]
call fcn.004072d0
mov rsi, rax
lea rax, [0x0042a880]
mov qword [rsi], rax
lea rax, str.IOError
mov qword [rsi + 0x10], rax
mov rax, qword [rbx]
lea rcx, [rax + 0xd]
call fcn.004120e0
lea rdx, [0x0041b9e0]
mov rdi, rax
mov rcx, rax
call fcn.004079c0
mov rdx, rbx
mov rcx, rdi
call fcn.004079c0
lea rcx, [rsi + 0x18]
mov rdx, rdi
call fcn.00412cb0
mov rax, qword [rsi + 8]
test rax, rax
je 0x4087b0
mov rdi, qword [rax - 0x10]
lea rdx, [rax - 0x10]
lea rcx, [rdi - 8]
cmp rcx, 7
mov qword [rax - 0x10], rcx
ja 0x4087b0
lea rcx, [0x00423588]
call fcn.00412bf0
mov qword [rsi + 8], 0
mov rcx, rsi
mov qword [rsp + 0x20], 0x2e9
lea r9, str.io.nim
lea r8, str.open
lea rdx, str.IOError
call fcn.00415230
xor ecx, ecx
jmp 0x4084c1
lea rcx, section..rdata
xor edx, edx
call fcn.00413a40
mov edx, 3
lea rcx, [0x0041b065]
mov rbx, rax
call fcn.00413a40
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.msvcrt.dll__wfopen]
test rax, rax
mov rcx, rax
jne 0x4084c1
lea rcx, [0x0042a8c0]
call fcn.004072d0
mov ecx, 0xd
mov rsi, rax
lea rax, [0x0042a880]
mov qword [rsi], rax
lea rax, str.IOError
mov qword [rsi + 0x10], rax
call fcn.004120e0
lea rdx, [0x0041b9e0]
mov rcx, rax
mov rdi, rax
call fcn.004079c0
jmp 0x408779