Function at 0x46ea50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x630ffe
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6cd400]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x6cd400]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46eab7
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x1000
jbe 0x46ead8
mov dword [ebx + 4], 3
xor al, al
jmp 0x46ed0f
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebx + 0x2c]
mov ecx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46eb02
lea eax, [esp + 0x14]
push eax
sub ecx, esi
lea eax, [esp + 0x30]
push eax
lea eax, [ecx + 1]
push eax
push edx
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46ec4d
call esi
cmp eax, 0x3e5
je 0x46eb69
call fcn.00401520
mov edi, dword [eax + 0xf8]
lea esi, [eax + 0xf8]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push 0x68546c
push 0x6796b0
push esi
call dword [edi + 0x24]
add esp, 0x10
jmp 0x46ec6c
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 0x20]
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x46ec6c
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x30], 5
jge 0x46ec6c
call esi
cmp eax, 0x3e4
jne 0x46ec21
push 0xc8
call edi
mov eax, dword [case.0x79a990.0]
inc dword [ebx + 0x30]
test al, 1
jne 0x46ebea
or eax, 1
mov dword [case.0x79a990.0], eax
mov dword [esp + 0x40], 0
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov dword [esp + 0x40], 0xffffffff
push dword [ebx + 0x30]
mov eax, dword [0x6d66e8]
push 0x6852e4
push 0x6d66e8
call dword [eax + 0x14]
add esp, 0xc
lea eax, [esp + 0x28]
push 0
push eax
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x46eb94
jmp 0x46ec6c
call fcn.00401520
mov edi, dword [eax + 0xf8]
lea esi, [eax + 0xf8]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push 0x685418
push 0x6796b0
push esi
call dword [edi + 0x24]
add esp, 0x10
jmp 0x46ec6c
call fcn.00401520
push dword [ebx + 0x2c]
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x6853bc
push eax
call dword [ecx + 0x10]
add esp, 0xc
cmp dword [esp + 0x28], 0
jbe 0x46ec92
call fcn.00401520
push dword [ebx + 0x2c]
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x6853bc
push eax
call dword [ecx + 0x10]
add esp, 0xc
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x2c]
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x46eca4
sub edx, esi
lea eax, [edx + 1]
cmp eax, dword [esp + 0x2c]
je 0x46ed06
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46ecc0
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, dword [esp + 0x28]
je 0x46ed06
call fcn.00401520
mov edi, dword [eax + 0xf8]
lea esi, [eax + 0xf8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6853d8
push 0x6852cc
push esi
call dword [edi + 0x24]
add esp, 0x10
mov dword [ebx + 4], 4
xor al, al
jmp 0x46ed0f
mov dword [ebx + 4], 5
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret