Function at 0x4a60d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, 1
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x88], 0
mov ecx, eax
mov dword [ebp - 0x98], ebx
xor esi, esi
mov dword [ebp - 0x94], ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x90], edx
cmp dword [ebp + 0x10], edx
jle 0x4a63bd
lea esp, [esp]
mov cl, byte [ecx]
add eax, 4
mov dword [ebp - 0x8c], eax
cmp byte [eax], cl
jne 0x4a61c7
test ebx, ebx
je 0x4a6172
push dword [edi]
lea eax, [ebx - 1]
push eax
call fcn.005958b3
push dword [edi]
lea eax, [ebp - 0x84]
push ebx
push 1
push eax
call fcn.0059628c
add esp, 0x18
cmp eax, ebx
jne 0x4a630e
mov eax, dword [ebp - 0x8c]
xor ebx, ebx
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x98], ebx
inc esi
cmp esi, 0xffff
jne 0x4a62a3
push dword [edi]
push 0x80
call fcn.005958b3
push dword [edi]
push 0xff
call fcn.005958b3
push dword [edi]
push 0xff
call fcn.005958b3
push dword [edi]
push 1
push 1
push dword [ebp - 0x8c]
call fcn.0059628c
add esp, 0x28
cmp eax, 1
jne 0x4a631a
xor esi, esi
jmp 0x4a6297
mov byte [ebp + ebx - 0x84], cl
test esi, esi
je 0x4a625b
push dword [edi]
cmp esi, 0x80
jl 0x4a6221
push 0x80
call fcn.005958b3
push dword [edi]
lea ebx, [esi + 1]
mov eax, ebx
sar eax, 8
push eax
call fcn.005958b3
push dword [edi]
movzx eax, bl
push eax
call fcn.005958b3
push dword [edi]
push 1
push 1
push dword [ebp - 0x94]
call fcn.0059628c
mov ebx, dword [ebp - 0x98]
add esp, 0x28
jmp 0x4a6242
mov eax, esi
or eax, 0x80
push eax
call fcn.005958b3
push dword [edi]
push 1
push 1
push dword [ebp - 0x94]
call fcn.0059628c
add esp, 0x18
cmp eax, 1
jne 0x4a630e
mov eax, dword [ebp - 0x8c]
xor esi, esi
mov edx, dword [ebp - 0x90]
jmp 0x4a6262
inc ebx
mov dword [ebp - 0x98], ebx
cmp ebx, 0x80
jne 0x4a62a3
push dword [edi]
push 0x7f
call fcn.005958b3
push dword [edi]
lea eax, [ebp - 0x84]
push ebx
push 1
push eax
call fcn.0059628c
add esp, 0x18
cmp eax, ebx
jne 0x4a6326
xor ebx, ebx
mov dword [ebp - 0x98], ebx
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x8c]
inc edx
mov ecx, eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], edx
cmp edx, dword [ebp + 0x10]
jl 0x4a6120
test esi, esi
je 0x4a6371
cmp esi, 0x80
jl 0x4a6332
push dword [edi]
push 0x80
call fcn.005958b3
push dword [edi]
lea ebx, [esi + 1]
mov eax, ebx
sar eax, 8
push eax
call fcn.005958b3
push dword [edi]
movzx eax, bl
push eax
call fcn.005958b3
push dword [edi]
push 1
push 1
push dword [ebp - 0x8c]
call fcn.0059628c
add esp, 0x28
cmp eax, 1
jmp 0x4a63a5
mov dword [ebp - 0x88], 6
jmp 0x4a62bb
mov dword [ebp - 0x88], 6
jmp 0x4a62cb
mov dword [ebp - 0x88], 6
jmp 0x4a6375
push dword [edi]
or esi, 0x80
push esi
call fcn.005958b3
push dword [edi]
push 1
push 1
push dword [ebp - 0x8c]
call fcn.0059628c
add esp, 0x18
cmp eax, 1
jne 0x4a63a7
mov ax, word [ebp - 0x88]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4a63bd
mov eax, dword [ebp - 0x94]
push dword [edi]
push ebx
mov al, byte [eax]
mov byte [ebp + ebx - 0x84], al
call fcn.005958b3
push dword [edi]
lea esi, [ebx + 1]
push esi
lea eax, [ebp - 0x84]
push 1
push eax
call fcn.0059628c
add esp, 0x18
cmp eax, esi
je 0x4a6359
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [edi]
push 0
call fcn.005958b3
push dword [edi]
push 1
push 1
push dword [ebp - 0x94]
call fcn.0059628c
add esp, 0x18
mov ecx, 6
cmp eax, 1
mov eax, dword [ebp - 0x88]
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret