Function at 0x51f3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, 0x16a2
mov word [ebp - 0x10], ax
cmp dword [ebp + 8], 0
jl 0x51f3d1
cmp dword [ebp + 8], 0x109
jle 0x51f3e8
push 0x11c1
push str.C:devworkspaces_repo_clonesClean_UrbanChaosMuckyFoot_UrbanChaos_fallenEditorSourceprim_edit.cpp
push str.ASSERT_TRIGGERED
call fcn.0049b8f0
add esp, 0xc
mov ecx, dword [ebp + 8]
shl ecx, 4
add ecx, dword [0x2596fc8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
push edx
push str.serverprims_nprim_03d.prm
lea eax, [ebp - 0x11c]
push eax
call fcn.0041e320
add esp, 0xc
push 0x717e54
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00690360
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x51f433
xor eax, eax
jmp 0x51f611
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0xf]
and eax, 0xfffffffd
mov ecx, dword [ebp - 4]
mov byte [ecx + 0xf], al
mov edx, dword [ebp - 4]
movzx eax, word [edx + 4]
mov dword [ebp - 0xc], eax
jmp 0x51f458
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 6]
cmp dword [ebp - 0xc], eax
jge 0x51f4d8
imul ecx, dword [ebp - 0xc], 0x22
mov edx, dword [0x2596fc0]
movzx eax, byte [edx + ecx + 1]
and eax, 0x80
jne 0x51f48e
imul ecx, dword [ebp - 0xc], 0x22
mov edx, dword [0x2596fc0]
movzx eax, word [edx + ecx + 0x1e]
and eax, 0x40
je 0x51f4d3
imul ecx, dword [ebp - 0xc], 0x22
mov edx, dword [0x2596fc0]
movzx eax, word [edx + ecx + 0x1e]
or eax, 0x40
imul ecx, dword [ebp - 0xc], 0x22
mov edx, dword [0x2596fc0]
mov word [edx + ecx + 0x1e], ax
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [0x2596fc8]
movzx edx, byte [ecx + eax + 0xf]
or edx, 2
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [0x2596fc8]
mov byte [ecx + eax + 0xf], dl
jmp 0x51f44f
mov edx, dword [ebp - 4]
movzx eax, word [edx + 2]
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
sub eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0xa]
mov edx, dword [ebp - 4]
movsx eax, word [edx + 8]
sub ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 6]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 4]
sub edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 8]
push edx
push 1
push 2
lea eax, [ebp - 0x10]
push eax
call fcn.006cf670
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
push 1
push 0x20
mov edx, dword [ebp + 8]
shl edx, 5
add edx, 0x26d37d8
push edx
call fcn.006cf670
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
push 1
push 0x10
mov ecx, dword [ebp + 8]
shl ecx, 4
add ecx, dword [0x2596fc8]
push ecx
call fcn.006cf670
add esp, 0x10
cmp eax, 1
je 0x51f56d
jmp 0x51f603
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 6
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
imul eax, edx, 6
add eax, dword [0x2596fbc]
push eax
call fcn.006cf670
add esp, 0x10
cmp eax, dword [ebp - 0x14]
je 0x51f598
jmp 0x51f603
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0x1c
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 8]
imul edx, ecx, 0x1c
add edx, dword [0x2596fc4]
push edx
call fcn.006cf670
add esp, 0x10
cmp eax, dword [ebp - 0x18]
je 0x51f5c4
jmp 0x51f603
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x22
mov edx, dword [ebp - 4]
movzx eax, word [edx + 4]
imul ecx, eax, 0x22
add ecx, dword [0x2596fc0]
push ecx
call fcn.006cf670
add esp, 0x10
cmp eax, dword [ebp - 0x1c]
je 0x51f5f0
jmp 0x51f603
mov edx, dword [ebp - 8]
push edx
call fcn.0068fac0
add esp, 4
mov eax, 1
jmp 0x51f611
mov eax, dword [ebp - 8]
push eax
call fcn.0068fac0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret