Function at 0x10042ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x10043015
mov dword [ebp - 0x158], str.true
jmp 0x1004301f
mov dword [ebp - 0x158], str.false
mov eax, dword [ebp - 0x158]
push eax
push str.SV_WriteServerFile__s__n
call fcn.100387a0
add esp, 8
call fcn.1003c530
push eax
push 0x100909dc
push 0x80
lea ecx, [ebp - 0xa4]
push ecx
call fcn.10031f90
add esp, 0x10
push 0x100909f8
lea edx, [ebp - 0xa4]
push edx
call fcn.1005c29c
add esp, 8
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x1004308e
lea eax, [ebp - 0xa4]
push eax
push str.Couldnt_write__s_n
call fcn.10038500
add esp, 8
jmp 0x10043482
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
jne 0x1004319e
lea edx, [ebp - 0x17c]
push edx
call fcn.10042430
add esp, 4
lea eax, [ebp - 0x17c]
push eax
call fcn.10042410
add esp, 4
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x10]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 4]
cdq
mov ecx, 0xa
idiv ecx
push edx
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 4]
cdq
mov ecx, 0xa
idiv ecx
push eax
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 8]
push eax
push str._2i:_i_i__2i__2i
push 0x20
lea ecx, [ebp - 0x24]
push ecx
call fcn.10031f90
add esp, 0x20
lea edx, [ebp - 0x24]
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
add eax, 1
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x13c]
mov dl, byte [ecx]
mov byte [ebp - 0x12f], dl
add dword [ebp - 0x13c], 1
cmp byte [ebp - 0x12f], 0
jne 0x10043146
mov eax, dword [ebp - 0x13c]
sub eax, dword [ebp - 0x164]
mov dword [ebp - 0x160], eax
mov ecx, 0x1f
sub ecx, dword [ebp - 0x160]
push ecx
mov edx, 0x40
imul eax, edx, 0
add eax, 0x100c39d4
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.1005e3c0
add esp, 0xc
jmp 0x100431bf
mov edx, 0x40
imul eax, edx, 0
add eax, 0x100c39d4
push eax
push str.ENTERING__s
push 0x20
lea ecx, [ebp - 0x24]
push ecx
call fcn.10031f90
add esp, 0x10
mov edx, dword [ebp - 0x134]
push edx
push 0x20
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.1005c51c
add esp, 0x10
mov ecx, dword [ebp - 0x134]
push ecx
push 0x80
push 1
push 0x100bbf48
call fcn.1005c51c
add esp, 0x10
mov edx, dword [0x100fbe88]
mov dword [ebp - 0x12c], edx
jmp 0x1004320e
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x12c], ecx
cmp dword [ebp - 0x12c], 0
je 0x1004343b
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 0xc]
and eax, 0x10
jne 0x1004322b
jmp 0x100431ff
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x144]
mov dl, byte [ecx]
mov byte [ebp - 0x12e], dl
add dword [ebp - 0x144], 1
cmp byte [ebp - 0x12e], 0
jne 0x10043248
mov eax, dword [ebp - 0x144]
sub eax, dword [ebp - 0x168]
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0x7f
jae 0x100432d8
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x140]
mov dl, byte [ecx]
mov byte [ebp - 0x12d], dl
add dword [ebp - 0x140], 1
cmp byte [ebp - 0x12d], 0
jne 0x1004329f
mov eax, dword [ebp - 0x140]
sub eax, dword [ebp - 0x15c]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0x7f
jb 0x100432fd
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax]
push ecx
push str.Cvar_too_long:__s___s_n
call fcn.10038500
add esp, 0xc
jmp 0x100431ff
push 0x80
push 0
lea edx, [ebp - 0xa4]
push edx
call fcn.10060570
add esp, 0xc
push 0x80
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.10060570
add esp, 0xc
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
mov dword [ebp - 0x150], edx
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x150]
mov al, byte [edx]
mov byte [ebp - 0x126], al
mov ecx, dword [ebp - 0x148]
mov dl, byte [ebp - 0x126]
mov byte [ecx], dl
mov eax, dword [ebp - 0x150]
add eax, 1
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x148]
add ecx, 1
mov dword [ebp - 0x148], ecx
cmp byte [ebp - 0x126], 0
jne 0x1004334f
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x154], eax
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 0x154]
mov cl, byte [eax]
mov byte [ebp - 0x125], cl
mov edx, dword [ebp - 0x14c]
mov al, byte [ebp - 0x125]
mov byte [edx], al
mov ecx, dword [ebp - 0x154]
add ecx, 1
mov dword [ebp - 0x154], ecx
mov edx, dword [ebp - 0x14c]
add edx, 1
mov dword [ebp - 0x14c], edx
cmp byte [ebp - 0x125], 0
jne 0x100433b9
mov eax, dword [ebp - 0x134]
push eax
push 0x80
push 1
lea ecx, [ebp - 0xa4]
push ecx
call fcn.1005c51c
add esp, 0x10
mov edx, dword [ebp - 0x134]
push edx
push 0x80
push 1
lea eax, [ebp - 0x124]
push eax
call fcn.1005c51c
add esp, 0x10
jmp 0x100431ff
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.1005bae0
add esp, 4
call fcn.1003c530
push eax
push 0x10090a48
push 0x80
lea edx, [ebp - 0xa4]
push edx
call fcn.10031f90
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa4]
push ecx
mov edx, dword [0x100f976c]
mov eax, dword [edx + 0x10]
call eax
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret