Function at 0x4a18b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e8f08
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 1
xorps xmm0, xmm0
mov dword [esp + 0x48], 0
push 0
movdqu xmmword [esp + 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x3c], eax
lea ebx, [esi + 0x10]
lea edi, [esi + 8]
mov ecx, ebx
call fcn.00424400
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4a1939
cmp byte [esi + 0x18], 0
jne 0x4a1b4b
lea ecx, [esi + 0xc]
call fcn.004288c0
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0xc]
call fcn.004287a0
mov eax, dword [esi + 8]
lea edi, [esi + 8]
cmp dword [eax + 4], 0
je 0x4a1910
cmp byte [esi + 0x18], 0
jne 0x4a1b4b
mov eax, dword [edi]
mov edi, 1
mov dword [esp + 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x4a195f
cmp ecx, 0xffffffff
je 0x4a195f
mov ecx, edi
lock xadd dword [eax], ecx
mov ecx, ebx
mov dword [esp + 0x48], 0
call fcn.004247e0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
cmp eax, 1
je 0x4a197d
test eax, eax
jne 0x4a1983
cmp dword [ecx + 0xc], 0x10
je 0x4a19a2
xor eax, eax
test dword [ecx + 8], 0x80000000
cmovne eax, edi
push eax
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x14]
inc eax
push eax
call fcn.00414b80
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
xorps xmm0, xmm0
add eax, ecx
movlpd qword [esp + 0x24], xmm0
cmp byte [esi + 0x18], 0
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
cdq
mov ecx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
jne 0x4a1aa1
cmp ebx, ecx
jg 0x4a1aa1
jl 0x4a19f6
cmp edi, eax
jae 0x4a1aa1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x18]
sub eax, edi
push ecx
push eax
mov eax, dword [esp + 0x24]
add eax, edi
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4a1a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x4a1a38
push 0x64
call fcn.0042a000
add esp, 4
jmp 0x4a1a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4a1b00
push 1
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4a1b00
add edi, dword [esp + 0x14]
lea ecx, [esi + 0x10]
adc ebx, 0
call fcn.00424400
push dword [esp + 0x14]
lea ecx, [esi + 8]
push 0
call fcn.00414cc0
lea ecx, [esi + 0x10]
mov byte [esi + 0x19], 1
call fcn.004247e0
cmp byte [esi + 0x18], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
je 0x4a19e4
push ebx
push edi
mov ecx, esi
call fcn.004a15d0
mov ecx, esi
call fcn.004a1600
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
mov ecx, dword [eax]
test ecx, ecx
je 0x4a1aee
lea ebx, [esi + 0x10]
lea edi, [esi + 8]
cmp ecx, 0xffffffff
je 0x4a1901
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
lea ebx, [esi + 0x10]
lea edi, [esi + 8]
test al, al
jne 0x4a1901
mov eax, dword [esp + 0x10]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
jmp 0x4a18fb
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a1b2b
cmp ecx, 0xffffffff
je 0x4a1b60
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x4a1b60
mov eax, dword [esp + 0x10]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
mov ecx, ebx
call fcn.004247e0
push dword [esp + 0x3c]
mov byte [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x3c
ret