Function at 0x4f35e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x1b0
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x38], rbp
mov byte [rbp + 0x1d0], cl
mov qword [rbp + 0x1d8], rdx
mov qword [rbp + 0x1e0], r8
mov byte [rbp + 0x1e8], r9b
nop
nop
call sub.kernel32.dll_GetCurrentThreadId
cmp eax, dword [0x00b32188]
jne 0x4f3648
mov rcx, qword [rbp + 0x38]
lea rdx, [0x004f3b1b]
call fcn.0040f2d0
jmp 0x4f3b1b
cmp byte [0x00b2f424], 0
je 0x4f3676
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [0x00bb8ed8]
cmp eax, dword [rcx]
jne 0x4f3676
mov rcx, qword [rbp + 0x38]
lea rdx, [0x004f3b1b]
call fcn.0040f2d0
jmp 0x4f3b1b
call fcn.004f34e0
lea rcx, [rbp + 0x60]
call fcn.004100d0
lea rcx, [rbp + 0x1d8]
lea rdx, [rbp + 0x1e0]
lea r8, [rbp + 0x60]
lea r9, [rbp + 0x200]
call fcn.004ae080
cmp qword [rbp + 0x1d8], 0
je 0x4f3715
lea rcx, [rbp + 0x48]
call fcn.004100d0
mov rcx, qword [rbp + 0x1d8]
mov rdx, rax
lea r8, [rbp + 0x47]
lea r9, [0x004f3bdc]
mov byte [rsp + 0x20], 0
call fcn.004aca40
test al, al
je 0x4f3715
call fcn.00418340
mov rcx, qword [rbp + 0x1d8]
cmp rcx, qword [rax + 0x1a8]
jne 0x4f36f2
call fcn.004ae010
cmp byte [rbp + 0x1e8], 0
jne 0x4f3700
call fcn.004e31e0
mov rcx, qword [rbp + 0x38]
lea rdx, [0x004f3b1b]
call fcn.0040f2d0
jmp 0x4f3b1b
cmp qword [rbp + 0x1f0], 0
jne 0x4f372b
call fcn.005007c0
mov qword [rbp + 0x1f0], rax
cmp qword [rbp + 0x1f8], 0
jne 0x4f3741
call fcn.005007d0
mov qword [rbp + 0x1f8], rax
cmp qword [rbp + 0x200], 0
je 0x4f37ae
mov rax, qword [rbp + 0x200]
mov rcx, qword [rbp + 0x1e0]
cmp rcx, qword [rax + 0xf8]
jb 0x4f37ae
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x200]
mov rcx, qword [rcx + 0xf8]
neg rcx
lea rax, [rax + rcx]
cmp rax, 4
ja 0x4f37ae
mov rax, qword [rbp + 0x200]
mov rax, qword [rax + 0x98]
mov qword [rbp + 0x1f0], rax
mov rax, qword [rbp + 0x200]
mov rax, qword [rax + 0xa0]
mov qword [rbp + 0x1f8], rax
cmp qword [rbp + 0x1d8], 0
je 0x4f382c
cmp qword [0x00b2dd00], 0
je 0x4f382c
mov rcx, qword [rbp + 0x1d8]
lea rdx, [0x004f3bf0]
call fcn.004acb60
test al, al
je 0x4f382c
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x1e0]
call fcn.004c65a0
mov rcx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
call qword [rax + 0x708]
test al, al
je 0x4f382c
mov rax, qword [rbp + 0x1d8]
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x50], rax
lea rax, [rbp + 0x200]
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x50]
xor rdx, rdx
call qword [0x00b2dd00]
mov byte [rbp + 0x1e8], 0
call sub.kernel32.dll_GetCurrentThreadId
mov dword [rbp + 0xa8], eax
movzx rax, byte [rbp + 0x1d0]
mov byte [rbp + 0xac], al
mov rax, qword [rbp + 0x1d8]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 0xb8], rax
movzx rax, byte [rbp + 0x1e8]
mov byte [rbp + 0xc0], al
mov rax, qword [rbp + 0x1f0]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x1f8]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0x200]
mov qword [rbp + 0xd8], rax
call fcn.00418340
lea rdi, [rbp + 0xe0]
lea rsi, [rax + 0x688]
mov ecx, 0x13
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x178], rax
movzx rax, byte [rbp + 0x208]
mov byte [rbp + 0x180], al
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x218]
mov qword [rbp + 0x190], rax
cmp qword [rbp + 0x60], 0
je 0x4f3910
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x198], rax
mov rcx, qword [rbp + 0x60]
call fcn.004108b0
mov dword [rbp + 0x1a0], eax
jmp 0x4f3925
mov qword [rbp + 0x198], 0
mov dword [rbp + 0x1a0], 0
call fcn.00418340
mov rcx, qword [rbp + 0x1d8]
cmp rcx, qword [rax + 0x1a8]
jne 0x4f394f
call fcn.00418340
mov rax, qword [rax + 0x1a0]
mov qword [rbp + 0x1a8], rax
jmp 0x4f395a
mov qword [rbp + 0x1a8], 0
mov ecx, 0xfa
call fcn.004ac300
test al, al
je 0x4f3976
mov qword [rbp + 0xa0], 0
jmp 0x4f398e
xor rcx, rcx
or edx, 0xffffffff
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreateEventW
mov qword [rbp + 0xa0], rax
mov cl, 1
call fcn.004bee40
nop
cmp qword [rbp + 0xa0], 0
je 0x4f3a80
mov rcx, qword [0x00b321a0]
lea rdx, [rbp + 0xa0]
mov r8d, 0x110
lea r9, [rbp + 0x9c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x4f3a72
cmp dword [rbp + 0x9c], 0x110
jne 0x4f3a72
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [0x00bb8ed8]
cmp eax, dword [rcx]
jne 0x4f3a63
jmp 0x4f3a49
lea rcx, [rbp + 0x68]
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.user32.dll_GetMessageW
add eax, 1
cmp eax, 1
jbe 0x4f3a3f
cmp dword [rbp + 0x70], 0
jne 0x4f3a2b
cmp qword [0x00b2dc70], 0
je 0x4f3a2b
xor rcx, rcx
call qword [0x00b2dc70]
lea rcx, [rbp + 0x68]
call sub.user32.dll_TranslateMessage
lea rcx, [rbp + 0x68]
call sub.user32.dll_DispatchMessageW
jmp 0x4f3a49
mov ecx, dword [rbp + 0x78]
call sub.user32.dll_PostQuitMessage
jmp 0x4f3a60
mov rcx, qword [rbp + 0xa0]
xor rdx, rdx
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4f39f8
nop
jmp 0x4f3a72
mov rcx, qword [rbp + 0xa0]
or edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov rcx, qword [rbp + 0xa0]
call sub.kernel32.dll_CloseHandle
jmp 0x4f3a8c
lea rcx, [rbp + 0xa0]
call fcn.004f25d0
nop
xor rcx, rcx
call fcn.004bee40
call fcn.004ae010
cmp byte [0x00b2db3c], 0
je 0x4f3aa8
call fcn.004accd0
cmp qword [0x00bc36c8], 0
jne 0x4f3abc
cmp qword [0x00bc36d0], 0
je 0x4f3b0b
cmp qword [rbp + 0x1d8], 0
je 0x4f3b0b
mov rcx, qword [rbp + 0x1d8]
lea rdx, [0x004f3c10]
call fcn.004acb60
test al, al
jne 0x4f3af4
mov rcx, qword [rbp + 0x1d8]
lea rdx, [0x004f3c2c]
call fcn.004acb60
test al, al
je 0x4f3b0b
mov rax, qword [rbp + 0x1d8]
lea rcx, [rax + 8]
lea rdx, [0x004f3c44]
call fcn.004106d0
call fcn.004f3410
jmp 0x4f3b1a
nop
lea rcx, [rbp + 0x30]
call fcn.00415f60
lea rcx, [rbp + 0x48]
call fcn.004100d0
lea rcx, [rbp + 0x60]
call fcn.004100d0
lea rsp, [rbp + 0x1b0]
pop rsi
pop rdi
pop rbp
ret