Function at 0x18004b810
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rax, qword [0x18009b1a0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x178]
call fcn.180027e90
movzx eax, al
test eax, eax
je 0x18004b863
xor eax, eax
jmp 0x18004c1b8
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffff9e5
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffff9dd
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov rax, qword [rsp + 0x160]
add rax, 0x30
mov rcx, rax
call fcn.180027e90
movzx eax, al
test eax, eax
je 0x18004b8db
xor eax, eax
jmp 0x18004c1b8
mov eax, 5
mov word [rsp + 0x48], ax
movsx rax, word [rsp + 0x48]
lea rcx, [0x18009ae40]
cmp dword [rcx + rax*4], 1
jne 0x18004b91a
movsx rax, word [rsp + 0x48]
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x48]
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x160]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x160]
call fcn.18004b7a0
movzx eax, al
test eax, eax
jne 0x18004bb65
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffff9c8
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffff9c0
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
call fcn.180027cc0
test rax, rax
je 0x18004ba0d
call fcn.180027cc0
cmp qword [rax + 0x4d0], 0
je 0x18004ba0d
mov rax, qword [rsp + 0x160]
add rax, 0x30
mov rcx, rax
call fcn.18000be20
mov qword [rsp + 0xa0], rax
call fcn.180027cc0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rcx, qword [rsp + 0xa0]
call qword [rax + 0x4d0]
mov qword [rsp + 0x80], rax
jmp 0x18004ba19
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x60], rcx
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffff9b0
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov dword [rsp + 0x68], SafeArrayGetElement
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x68]
movsxd rcx, ecx
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x160]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x160]
call fcn.18004b7a0
movzx eax, al
test eax, eax
jne 0x18004ba9e
xor eax, eax
jmp 0x18004c1b8
mov dword [rsp + 0x54], 5
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x54]
movsxd rcx, ecx
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x160]
add rax, 0x30
mov rcx, rax
call fcn.18000be20
mov rcx, rax
call fcn.1800225d0
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x160]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rax, [0x1800a0814]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18004bb65
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x18004bb65
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
call fcn.18004caa0
mov rcx, qword [rsp + 0x160]
sub rax, qword [rcx + 0x70]
xor edx, edx
mov ecx, 0x2710
div rcx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x4c], 0
mov edx, 1
lea rcx, [rsp + 0x128]
call fcn.1800368b0
lea rcx, [rsp + 0x128]
call fcn.18001ec60
nop
mov dword [rsp + 0x120], 0
mov r9d, 8
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x108]
call fcn.18002f620
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x168]
add eax, 0x30
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x160]
add rcx, 0x18
mov qword [rsp + 0xd0], rcx
mov r9d, 8
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetDim
mov edx, dword [rsp + 0x60]
lea rcx, [rsp + 0xf0]
call fcn.18002f070
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x128]
call fcn.180024780
mov dx, 0x3a
mov rcx, rax
call fcn.180045ef0
mov rcx, qword [rsp + 0xd0]
mov rdx, rcx
mov rcx, rax
call fcn.180024780
mov dx, 0x3a
mov rcx, rax
call fcn.180045ef0
mov ecx, dword [rsp + 0x70]
movzx edx, cx
mov rcx, rax
call fcn.180045ef0
mov dx, 0x3a
mov rcx, rax
call fcn.180045ef0
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.180024780
mov dx, 0x3a
mov rcx, rax
call fcn.180045ef0
mov rdx, qword [rsp + 0x178]
mov rcx, rax
call fcn.180024780
mov r8, 0xffffffffffffffff
lea rdx, [0x1800a0818]
mov rcx, rax
call fcn.180024840
nop
lea rcx, [rsp + 0xf0]
call fcn.180013e90
nop
lea rcx, [rsp + 0x108]
call fcn.180013e90
mov dword [rsp + 0x58], 0xa
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x58]
movsxd rcx, ecx
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x18009ae40]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x18009ae40]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x18004bd97
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
mov r8d, 0x3e8
mov rax, qword [rsp + 0x160]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0x160]
call fcn.18004c950
mov byte [rsp + 0x44], al
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x160]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x50], eax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 2
lea r8, [0x18009ae40]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009ae40]
mov edx, 4
imul rdx, rdx, 1
lea r8, [0x18009ae40]
mov edx, dword [r8 + rdx]
cmp dword [rcx + rax], edx
jae 0x18004be59
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009ae40]
mov edx, dword [rcx + rax]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x50], 0xffffffff
je 0x18004bea2
cmp dword [rsp + 0x50], 0x2faf080
jbe 0x18004bea2
mov rcx, qword [rsp + 0x160]
call fcn.18004c520
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffff947
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
lea rcx, [rsp + 0x128]
call fcn.180002270
shl rax, 1
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x128]
call fcn.180030fd0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x120]
mov rcx, qword [rsp + 0x98]
mov r8d, ecx
mov rdx, rax
mov rax, qword [rsp + 0x160]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
cmp eax, 0xafc86afd
jne 0x18004bf2a
lea r8, [0x1800a0820]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rsp + 0xe8], rax
jmp 0x18004bf52
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x4c], 0
je 0x18004bfb5
mov rax, qword [rsp + 0x160]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [rsp + 0x64], SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [rsp + 0x64]
movsxd rcx, ecx
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
mov eax, 4
imul rax, rax, 2
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax]
xor eax, 0xfffff921
mov ecx, 4
imul rcx, rcx, 2
lea rdx, [0x18009ae40]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x4c], 0
je 0x18004bfe0
mov rax, qword [rsp + 0x160]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x160]
call fcn.18004b7a0
movzx eax, al
test eax, eax
jne 0x18004c17d
mov rax, qword [rsp + 0x160]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x160]
call fcn.18004b7a0
movzx eax, al
test eax, eax
je 0x18004c012
mov rax, qword [rsp + 0x160]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, reloc.OLEAUT32.dll_SafeArrayDestroy
mov word [rsp + 0x40], ax
movsx rax, word [rsp + 0x40]
lea rcx, [0x18009ae40]
cmp dword [rcx + rax*4], 1
jne 0x18004c051
movsx rax, word [rsp + 0x40]
lea rcx, [0x18009ae40]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x40]
lea rdx, [0x18009ae40]
mov dword [rdx + rcx*4], eax
call fcn.180027cc0
test rax, rax
je 0x18004c0ca
call fcn.180027cc0
cmp qword [rax + 0x4d0], 0
je 0x18004c0ca
mov rax, qword [rsp + 0x160]
add rax, 0x30
mov rcx, rax
call fcn.180030fd0
mov qword [rsp + 0xa8], rax
call fcn.180027cc0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
mov rcx, qword [rsp + 0xa8]
call qword [rax + 0x4d0]
mov qword [rsp + 0x88], rax
jmp 0x18004c0d6
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x60], rcx
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x160]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, qword [rsp + 0x160]
add rax, 0x30
mov rcx, rax
call fcn.18000be20
mov rcx, rax
call fcn.1800225d0
lea rcx, [rsp + 0x128]
call fcn.180002270
shl rax, 1
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0x128]
call fcn.180030fd0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x120]
mov rcx, qword [rsp + 0xb8]
mov r8d, ecx
mov rdx, rax
mov rax, qword [rsp + 0x160]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x4c], eax
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x18004c19f
mov rax, qword [rsp + 0x160]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0x160]
call fcn.18004c850
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x128]
call fcn.180013e90
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18005afa0
add rsp, 0x158
ret