Function at 0x4861e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x514440]
push edi
xor edi, edi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], edi
cmp eax, edi
jne 0x486247
push 0x108
push 1
call fcn.00493ea1
add esp, 8
mov dword [0x514440], eax
cmp eax, edi
jne 0x486247
push str._Zip_cloacking
push 0x3fa
call fcn.00484c80
add esp, 8
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492093
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax + 0x30], edx
mov eax, dword [0x514304]
mov ecx, dword [eax + 4]
push esi
push ecx
call fcn.00498998
mov edx, dword [0x514304]
mov esi, eax
mov eax, dword [edx + 4]
push eax
call fcn.00499033
mov ecx, dword [0x514304]
mov edx, dword [ecx + 4]
mov eax, dword [0x514440]
push edx
push 0x1e
add eax, 0x1e
push 1
push eax
call fcn.00498c5a
add esp, 0x18
cmp eax, 0x1e
je 0x4862ba
push 0x4cfa1a
push 0x3ef
call fcn.00484c80
add esp, 8
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492093
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x514304]
mov edx, dword [ecx + 4]
push ebx
push edi
push esi
push edx
call fcn.00498a87
mov ebx, dword [0x514440]
add esp, 0xc
cmp dword [ebx + 0x80], edi
jne 0x48630a
mov eax, dword [0x51444e]
add eax, 4
shr eax, 1
push 0xe
push eax
call fcn.00493ea1
mov dword [ebx + 0x80], eax
mov ebx, dword [0x514440]
add esp, 8
cmp dword [ebx + 0x80], edi
je 0x4867f6
mov eax, dword [0x51444e]
test eax, eax
je 0x4863e6
xor ebx, ebx
lea esp, [esp]
push 0x104
lea ecx, [ebp - 0x108]
push 0
push ecx
call fcn.00491e90
push 0
push edi
call fcn.004881a0
lea edx, [ebp - 0x108]
add esp, 0x14
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x486346
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486360
sub eax, edx
mov esi, eax
lea eax, [esi + 2]
cdq
sub eax, edx
sar eax, 1
push 2
push eax
call fcn.00493ea1
mov edx, dword [0x514440]
mov ecx, dword [edx + 0x80]
mov dword [ebx + ecx], eax
mov edx, dword [0x514440]
mov eax, dword [edx + 0x80]
mov eax, dword [ebx + eax]
add esp, 8
test eax, eax
je 0x4865e2
push esi
push 0
push eax
call fcn.00491e90
mov edx, dword [0x514440]
mov eax, dword [edx + 0x80]
mov edx, dword [ebx + eax]
add esp, 0xc
lea ecx, [ebp - 0x108]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4863c5
mov eax, dword [0x51444e]
inc edi
add ebx, 7
cmp edi, eax
jb 0x486320
mov ebx, dword [0x514440]
mov dword [ebp - 0x10c], 1
cmp eax, 1
jbe 0x486548
mov edi, 7
lea esi, [edi + 0xf]
mov dword [ebx], 0x4034b50
mov edx, dword [0x514440]
mov ecx, 0x14
mov word [edx + 4], cx
mov ecx, dword [0x514440]
mov eax, 2
mov word [ecx + 6], ax
mov eax, dword [0x514440]
mov edx, 4
mov word [eax + 8], dx
mov ecx, dword [0x514452]
movzx edx, word [esi + ecx + 6]
mov eax, dword [0x514440]
mov word [eax + 0xa], dx
mov ecx, dword [0x514452]
movzx edx, word [esi + ecx + 8]
mov eax, dword [0x514440]
mov word [eax + 0xc], dx
mov ecx, dword [0x514452]
mov edx, dword [esi + ecx + 2]
mov eax, dword [0x514440]
imul edx, edx, 0xf1f87
xor edx, 0xea8cdef6
mov dword [eax + 0xe], edx
mov ecx, dword [0x514440]
mov dword [ecx + 0x12], 0
mov edx, dword [0x514452]
mov eax, dword [esi + edx + 2]
mov ecx, dword [0x514440]
mov dword [ecx + 0x16], eax
mov ecx, dword [0x514440]
mov edx, dword [ecx + 0x80]
mov eax, dword [edx + edi]
lea edx, [eax + 1]
jmp 0x4864b0
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x4864b0
sub eax, edx
mov word [ecx + 0x1a], ax
mov ecx, dword [0x514440]
xor eax, eax
mov word [ecx + 0x1c], ax
mov edx, dword [0x514304]
mov eax, dword [edx + 4]
mov ecx, dword [0x514440]
push eax
push 0x1e
push 1
push ecx
call fcn.00498c5a
add esp, 0x10
cmp eax, 0x1e
jne 0x4867e4
mov edx, dword [0x514304]
mov eax, dword [edx + 4]
push eax
mov eax, dword [0x514440]
movzx ecx, word [eax + 0x1a]
mov edx, dword [eax + 0x80]
mov eax, dword [edx + edi]
push ecx
push 1
push eax
call fcn.00498c5a
mov ebx, dword [0x514440]
movzx ecx, word [ebx + 0x1a]
add esp, 0x10
cmp eax, ecx
jne 0x4867e4
mov eax, dword [ebp - 0x10c]
inc eax
add esi, 0x16
add edi, 7
mov dword [ebp - 0x10c], eax
cmp eax, dword [0x51444e]
jb 0x486401
mov edx, dword [0x514304]
mov eax, dword [edx + 4]
push eax
call fcn.00498998
mov ecx, dword [0x514440]
xor esi, esi
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [0x51444e], esi
jbe 0x486779
jmp 0x486580
mov dword [ecx + 0x3c], 0x2014b50
mov edx, dword [0x514440]
mov ecx, 0xa14
mov word [edx + 0x40], cx
mov ecx, dword [0x514440]
mov eax, 0x14
mov word [ecx + 0x42], ax
mov eax, dword [0x514440]
mov edx, 2
mov word [eax + 0x44], dx
mov edx, dword [0x514440]
mov eax, esi
imul eax, eax, 0x16
mov ecx, 4
mov word [edx + 0x46], cx
mov ecx, dword [0x514452]
mov edx, dword [eax + ecx + 6]
mov ecx, dword [0x514440]
mov dword [ecx + 0x48], edx
test esi, esi
jne 0x48660a
xor ecx, ecx
jmp 0x486620
push 0x4cfa1a
push 0x3fa
call fcn.00484c80
add esp, 8
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492093
mov esp, ebp
pop ebp
ret
mov edx, dword [0x514452]
mov ecx, dword [eax + edx + 2]
imul ecx, ecx, 0xf1f87
xor ecx, 0xea8cdef6
mov edx, dword [0x514440]
mov dword [edx + 0x4c], ecx
mov edx, dword [0x514440]
test esi, esi
jne 0x486638
mov ecx, dword [edx + 0x30]
jmp 0x48663a
xor ecx, ecx
mov dword [edx + 0x50], ecx
mov ecx, dword [0x514452]
mov edx, dword [eax + ecx + 2]
mov eax, dword [0x514440]
mov dword [eax + 0x54], edx
mov edx, dword [0x514440]
mov ecx, dword [edx + 0x80]
lea edi, [esi*8]
sub edi, esi
mov eax, dword [ecx + edi]
lea ebx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486670
sub eax, ebx
mov word [edx + 0x58], ax
mov ecx, dword [0x514440]
test esi, esi
jne 0x48668d
movzx eax, word [ecx + 0x3a]
jmp 0x48668f
xor eax, eax
mov word [ecx + 0x5a], ax
mov edx, dword [0x514440]
mov dword [edx + 0x62], 0x20
mov ecx, dword [0x514440]
xor eax, eax
mov word [ecx + 0x5c], ax
mov edx, dword [0x514440]
mov ecx, dword [ebp - 0x114]
mov dword [edx + 0x66], ecx
mov eax, dword [0x514440]
movzx edx, word [eax + 0x5a]
movzx ebx, word [eax + 0x58]
add edx, ebx
add edx, dword [eax + 0x50]
add eax, 0x3c
lea ecx, [ecx + edx + 0x1e]
mov edx, dword [0x514304]
mov dword [ebp - 0x114], ecx
mov ecx, dword [edx + 4]
push ecx
push 0x2e
push 1
push eax
call fcn.00498c5a
add esp, 0x10
cmp eax, 0x2e
jne 0x4867e4
mov edx, dword [0x514304]
mov eax, dword [edx + 4]
push eax
mov eax, dword [0x514440]
movzx ecx, word [eax + 0x58]
mov edx, dword [eax + 0x80]
mov eax, dword [edx + edi]
push ecx
push 1
push eax
call fcn.00498c5a
mov ecx, dword [0x514440]
movzx edx, word [ecx + 0x58]
add esp, 0x10
cmp eax, edx
jne 0x4867e4
test esi, esi
jne 0x486754
mov eax, dword [0x514304]
mov ecx, dword [eax + 4]
push ecx
push 0x5143f0
call fcn.004854a0
mov ecx, dword [0x514440]
add esp, 8
movzx eax, word [ecx + 0x58]
add eax, dword [ebp - 0x110]
movzx edx, word [ecx + 0x5a]
inc esi
lea edx, [eax + edx + 0x2e]
mov dword [ebp - 0x110], edx
cmp esi, dword [0x51444e]
jb 0x486580
mov dword [ecx + 0x6a], 0x6054b50
movzx eax, word [0x51444e]
mov ecx, dword [0x514440]
mov word [ecx + 0x72], ax
movzx eax, word [0x51444e]
mov edx, dword [0x514440]
mov word [edx + 0x74], ax
mov ecx, dword [0x514440]
mov edx, dword [ebp - 0x110]
mov dword [ecx + 0x76], edx
mov eax, dword [0x514440]
mov ecx, dword [ebp - 0x10c]
mov dword [eax + 0x7a], ecx
mov edx, dword [0x514304]
mov eax, dword [edx + 4]
mov ecx, dword [0x514440]
push eax
push 0x16
add ecx, 0x6a
push 1
push ecx
call fcn.00498c5a
add esp, 0x10
cmp eax, 0x16
je 0x48680c
push 0x4cfa1a
push 0x3ef
call fcn.00484c80
add esp, 8
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492093
mov esp, ebp
pop ebp
ret
mov edx, dword [0x51444e]
push edx
call fcn.00485ec0
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00492093
mov esp, ebp
pop ebp
ret