Function at 0x4598c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdfcb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov esi, dword [ebp + 8]
mov eax, dword [edi + 0x88]
mov dword [ebp - 0x58], esi
cmp dword [esi], eax
jl 0x459bcc
call fcn.0045a240
lea eax, [ebp - 0x90]
mov ecx, esi
push eax
call fcn.0045f8b0
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x459943
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x45993b
mov eax, dword [esi]
mov word [eax + ecx], 0xa
jmp 0x459954
push 0xa
mov byte [ebp - 0x3c], 0
push dword [ebp - 0x3c]
push ecx
mov ecx, esi
call fcn.0042d360
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x4599bf
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4599b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459be9
push edx
push ecx
call fcn.00479e95
add esp, 8
push 2
push 0x4eb618
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.0041d240
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0x10
lea ecx, [ebp - 0x54]
push 1
cmovae eax, dword [ebp - 0x70]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x60]
push 0x4ed4d4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
call fcn.0041d240
mov byte [ebp - 4], 4
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x34]
cmovae eax, dword [ebp - 0x54]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0045e1a0
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x459a90
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x459a86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459bee
push edx
push ecx
call fcn.00479e95
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
cmp edx, 0x10
jb 0x459ada
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x459ad0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459bee
push edx
push ecx
call fcn.00479e95
add esp, 8
xorps xmm0, xmm0
lea esi, [edi + 0x44]
push esi
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [edi + 0x60]
test edi, edi
je 0x459aff
lock inc dword [edi + 4]
mov eax, dword [ebp - 0x38]
mov edi, dword [eax + 0x60]
jmp 0x459b02
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x5c]
push esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x459b36
mov eax, dword [eax]
jmp 0x459b39
or eax, 0xffffffff
push 0
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x459bf3
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x8c]
mov ecx, dword [ebp - 0x58]
cmp dword [ecx], eax
jl 0x459b77
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x459b6d
mov eax, dword [eax]
jmp 0x459b70
or eax, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test edi, edi
je 0x459b9c
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x459b9c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x459b9c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x459bcc
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x459bc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459c12
push edx
push ecx
call fcn.00479e95
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret 4
call fcn.0049b19a
call fcn.0049b19a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xa4]
call fcn.0046c5f0
push 0x50271c
mov eax, ecx
push eax
call fcn.00491d27
call fcn.0049b19a
int3