Function at 0x4631b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ac60
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x575054]
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.00409150
mov dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jne 0x463447
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00463c90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004058f0
test al, al
jne 0x46343b
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x18], xmm0
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00464120
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 0x46326d
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 0x463270
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x46341e
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 0x4632f5
cmp edi, 0xffffffff
jne 0x4632fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x463401
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 0x4632a5
cmp edi, 0xffffffff
je 0x463401
test edi, edi
je 0x463401
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x463321
mov eax, dword [eax]
test eax, eax
je 0x46331a
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.00472150
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 0x4633a6
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 0x4633e0
push 4
lea ecx, [ebp - 0x44]
call fcn.00403fa0
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
call fcn.00409150
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.004641e0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.00409180
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
call fcn.0044ebc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0044ebc0
jmp 0x46341e
lea eax, [ebp - 0x18]
cmp ebx, eax
je 0x46341e
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.00463f10
mov byte [ebp - 4], 1
push 0x54
push dword [ebp - 0x18]
call fcn.0050f64c
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.00409180
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.0050f27d
mov esp, ebp
pop ebp
ret