Function at 0x4a3170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6f7e
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x64786c]
xor eax, ebp
mov dword [ebp - 0x30], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1e4], ecx
cmp dword [ebp + 0x14], 0
je 0x4a31b8
mov ecx, dword [ebp + 0x14]
add ecx, 4
call fcn.004ef740
cmp eax, 1
jae 0x4a31bd
jmp case.0x4a320b.1
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a9580
lea ecx, [ebp - 0xd]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004a95c0
movzx edx, byte [ebp - 0xd]
mov dword [ebp - 0x1e8], edx
mov eax, dword [ebp - 0x1e8]
sub eax, 2
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0xfd
ja case.0x4a320b.1
mov ecx, dword [ebp - 0x1e8]
movzx edx, byte [ecx + 0x4a3818]
jmp dword [edx*4 + 0x4a37ec]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a96b0
test eax, eax
je 0x4a323f
push 1
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x1e4]
add ecx, 0xb4
call fcn.004ad5a0
jmp case.0x4a320b.1
cmp dword [0x654810], 0
je 0x4a3252
jmp case.0x4a320b.1
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 0x1e4]
mov cl, byte [eax + 0x13e]
mov byte [ebp - 0x22], cl
mov edx, dword [ebp - 0x1e4]
mov al, byte [edx + 0x13f]
mov byte [ebp - 0x23], al
lea ecx, [ebp - 0x21]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004a95c0
movzx edx, byte [ebp - 0x21]
test edx, edx
jne 0x4a3311
lea eax, [ebp - 0x22]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a95c0
lea ecx, [ebp - 0x23]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004a95c0
push 0x647790
lea ecx, [ebp - 0x1c]
call fcn.004a9610
push 0x64778c
lea ecx, [ebp - 0x1c]
call fcn.004a95c0
push 0x64778d
lea ecx, [ebp - 0x1c]
call fcn.004a95c0
push 0x647794
lea ecx, [ebp - 0x1c]
call fcn.004a9660
mov edx, dword [0x647794]
push edx
movzx eax, byte [0x64778d]
push eax
movzx ecx, byte [0x64778c]
push ecx
movzx edx, word [0x647790]
push edx
movzx eax, byte [ebp - 0x23]
push eax
movzx ecx, byte [ebp - 0x22]
push ecx
mov ecx, dword [ebp - 0x1e4]
sub ecx, 0x2c
call fcn.004a2020
jmp 0x4a3328
movzx edx, byte [ebp - 0x21]
cmp edx, 1
jne 0x4a3328
mov ecx, dword [ebp - 0x1e4]
sub ecx, 0x2c
call fcn.004a2220
jmp case.0x4a320b.1
cmp dword [0x654810], 0
je 0x4a333b
jmp case.0x4a320b.1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a96b0
test eax, eax
je 0x4a33ac
push 0x5bfacc
push 0x104
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00403300
add esp, 0xc
push 0x5bfad8
lea edx, [ebp - 0x13c]
push edx
call fcn.00599840
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4a33ac
mov eax, dword [ebp - 0x2c]
push eax
push 1
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00597ba0
add esp, 4
push eax
mov edx, dword [ebp - 0x28]
push edx
call fcn.005996fa
add esp, 0x10
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0059951c
add esp, 4
jmp case.0x4a320b.1
cmp dword [0x654810], 0
je 0x4a33bf
jmp case.0x4a320b.1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1e4]
sub ecx, 0x2c
call fcn.004a5a90
jmp case.0x4a320b.1
mov dword [ebp - 0x144], 0
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a96b0
test eax, eax
jne 0x4a3403
mov dword [ebp - 0x140], 0
jmp 0x4a3420
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004a96b0
test eax, eax
jne 0x4a3420
mov dword [ebp - 0x144], 0
mov edx, dword [ebp - 0x144]
push edx
call fcn.004aae40
add esp, 4
push eax
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x1e4]
sub ecx, 0x2c
call fcn.004a1d80
jmp case.0x4a320b.1
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x1e4]
add ecx, 0xb4
call fcn.004adb50
jmp case.0x4a320b.1
lea edx, [ebp - 0x148]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004a96b0
test eax, eax
je 0x4a3570
lea ecx, [ebp - 0x168]
call fcn.00405060
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x148]
push eax
lea ecx, [ebp - 0x168]
call fcn.00405ee0
push 0
push 0x5bfadc
lea ecx, [ebp - 0x168]
call fcn.00405250
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x4a355e
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00597ba0
add esp, 4
cmp eax, 0x11
jb 0x4a355e
mov dword [ebp - 0x16c], 0
jmp 0x4a34f7
mov edx, dword [ebp - 0x16c]
add edx, 1
mov dword [ebp - 0x16c], edx
cmp dword [ebp - 0x16c], 6
jge 0x4a354f
mov eax, dword [ebp - 0x16c]
imul eax, eax, 3
mov ecx, dword [ebp - 0x14c]
movzx edx, byte [ecx + eax]
push edx
call fcn.00401880
add esp, 4
mov ebx, eax
shl ebx, 4
mov eax, dword [ebp - 0x16c]
imul eax, eax, 3
mov ecx, dword [ebp - 0x14c]
movzx edx, byte [ecx + eax + 1]
push edx
call fcn.00401880
add esp, 4
add ebx, eax
mov eax, dword [ebp - 0x16c]
mov byte [ebp + eax - 0x154], bl
jmp 0x4a34e8
lea ecx, [ebp - 0x154]
push ecx
call fcn.00408d60
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.00405190
jmp case.0x4a320b.1
lea ecx, [ebp - 0x19c]
call fcn.004969f0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x170]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004a96b0
test eax, eax
je 0x4a35ae
mov eax, dword [ebp - 0x170]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004972a0
jmp 0x4a35bb
push 0
lea ecx, [ebp - 0x19c]
call fcn.004972a0
push 0
push 0x8b
mov ecx, dword [ebp - 0x1e4]
sub ecx, 0x2c
call fcn.0049fb90
mov ecx, dword [ebp - 0x1e4]
add ecx, 0x80
call fcn.004032f0
push eax
mov ecx, dword [ebp - 0x1e4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x1e4]
mov ecx, dword [eax + 4]
mov edx, dword [edx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x19c]
call fcn.00496ae0
jmp case.0x4a320b.1
mov ecx, dword [ebp - 0x1e4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0x1c0]
jne 0x4a377d
mov ecx, dword [ebp + 0x14]
add ecx, 4
call fcn.004ef740
cmp eax, 5
jbe 0x4a377d
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a96b0
test eax, eax
je 0x4a377d
mov ecx, dword [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x1b4]
call fcn.00405120
mov dword [ebp - 4], 2
push 0
push 0x5bfae0
lea ecx, [ebp - 0x1b4]
call fcn.00405290
cmp eax, 1
jne 0x4a36c8
cmp dword [0x654810], 0
je 0x4a36a2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.00405190
jmp case.0x4a320b.1
mov dword [0x654810], 1
push 1
push 0x5bfae4
lea ecx, [ebp - 0x1b4]
call fcn.00405290
mov dword [0x654854], eax
jmp 0x4a376b
cmp dword [0x654810], 0
je 0x4a3757
lea ecx, [ebp - 0x1e0]
call fcn.004969f0
mov byte [ebp - 4], 3
push 0
push 0x5bfaec
push 0x5bfaf0
lea ecx, [ebp - 0x1e0]
call fcn.00403f10
test eax, eax
je 0x4a3725
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1e0]
call fcn.00496ae0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.00405190
jmp case.0x4a320b.1
mov dword [0x654810], 0
push 0
push str.cursor
lea ecx, [ebp - 0x1b4]
call fcn.00405290
mov dword [0x654854], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1e0]
call fcn.00496ae0
jmp 0x4a376b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.00405190
jmp case.0x4a320b.1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.00405190
mov ecx, dword [ebp - 0x1e4]
add ecx, 0x80
call fcn.004032f0
push eax
mov edx, dword [ebp - 0x1e4]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x1e4]
mov ecx, dword [ecx + 4]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
call eax
jmp case.0x4a320b.1
cmp dword [0x6443fc], 0
je case.0x4a320b.1
push 0
push 0xe140
push 0x111
mov ecx, dword [ebp - 0x1e4]
sub ecx, 0x28
call fcn.00494970
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0059709c
mov esp, ebp
pop ebp
ret 0x14