Function at 0x426690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e158
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x62f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov ecx, 0x6355a1
call fcn.00561ea5
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0
lea esi, [ebx + 4]
mov dword [ebp - 0x50], esi
test esi, esi
je 0x4266ef
mov eax, dword [esi]
test eax, eax
je 0x4266ef
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
cmp dword [ebx + 0x18], 0
jne 0x426969
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.00427270
mov byte [ebp - 4], 2
cmp dword [ebp - 0x3c], 0
je 0x42694f
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x18], xmm0
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004287d0
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 9
add ebx, 8
lea eax, [ebp - 0x18]
cmp eax, ebx
je 0x426760
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebx + 4], eax
jmp 0x426763
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x58], ecx
test ecx, ecx
je 0x426932
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push 0
cmovae eax, dword [ebp - 0x4c]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x54], 0
nop dword [eax + eax]
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
jne 0x4267f6
cmp edi, 0xffffffff
jne 0x4267ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x426915
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push 0
cmovae eax, dword [ebp - 0x4c]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x54]
mov edi, eax
inc ecx
mov dword [ebp - 0x54], ecx
cmp ecx, 0xa
jb 0x4267a0
cmp edi, 0xffffffff
je 0x426915
test edi, edi
je 0x426915
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x426822
mov eax, dword [eax]
test eax, eax
je 0x42681b
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x50], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00431700
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0x17
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp ecx, eax
je 0x4268b0
push 0
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push edx
sub eax, ecx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4268f4
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x54], esi
test esi, esi
je 0x4268cf
mov eax, dword [esi]
test eax, eax
je 0x4268cf
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebx]
push ecx
push dword [ecx]
mov ecx, ebx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.004288a0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x54]
call fcn.0040c6d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x34]
call fcn.00428280
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.00428280
jmp 0x426932
lea eax, [ebp - 0x18]
cmp ebx, eax
je 0x426932
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 4], ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x18]
call fcn.00427790
mov byte [ebp - 4], 2
push 0x54
push dword [ebp - 0x18]
call fcn.0052f594
add esp, 8
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x4c]
call fcn.00404570
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0x20
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x42698b
mov eax, dword [eax]
test eax, eax
je 0x426984
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f553
mov esp, ebp
pop ebp
ret