Function at 0x140024bf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0xb80]
sub rsp, 0xc80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xb50], rax
mov rsi, rdx
mov rbx, rcx
mov rdx, rcx
lea rcx, [rbp + 0x312]
mov byte [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rbx
call fcn.14002ae90
lea rcx, [rsp + 0x40]
mov r8, rax
mov rbx, rax
call fcn.140017670
mov word [rbp + 0x90], ax
test rbx, rbx
je 0x140024c72
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140024c62
call qword [sym.imp.mfc120u.dll_Ordinal_1486]
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_1486]
movzx eax, word [rbp + 0x90]
mov qword [rsp + 0xcb0], rdi
mov qword [rsp + 0xc78], r12
mov qword [rsp + 0xc70], r13
mov qword [rsp + 0xc68], r14
mov qword [rsp + Ordinal_3170], r15
test ax, ax
jne 0x140025136
lea rcx, [rsp + 0x40]
call fcn.140017a20
test ax, ax
jne 0x140025136
lea rcx, [rsp + 0x40]
mov edx, 0x5858
call fcn.14001be70
test ax, ax
jne 0x140025136
xor r15d, r15d
mov ebx, 0xa
lea r12, [0x140000000]
mov ecx, r15d
movzx eax, byte [rcx + r12 + 0x342b8]
inc rcx
mov byte [rbp + rcx + 0x64f], al
test al, al
jne 0x140024ce0
movzx eax, byte [rbp + 0x650]
lea r8, [rbp + 0x650]
lea rdx, [rbp + 0x950]
test al, al
je 0x140024d51
mov r9, qword [0x14003d2f8]
cmp al, 0x20
jae 0x140024d29
movzx eax, al
movzx ecx, word [r12 + rax*2 + 0x31200]
jmp 0x140024d3e
cmp al, 0x80
jae 0x140024d32
movzx ecx, al
jmp 0x140024d3e
movzx eax, al
movzx ecx, word [r9 + rax*2 - 0x100]
movzx eax, byte [r8 + 1]
inc r8
mov word [rdx], cx
add rdx, 2
test al, al
jne 0x140024d17
mov word [rdx], r15w
lea rax, [rbp + 0x950]
mov edx, r15d
nop
cmp byte [rax], r15b
jne 0x140024d6b
cmp byte [rax + 1], r15b
je 0x140024d73
add rax, 2
inc edx
jmp 0x140024d60
mov rax, qword [rsp + 0x50]
mov ecx, 5
mov r8d, 0x100
mov word [rax], cx
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rbp + 0x950]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov ecx, 0x80c
mov word [rax + 0x20], r15w
mov rax, qword [rsp + 0x50]
add dx, dx
mov word [rax + 0x22], r8w
mov rax, qword [rsp + 0x50]
mov word [rax + 0x24], cx
mov rax, qword [rsp + 0x50]
lea rcx, [rbp + 0x450]
mov word [rax + 0x32], dx
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x50]
mov word [rax + 0x30], r8w
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx]
mov word [rbp + 0x90], cx
movzx eax, word [rdx + 2]
mov word [rbp + 0x30c], ax
test cx, cx
jne 0x1400250e2
movzx edx, word [rbp + 0x450]
lea rax, [rbp + 0x450]
mov r14d, 0x5f
test dx, dx
je 0x140024e51
cmp dx, 0x2d
jne 0x140024e3d
mov word [rax], r14w
movzx edx, word [rax + 2]
add rax, 2
test dx, dx
jne 0x140024e33
movzx edx, word [rbp + 0x450]
lea r9, [rbp + 0x450]
lea rcx, [rbp + 0x750]
movzx r8d, r15w
test dx, dx
je 0x140024eab
nop dword [rax + rax]
movzx eax, dx
shr ax, 8
test al, al
je 0x140024e91
mov byte [rcx], 0xf0
mov word [rcx + 1], dx
mov byte [rcx + 3], 0xf0
add rcx, 4
add r8w, 4
jmp 0x140024e9d
mov word [rcx], dx
add rcx, 2
add r8w, 2
movzx edx, word [r9 + 2]
add r9, 2
test dx, dx
jne 0x140024e70
mov dword [rcx], 0xcc
mov rcx, qword [rsi]
add r8w, 2
lea r9, [rsp + 0x30]
lea rdx, [rbp + 0x750]
movzx r8d, r8w
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140024f0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140024eef
mov eax, eax
mov ecx, dword [r12 + rax*4 + 0x310a0]
jmp 0x140024ef4
mov ecx, 0x106
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], r15b
mov rax, qword [rsp + 0x50]
mov edi, 6
mov word [rax], di
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rbp + 0x450]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov ecx, 0x100
mov word [rax + 0x20], cx
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx]
mov word [rbp + 0x90], cx
movzx eax, word [rdx + 2]
mov word [rbp + 0x30c], ax
test cx, cx
jne 0x1400250e2
inc bx
cmp bx, 0x64
jbe 0x140024f7f
movzx ebx, r15w
lea rdx, [0x140033b50]
xor ecx, ecx
movzx r8d, bx
call qword [0x140041aa8]
test ax, ax
jne 0x14002513b
movzx edx, word [rbp + 0x450]
lea rax, [rbp + 0x450]
test dx, dx
je 0x140024fce
nop
cmp dx, 0x2d
jne 0x140024fba
mov word [rax], r14w
movzx edx, word [rax + 2]
add rax, 2
test dx, dx
jne 0x140024fb0
movzx edx, word [rbp + 0x450]
lea r9, [rbp + 0x450]
lea rax, [rbp + 0x750]
movzx r8d, r15w
test dx, dx
je 0x140025020
movzx ecx, dx
shr cx, 8
test cl, cl
je 0x140025006
mov byte [rax], 0xf0
mov word [rax + 1], dx
mov byte [rax + 3], 0xf0
add rax, 4
add r8w, 4
jmp 0x140025012
mov word [rax], dx
add rax, 2
add r8w, 2
movzx edx, word [r9 + 2]
add r9, 2
test dx, dx
jne 0x140024fe5
mov rcx, qword [rsi]
add r8w, 2
lea r9, [rsp + 0x30]
lea rdx, [rbp + 0x750]
movzx r8d, r8w
mov dword [rax], 0xcc
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140025080
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140025064
mov eax, eax
mov ecx, dword [r12 + rax*4 + 0x310a0]
jmp 0x140025069
mov ecx, 0x106
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], r15b
mov rax, qword [rsp + 0x50]
mov word [rax], di
mov rcx, qword [rsp + 0x50]
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rbp + 0x450]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov ecx, 0x100
mov word [rax + 0x20], cx
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx]
mov word [rbp + 0x90], cx
movzx eax, word [rdx + 2]
mov word [rbp + 0x30c], ax
test cx, cx
je 0x140024f72
mov eax, 3
mov word [rdx], ax
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rsp + 0x50]
mov qword [rdx + 8], rcx
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, qword [rsp + 0x50]
movzx edx, word [rcx]
mov word [rbp + 0x90], dx
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, r15w
jmp 0x14002513e
mov edi, 0x64
movzx eax, di
mov r15, qword [rsp + 0xc60]
mov r14, qword [rsp + 0xc68]
mov r13, qword [rsp + 0xc70]
mov r12, qword [rsp + 0xc78]
mov rdi, qword [rsp + 0xcb0]
mov rcx, qword [rbp + 0xb50]
xor rcx, rsp
call fcn.14002c960
add rsp, 0xc80
pop rsi
pop rbx
pop rbp
ret