Function at 0x463220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ae40
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x573054]
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 esi, ecx
push 4
lea ecx, [ebp - 0x48]
call fcn.00403fa0
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
call fcn.00409160
mov dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jne 0x4634b7
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00463d00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004058f0
test al, al
jne 0x4634ab
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x18], xmm0
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00464170
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 4
lea ebx, [esi + 8]
lea eax, [ebp - 0x18]
cmp eax, ebx
je 0x4632dd
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 0x4632e0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x46348e
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x40]
call fcn.00405910
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x44], 0
cmp byte [esi], 0
jne 0x463365
cmp edi, 0xffffffff
jne 0x46336e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x463471
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x40]
call fcn.00405910
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp eax, 0xa
jb 0x463315
cmp edi, 0xffffffff
je 0x463471
test edi, edi
je 0x463471
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x463391
mov eax, dword [eax]
test eax, eax
je 0x46338a
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x48], 0
push 0xc
lea ecx, [ebp - 0x28]
call fcn.00403fa0
lea ecx, [ebp - 0x28]
call fcn.004058d0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00471f70
push 0xc
lea ecx, [ebp - 0x5c]
call fcn.00403fa0
lea ecx, [ebp - 0x5c]
call fcn.004058d0
mov byte [ebp - 4], 0xa
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x28]
call fcn.00403360
lea ecx, [ebp - 0x28]
lea esi, [eax + 4]
call fcn.00403360
mov esi, dword [esi]
mov eax, dword [eax]
cmp eax, esi
je 0x463416
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 0
sub esi, eax
call fcn.00403360
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov eax, dword [eax]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x463450
push 4
lea ecx, [ebp - 0x44]
call fcn.00403fa0
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
call fcn.00409160
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebx]
push ecx
push dword [ecx]
mov ecx, ebx
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
call fcn.00464230
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.00409190
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
call fcn.0044ec50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0044ec50
jmp 0x46348e
lea eax, [ebp - 0x18]
cmp ebx, eax
je 0x46348e
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 4], ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.00463f80
mov byte [ebp - 4], 1
push 0x54
push dword [ebp - 0x18]
call fcn.0050f85c
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004032a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00409190
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.0050f48d
mov esp, ebp
pop ebp
ret