Function at 0x4a3500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x154], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0x10]
push 0x2716
mov dword [ebp - 0x10c], eax
call fcn.00593e38
mov ebx, eax
push 0x2716
mov dword [ebp - 0x11c], ebx
call fcn.00593e38
mov esi, eax
push 0x138b
mov dword [ebp - 0x128], esi
call fcn.00593e38
add esp, 0xc
mov dword [ebp - 0x12c], eax
test ebx, ebx
je 0x4a3bf5
test esi, esi
je 0x4a3bf5
test eax, eax
je 0x4a3bf5
mov ecx, dword [ebp + 0x14]
mov eax, 1
shl ax, cl
xor esi, esi
dec ax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x168], eax
dec ecx
movzx eax, ax
mov dword [ebp - 0x118], eax
mov eax, 1
shl ax, cl
push edi
movzx edi, ax
push 0x2716
push esi
push ebx
lea eax, [edi + 1]
mov dword [ebp - 0x13c], esi
movzx eax, ax
mov dword [ebp - 0x14c], eax
lea eax, [edi + 2]
mov dword [ebp - 0x16c], eax
movzx eax, ax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x160], 0xffffffff
mov dword [ebp - 0x150], esi
call fcn.00595760
mov edx, dword [ebp + 0x14]
add esp, 0xc
movsx eax, di
mov dword [ebp - 0x158], eax
mov ebx, eax
mov dword [ebp - 0x108], edx
cmp edx, 8
jl 0x4a3673
mov edi, edx
mov ecx, edx
shr edi, 3
lea eax, [edi*8]
sub ecx, eax
mov dword [ebp - 0x108], ecx
jmp 0x4a3630
mov byte [ebp + esi - 0x104], bl
inc esi
cmp esi, 0xfe
jl 0x4a366a
mov eax, dword [ebp - 0x10c]
push dword [eax]
push esi
call fcn.005958b3
mov eax, dword [ebp - 0x10c]
push dword [eax]
lea eax, [ebp - 0x104]
push 1
push esi
push eax
call fcn.0059628c
add esp, 0x18
xor esi, esi
sar ebx, 8
dec edi
jne 0x4a3630
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x120]
cmp ax, word [ebp - 0x118]
jle 0x4a36af
lea ecx, [edx + 1]
mov dword [ebp - 0x114], ecx
cmp ecx, 0xc
jne 0x4a369c
mov dword [ebp - 0x118], 0x1000
jmp 0x4a36af
mov eax, 1
shl ax, cl
dec ax
movzx eax, ax
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp + 0x1c]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x138], eax
test ecx, ecx
jle 0x4a3a7e
mov edx, dword [ebp + 0x18]
lea ecx, [ecx]
test eax, eax
jne 0x4a371b
push dword [ebp + 0x20]
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x160]
push eax
mov eax, dword [ebp - 0x148]
push ecx
push edx
push dword [eax + 8]
push dword [ebp - 0x154]
call fcn.004a3c10
mov edx, dword [ebp + 0x18]
add esp, 0x24
mov ecx, dword [ebp + 0x1c]
movzx edi, ax
mov dword [ebp - 0x110], edi
xor eax, eax
cmp dword [ebp - 0x138], eax
sete al
cmp eax, edx
jge 0x4a3a69
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x144], ecx
jmp 0x4a3740
push dword [ebp + 0x20]
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x160]
push eax
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x148]
push edx
push dword [eax + 8]
push dword [ebp - 0x154]
call fcn.004a3c10
and eax, 0xff
movsx ecx, di
mov dword [ebp - 0x140], eax
add esp, 0x24
cwde
mov edi, eax
mov dword [ebp - 0x134], eax
shl edi, 4
mov eax, ecx
add edi, eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x130], edi
cmp edi, 0x138b
jl 0x4a37b8
sub edi, 0x138b
mov dword [ebp - 0x130], edi
mov ecx, dword [ebp - 0x11c]
mov edx, 1
movzx ecx, word [ecx + edi*2]
mov dword [ebp - 0x164], ecx
test cx, cx
jle 0x4a386e
mov ecx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x110]
cmp word [ecx + edi*2], ax
mov ecx, dword [ebp - 0x164]
jne 0x4a3804
mov eax, dword [ebp - 0x12c]
movzx eax, byte [edi + eax]
cmp eax, dword [ebp - 0x134]
je 0x4a3a4e
test edi, edi
je 0x4a3810
mov edx, 0x138b
sub edx, edi
nop
sub edi, edx
mov dword [ebp - 0x130], edi
jns 0x4a3826
add edi, 0x138b
mov dword [ebp - 0x130], edi
mov eax, dword [ebp - 0x11c]
cmp word [eax + edi*2], 0
mov eax, dword [ebp - 0x110]
je 0x4a3868
mov ecx, dword [ebp - 0x128]
cmp word [ecx + edi*2], ax
mov ecx, dword [ebp - 0x134]
jne 0x4a3810
mov eax, dword [ebp - 0x12c]
movzx eax, byte [edi + eax]
cmp eax, ecx
jne 0x4a3810
mov eax, dword [ebp - 0x11c]
movzx edi, word [eax + edi*2]
jmp 0x4a3a51
mov eax, dword [ebp - 0x124]
mov edx, dword [ebp - 0x108]
test edx, edx
jle 0x4a3880
mov ecx, edx
shl eax, cl
or ebx, eax
jmp 0x4a3882
mov ebx, eax
mov ecx, dword [ebp - 0x114]
add edx, ecx
mov dword [ebp - 0x108], edx
cmp edx, 8
jl 0x4a390c
mov edi, dword [ebp - 0x10c]
mov ecx, edx
shr ecx, 3
mov eax, ecx
mov dword [ebp - 0x124], ecx
neg eax
lea edx, [edx + eax*8]
mov dword [ebp - 0x108], edx
jmp 0x4a38c0
mov byte [ebp + esi - 0x104], bl
inc esi
cmp esi, 0xfe
jl 0x4a38f4
push dword [edi]
push esi
call fcn.005958b3
push dword [edi]
lea eax, [ebp - 0x104]
push 1
push esi
push eax
call fcn.0059628c
mov ecx, dword [ebp - 0x124]
add esp, 0x18
xor esi, esi
sar ebx, 8
dec ecx
mov dword [ebp - 0x124], ecx
jne 0x4a38c0
mov edi, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x120]
cmp dx, word [ebp - 0x118]
jle 0x4a3946
inc ecx
mov dword [ebp - 0x114], ecx
cmp ecx, 0xc
jne 0x4a3933
mov dword [ebp - 0x118], 0x1000
jmp 0x4a3946
mov eax, 1
shl ax, cl
dec ax
movzx ecx, ax
mov dword [ebp - 0x118], ecx
mov eax, 0x1000
cmp dx, ax
jge 0x4a3985
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x128]
mov word [eax + edi*2], dx
inc edx
mov eax, dword [ebp - 0x110]
mov word [ecx + edi*2], ax
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x120], edx
mov byte [edi + eax], cl
jmp 0x4a3a4e
push 0x2716
push 0
push dword [ebp - 0x11c]
call fcn.00595760
mov eax, dword [ebp - 0x16c]
add esp, 0xc
mov ecx, dword [ebp - 0x108]
movzx eax, ax
mov dword [ebp - 0x120], eax
test ecx, ecx
jle 0x4a39bf
mov eax, dword [ebp - 0x158]
shl eax, cl
or ebx, eax
jmp 0x4a39c5
mov ebx, dword [ebp - 0x158]
add ecx, dword [ebp - 0x114]
mov dword [ebp - 0x108], ecx
cmp ecx, 8
jl 0x4a3a30
mov edi, ecx
shr edi, 3
mov eax, edi
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x108], ecx
jmp 0x4a39f0
mov byte [ebp + esi - 0x104], bl
inc esi
cmp esi, 0xfe
jl 0x4a3a2a
mov eax, dword [ebp - 0x10c]
push dword [eax]
push esi
call fcn.005958b3
mov eax, dword [ebp - 0x10c]
push dword [eax]
lea eax, [ebp - 0x104]
push 1
push esi
push eax
call fcn.0059628c
add esp, 0x18
xor esi, esi
sar ebx, 8
dec edi
jne 0x4a39f0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x168]
movzx eax, ax
mov dword [ebp - 0x118], eax
movzx edi, cx
dec dword [ebp - 0x144]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x110], edi
jne 0x4a3740
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x138]
inc eax
mov dword [ebp - 0x138], eax
cmp eax, ecx
jl 0x4a36d0
mov ecx, dword [ebp - 0x108]
test ecx, ecx
jle 0x4a3a91
movsx eax, di
shl eax, cl
or ebx, eax
jmp 0x4a3a94
movsx ebx, di
mov edx, dword [ebp - 0x114]
add ecx, edx
cmp ecx, 8
jl 0x4a3b0c
mov edi, ecx
shr edi, 3
mov eax, edi
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x108], ecx
jmp 0x4a3ac0
mov byte [ebp + esi - 0x104], bl
inc esi
cmp esi, 0xfe
jl 0x4a3afa
mov eax, dword [ebp - 0x10c]
push dword [eax]
push esi
call fcn.005958b3
mov eax, dword [ebp - 0x10c]
push dword [eax]
lea eax, [ebp - 0x104]
push 1
push esi
push eax
call fcn.0059628c
add esp, 0x18
xor esi, esi
sar ebx, 8
dec edi
jne 0x4a3ac0
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x120]
cmp ax, word [ebp - 0x118]
jle 0x4a3b1c
inc edx
mov eax, dword [ebp - 0x14c]
test ecx, ecx
jle 0x4a3b2d
cwde
shl eax, cl
or ebx, eax
jmp 0x4a3b30
movsx ebx, ax
add ecx, edx
cmp ecx, 8
jl 0x4a3b96
mov edi, ecx
shr edi, 3
mov eax, edi
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x108], ecx
lea esp, [esp]
mov byte [ebp + esi - 0x104], bl
inc esi
cmp esi, 0xfe
jl 0x4a3b8a
mov eax, dword [ebp - 0x10c]
push dword [eax]
push esi
call fcn.005958b3
mov eax, dword [ebp - 0x10c]
push dword [eax]
lea eax, [ebp - 0x104]
push 1
push esi
push eax
call fcn.0059628c
add esp, 0x18
xor esi, esi
sar ebx, 8
dec edi
jne 0x4a3b50
mov ecx, dword [ebp - 0x108]
pop edi
test ecx, ecx
jle 0x4a3bab
mov byte [ebp + esi - 0x104], bl
inc esi
cmp esi, 0xfe
jge 0x4a3baf
test esi, esi
jle 0x4a3bd1
mov ebx, dword [ebp - 0x10c]
push dword [ebx]
push esi
call fcn.005958b3
push dword [ebx]
lea eax, [ebp - 0x104]
push 1
push esi
push eax
call fcn.0059628c
add esp, 0x18
push dword [ebp - 0x12c]
call fcn.00592c4b
push dword [ebp - 0x128]
call fcn.00592c4b
push dword [ebp - 0x11c]
call fcn.00592c4b
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret