Function at 0x464960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476e1e
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x495094]
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 dword [ebp - 0x2c], edx
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4649bb
mov eax, dword [ecx]
jmp 0x4649bd
mov eax, ecx
push 0
push 0x486686
mov byte [eax], 0
call fcn.00401680
call fcn.00465f90
mov eax, dword [ebp - 0x68]
and eax, 0xfffffe07
mov dword [ebp - 0x64], 0
or eax, 7
mov dword [ebp - 0x60], 0
push 8
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], 0
call fcn.0042a15d
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 1
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f200
mov dword [esi], eax
mov dword [ebp - 0x70], esi
mov ebx, dword [ebp + 0xc]
sub esp, 8
mov eax, ebx
shr eax, 0x1f
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x488a70]
divsd xmm0, qword [0x488a18]
movsd qword [ebp - 0x58], xmm0
fld qword [ebp - 0x58]
fstp qword [esp]
call fcn.00461c50
add esp, 8
fstp qword [ebp - 0x58]
movsd xmm0, qword [ebp - 0x58]
call fcn.00472fa1
sub esp, 0x18
mov edi, eax
mov ecx, esp
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x30], esp
mov byte [ecx + 8], 2
and dword [ecx + 8], 0xfffffeff
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], edi
mov dword [ecx + 4], 0
push 0x486715
push 0x486714
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0046ad20
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0046cd80
sub esp, 0x18
lea ecx, [ebp + 0x10]
mov esi, esp
mov dword [ebp - 0x30], esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp + 0x24], 0x10
mov edx, dword [ebp + 0x20]
cmovae ecx, dword [ebp + 0x10]
call fcn.0046be20
mov dword [esi], eax
push 0x486770
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
push str.type
call fcn.0046ad20
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0046cd80
mov ecx, dword [ebp - 0x4c]
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x30], esp
mov byte [eax + 8], 2
and dword [eax + 8], 0xfffffeff
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax], ecx
mov dword [eax + 4], 0
push 0x486738
push str.colonyId
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.0046ad20
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0046cd80
mov ecx, dword [ebp - 0x2c]
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x30], esp
mov byte [eax + 8], 2
and dword [eax + 8], 0xfffffeff
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax], ecx
mov dword [eax + 4], 0
push 0x48671d
push str.cmdId
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.0046ad20
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0046cd80
xor eax, eax
test edi, edi
je 0x464e89
mov dword [ebp - 0x30], 0xc0000
mov byte [ebp - 0x40], 2
inc eax
mov edi, dword [ebp - 0x40]
and edi, 0xfffffeff
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
push 0x48673d
push 0x48673c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.0046ad20
mov byte [ebp - 4], 2
mov esi, eax
movzx ecx, byte [ebp - 0x40]
movsx edx, byte [esi + 8]
mov byte [esi + 8], cl
mov ecx, edi
mov eax, dword [esi]
xor ecx, edx
mov edx, dword [ebp - 0x4c]
movzx ecx, cl
xor edi, ecx
mov dword [esi], edx
mov ecx, dword [esi + 4]
mov dword [esi + 4], 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 8]
mov eax, ecx
xor eax, edi
and eax, 0x100
xor eax, ecx
xor ecx, edi
mov dword [esi + 8], eax
and ecx, 0x100
mov eax, dword [esi + 0xc]
xor edi, ecx
mov dword [esi + 0xc], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x40], edi
mov dword [esi + 0x14], 0
mov dword [ebp - 0x34], eax
call fcn.0046ce00
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xc0000
mov dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmovge eax, ecx
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push dword [eax]
push dword [ebp - 0x50]
call fcn.00401680
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x40], 4
mov ebx, dword [ebp - 0x40]
or ebx, 0x100
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x40], ebx
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.0046be20
mov esi, eax
mov dword [ebp - 0x48], esi
push 0x48677f
push 0x48677c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.0046ad20
mov edi, eax
movzx ecx, bl
mov eax, dword [ebp - 0x44]
movsx edx, byte [edi + 8]
mov byte [edi + 8], cl
mov ecx, ebx
xor ecx, edx
mov edx, dword [edi + 4]
mov dword [edi + 4], eax
movzx ecx, cl
xor ebx, ecx
mov dword [ebp - 0x44], edx
mov ecx, dword [edi]
mov dword [edi], esi
mov dword [ebp - 0x48], ecx
mov ecx, dword [edi + 8]
mov eax, ecx
xor eax, ebx
and eax, 0x100
xor eax, ecx
xor ecx, ebx
mov dword [edi + 8], eax
and ecx, 0x100
mov eax, dword [edi + 0xc]
xor ebx, ecx
mov dword [edi + 0xc], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x40], ebx
mov dword [edi + 0x14], 0
mov dword [ebp - 0x34], eax
call fcn.0046ce00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x464de0
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x464dd7
test cl, 0x1f
jne 0x464ea9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x464ea9
sub ecx, eax
cmp ecx, 4
jb 0x464ea9
cmp ecx, 0x23
ja 0x464ea9
mov ecx, eax
push ecx
call fcn.0042a190
add esp, 4
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00465b20
mov eax, dword [ebp - 0x18]
push 1
mov dword [ebp - 0x2c], eax
call fcn.00445aef
push eax
push 1
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0044643a
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
push 1
cmovae esi, dword [ebp - 0x28]
call fcn.00445aef
push eax
push dword [ebp - 0x2c]
push 1
push esi
call fcn.0044643a
push 1
call fcn.00445aef
push eax
call fcn.004461a9
mov eax, dword [ebp - 0x14]
add esp, 0x30
cmp eax, 0x10
jb 0x464e6a
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x464e61
test cl, 0x1f
jne 0x464ea9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x464ea9
sub ecx, eax
cmp ecx, 4
jb 0x464ea9
cmp ecx, 0x23
ja 0x464ea9
mov ecx, eax
push ecx
call fcn.0042a190
add esp, 4
mov ebx, dword [ebp + 0xc]
add dword [ebp - 0x50], 0xc0000
sub ebx, 0xc0000
mov eax, dword [ebp - 0x4c]
mov dword [ebp + 0xc], ebx
cmp eax, dword [ebp - 0x54]
jb 0x464bd2
lea ecx, [ebp - 0x70]
call fcn.0046ce00
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x464edb
mov ecx, dword [ebp + 0x10]
inc eax
cmp eax, 0x1000
jb 0x464ed2
test cl, 0x1f
je 0x464eae
call fcn.00445fcb
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x464eba
call fcn.00445fcb
sub ecx, eax
cmp ecx, 4
jae 0x464ec6
call fcn.00445fcb
cmp ecx, 0x23
jbe 0x464ed0
call fcn.00445fcb
mov ecx, eax
push ecx
call fcn.0042a190
add esp, 4
xor al, al
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.0042a14c
mov esp, ebp
pop ebp
ret