Function at 0x1401900b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xf0
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp + 0x98], rbx
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xa8], rdi
mov rax, qword [0x140324030]
xor rax, rbp
mov qword [rbp + 0x50], rax
mov r13, rcx
mov qword [rbp + 0x18], rcx
add rcx, 0xfef0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r12d, r12d
mov dword [rbp], r12d
lea r14, [r13 + 0x233]
lea rsi, [r13 + 0x53]
xor r13d, r13d
nop dword [rax]
lea rdx, [0x140224a18]
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea rdx, [0x140224a18]
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea rcx, [rbp + 0x48]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rdx, [rbp + 0x10]
lea rcx, [0x14034e310]
call fcn.14003a6e0
nop
lea r8, str.BufferPanelLoadInfo__d.dat
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14003a710
nop
mov r8d, r12d
mov rdx, qword [rax]
lea rcx, [rbp + 0x48]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
nop
lea rcx, [rbp + 8]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x10]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov r15d, 0x1e
movabs r12, 0xffffffffffffff0
nop word [rax + rax]
lea r8, [rsi + 0x216]
test r8, r8
je 0x140190226
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [r8 + rcx], 0
jne 0x1401901c0
inc ecx
cmp ecx, 0x3fffffff
jg 0x140190226
movsxd rax, ecx
add rax, rax
lea rdx, [rax + 0xf]
cmp rdx, rax
ja 0x1401901e6
mov rdx, r12
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1401ea950
sub rsp, rdx
lea rdi, [rsp + 0x90]
test rdi, rdi
je 0x140190226
mov word [rdi], r13w
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
cmove rdi, r13
jmp 0x140190229
mov rdi, r13
test rsi, rsi
je 0x14019029a
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140190232
inc ecx
cmp ecx, 0x3fffffff
jg 0x14019029a
movsxd rax, ecx
add rax, rax
lea rdx, [rax + 0xf]
cmp rdx, rax
ja 0x140190257
mov rdx, r12
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1401ea950
sub rsp, rdx
lea rbx, [rsp + 0x90]
test rbx, rbx
je 0x14019029a
mov word [rbx], r13w
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
cmove rbx, r13
jmp 0x14019029d
mov rbx, r13
movzx ecx, byte [r14 - 0x16]
movzx edx, word [r14 - 0x1a]
movzx r8d, word [r14 - 0x18]
mov rax, qword [r14 + 0x1b7]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rbx
mov eax, dword [r14]
mov dword [rsp + 0x68], eax
mov eax, dword [r14 - 4]
mov dword [rsp + 0x60], eax
mov eax, dword [r14 - 8]
mov dword [rsp + 0x58], eax
mov eax, dword [r14 - 0xc]
mov dword [rsp + 0x50], eax
mov eax, dword [r14 - 0x10]
mov dword [rsp + 0x48], eax
mov eax, dword [r14 - 0x14]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov eax, dword [r14 - 0x1e4]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
mov r9, qword [r14 - 0x22]
mov r8, qword [r14 - 0x2a]
lea rdx, str.PanelIndex_I64d___InspResult_I64d___SlotNr_d___ActModel_d___PanelSide_d___isGood_d___finalDecision_d___rev1_d___rev2_d___rev3_d___rev4_d___rev5_d___MachineUID_s___Barcode_s___FlipIndex___I64d_r_n
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_1658]
add rsi, reloc.mfc110u.dll_Ordinal_956
add r14, reloc.mfc110u.dll_Ordinal_956
dec r15
jne 0x1401901b0
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
mov rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
lea rdx, [0x14026a5b0]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.MSVCR110.dll_fopen]
mov rdi, rax
test rax, rax
je 0x1401903b0
mov rcx, qword [rbp + 0x28]
movsxd rbx, dword [rcx - 0x10]
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_4831]
mov rcx, rax
mov r9, rdi
lea r8d, [r15 + 1]
mov rdx, rbx
call qword [sym.imp.MSVCR110.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.MSVCR110.dll_fclose]
nop
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rbp + 0x48]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov r12d, dword [rbp]
inc r12d
mov dword [rbp], r12d
cmp r12d, 2
jl 0x140190120
mov rcx, qword [rbp + 0x18]
add rcx, 0xfee0
mov rax, qword [rcx]
call qword [rax + gethostname]
mov rcx, qword [rbp + 0x50]
xor rcx, rbp
call fcn.1401e3980
mov rbx, qword [rbp + 0x98]
mov rsi, qword [rbp + 0xa0]
mov rdi, qword [rbp + 0xa8]
lea rsp, [rbp + 0x60]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret