Function at 0xc14990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0xdb6653
push eax
mov eax, 0x13a0
mov dword fs:[0], esp
call fcn.00c2a790
mov eax, dword fs:[0x2c]
mov ecx, dword [0xf36320]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0xf02f24]
cmp eax, dword [ecx + 0x480]
jg 0xc14bec
push esi
mov dword [ebp - 0x10], 0xf02f04
call dword [0xdc01ac]
mov esi, eax
cmp esi, dword [0xf02f04]
je 0xc14a05
mov edx, esi
mov ecx, 0xf02f04
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0xc14a05
pause
push esi
call fcn.00c1a540
jmp 0xc14a0c
lock inc dword [0xf02f08]
push ebx
push edi
mov dword [ebp - 4], 2
mov ebx, dword [ebp + 8]
cmp ebx, 2
je 0xc14a22
cmp ebx, 3
jne 0xc14a27
call fcn.00c1d700
xor edi, edi
cmp ebx, 2
jne 0xc14aa9
mov edx, dword [ebp + 0xc]
test edx, edx
je 0xc14aa9
mov cl, byte [edx]
mov eax, edx
test cl, cl
je 0xc14a76
lea ecx, [ecx]
cmp cl, 0x2f
je 0xc14a4a
cmp cl, 0x5c
jne 0xc14a69
cmp byte [eax + 1], 0x73
jne 0xc14a69
cmp byte [eax + 2], 0x72
jne 0xc14a69
cmp byte [eax + 3], 0x63
jne 0xc14a69
mov cl, byte [eax + 4]
cmp cl, 0x2f
je 0xc14a73
cmp cl, 0x5c
je 0xc14a73
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0xc14a40
jmp 0xc14a76
lea edx, [eax + 1]
push dword [ebp + 0x10]
lea eax, [ebp - 0x13ac]
push edx
push str._s___d__:
push 0x139b
push eax
call fcn.00c14c60
mov edi, eax
add esp, 0x14
cmp edi, 0x139a
jbe 0xc14aa4
mov edi, 0x139a
jmp 0xc14aa9
cmp edi, 0xffffffff
je 0xc14aea
push dword [ebp + 0x18]
mov esi, 0x139b
lea eax, [ebp - 0x13ac]
push 0
push dword [ebp + 0x14]
sub esi, edi
add eax, edi
push esi
push eax
call fcn.00b30160
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.00c39aca
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
dec esi
cmp eax, esi
cmovle esi, eax
cmp esi, ecx
jne 0xc14af4
mov esi, 2
jmp 0xc14bbd
add edi, esi
cmp ebx, 2
je 0xc14b00
cmp ebx, 3
jne 0xc14b6b
push 1
call fcn.00c3c4af
push eax
call fcn.00c3afcd
push 2
call fcn.00c3c4af
push eax
push edi
lea eax, [ebp - 0x13ac]
push 1
push eax
call fcn.00c3be89
push 2
call fcn.00c3c4af
push eax
push 0xa
call fcn.00c48daf
push 2
call fcn.00c3c4af
push eax
call fcn.00c3afcd
add esp, 0x30
cmp ebx, 2
jne 0xc14b6b
lea eax, [ebp - 0x13ac]
add eax, edi
push 0xdc15ac
push eax
call fcn.00b53d50
add esp, 8
lea eax, [ebp - 0x13ac]
push eax
call dword [0xdc0220]
lea eax, [ebp - 0x13ac]
push eax
push ebx
call dword [0xeaafb0]
add esp, 8
mov esi, eax
sub eax, 0
je 0xc14bad
sub eax, 2
jne 0xc14bbd
push str.Exiting_on_SPEW_ABORT_n
push 1
push str.console
call fcn.00c14920
add esp, 0xc
push 1
call dword [0xdc0180]
push eax
call dword [0xdc02fc]
jmp 0xc14bbd
cmp ebx, 2
je 0xc14bbd
call dword [0xdc0308]
test eax, eax
je 0xc14bbd
int3
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 4
lock dec dword [ecx]
cmp dword [ecx], 0
pop edi
pop ebx
jne 0xc14bdb
mov ecx, dword [ebp - 0x10]
xor edx, edx
xchg dword [ecx], edx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0xf02f24
call fcn.00c2a911
add esp, 4
cmp dword [0xf02f24], 0xffffffff
jne 0xc149d2
mov dword [ebp - 4], 0
mov ecx, 0xf02f0c
mov dword [0xf02f04], 0
mov dword [0xf02f08], 0
call fcn.00c19ff0
mov byte [ebp - 4], 0
push 0xdbf2b0
call fcn.00c2a6c3
mov dword [ebp - 4], 0xffffffff
push 0xf02f24
call fcn.00c2a8c7
add esp, 8
jmp 0xc149d2