Function at 0x487ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x517460]
push edi
xor edi, edi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], edi
cmp eax, edi
jne 0x487f07
push 0x108
push 1
call fcn.00495de6
add esp, 8
mov dword [0x517460], eax
cmp eax, edi
jne 0x487f07
push str._Zip_cloacking
push 0x3fa
call fcn.00486940
add esp, 8
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f43
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax + 0x30], edx
mov eax, dword [0x517324]
mov ecx, dword [eax + 4]
push esi
push ecx
call fcn.0049a858
mov edx, dword [0x517324]
mov esi, eax
mov eax, dword [edx + 4]
push eax
call fcn.0049aef3
mov ecx, dword [0x517324]
mov edx, dword [ecx + 4]
mov eax, dword [0x517460]
push edx
push 0x1e
add eax, 0x1e
push 1
push eax
call fcn.0049ab1a
add esp, 0x18
cmp eax, 0x1e
je 0x487f7a
push 0x4d1a1a
push 0x3ef
call fcn.00486940
add esp, 8
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f43
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x517324]
mov edx, dword [ecx + 4]
push ebx
push edi
push esi
push edx
call fcn.0049a947
mov ebx, dword [0x517460]
add esp, 0xc
cmp dword [ebx + 0x80], edi
jne 0x487fca
mov eax, dword [0x51746e]
add eax, 4
shr eax, 1
push 0xe
push eax
call fcn.00495de6
mov dword [ebx + 0x80], eax
mov ebx, dword [0x517460]
add esp, 8
cmp dword [ebx + 0x80], edi
je 0x4884b6
mov eax, dword [0x51746e]
test eax, eax
je 0x4880a6
xor ebx, ebx
lea esp, [esp]
push 0x104
lea ecx, [ebp - 0x108]
push 0
push ecx
call fcn.00493d40
push 0
push edi
call fcn.00489e60
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 0x488006
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488020
sub eax, edx
mov esi, eax
lea eax, [esi + 2]
cdq
sub eax, edx
sar eax, 1
push 2
push eax
call fcn.00495de6
mov edx, dword [0x517460]
mov ecx, dword [edx + 0x80]
mov dword [ebx + ecx], eax
mov edx, dword [0x517460]
mov eax, dword [edx + 0x80]
mov eax, dword [ebx + eax]
add esp, 8
test eax, eax
je 0x4882a2
push esi
push 0
push eax
call fcn.00493d40
mov edx, dword [0x517460]
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 0x488085
mov eax, dword [0x51746e]
inc edi
add ebx, 7
cmp edi, eax
jb 0x487fe0
mov ebx, dword [0x517460]
mov dword [ebp - 0x10c], 1
cmp eax, 1
jbe 0x488208
mov edi, 7
lea esi, [edi + 0xf]
mov dword [ebx], 0x4034b50
mov edx, dword [0x517460]
mov ecx, 0x14
mov word [edx + 4], cx
mov ecx, dword [0x517460]
mov eax, 2
mov word [ecx + 6], ax
mov eax, dword [0x517460]
mov edx, 4
mov word [eax + 8], dx
mov ecx, dword [0x517472]
movzx edx, word [esi + ecx + 6]
mov eax, dword [0x517460]
mov word [eax + 0xa], dx
mov ecx, dword [0x517472]
movzx edx, word [esi + ecx + 8]
mov eax, dword [0x517460]
mov word [eax + 0xc], dx
mov ecx, dword [0x517472]
mov edx, dword [esi + ecx + 2]
mov eax, dword [0x517460]
imul edx, edx, 0xf1f87
xor edx, 0xea8cdef6
mov dword [eax + 0xe], edx
mov ecx, dword [0x517460]
mov dword [ecx + 0x12], 0
mov edx, dword [0x517472]
mov eax, dword [esi + edx + 2]
mov ecx, dword [0x517460]
mov dword [ecx + 0x16], eax
mov ecx, dword [0x517460]
mov edx, dword [ecx + 0x80]
mov eax, dword [edx + edi]
lea edx, [eax + 1]
jmp 0x488170
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x488170
sub eax, edx
mov word [ecx + 0x1a], ax
mov ecx, dword [0x517460]
xor eax, eax
mov word [ecx + 0x1c], ax
mov edx, dword [0x517324]
mov eax, dword [edx + 4]
mov ecx, dword [0x517460]
push eax
push 0x1e
push 1
push ecx
call fcn.0049ab1a
add esp, 0x10
cmp eax, 0x1e
jne 0x4884a4
mov edx, dword [0x517324]
mov eax, dword [edx + 4]
push eax
mov eax, dword [0x517460]
movzx ecx, word [eax + 0x1a]
mov edx, dword [eax + 0x80]
mov eax, dword [edx + edi]
push ecx
push 1
push eax
call fcn.0049ab1a
mov ebx, dword [0x517460]
movzx ecx, word [ebx + 0x1a]
add esp, 0x10
cmp eax, ecx
jne 0x4884a4
mov eax, dword [ebp - 0x10c]
inc eax
add esi, 0x16
add edi, 7
mov dword [ebp - 0x10c], eax
cmp eax, dword [0x51746e]
jb 0x4880c1
mov edx, dword [0x517324]
mov eax, dword [edx + 4]
push eax
call fcn.0049a858
mov ecx, dword [0x517460]
xor esi, esi
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [0x51746e], esi
jbe 0x488439
jmp 0x488240
mov dword [ecx + 0x3c], 0x2014b50
mov edx, dword [0x517460]
mov ecx, 0xa14
mov word [edx + 0x40], cx
mov ecx, dword [0x517460]
mov eax, 0x14
mov word [ecx + 0x42], ax
mov eax, dword [0x517460]
mov edx, 2
mov word [eax + 0x44], dx
mov edx, dword [0x517460]
mov eax, esi
imul eax, eax, 0x16
mov ecx, 4
mov word [edx + 0x46], cx
mov ecx, dword [0x517472]
mov edx, dword [eax + ecx + 6]
mov ecx, dword [0x517460]
mov dword [ecx + 0x48], edx
test esi, esi
jne 0x4882ca
xor ecx, ecx
jmp 0x4882e0
push 0x4d1a1a
push 0x3fa
call fcn.00486940
add esp, 8
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f43
mov esp, ebp
pop ebp
ret
mov edx, dword [0x517472]
mov ecx, dword [eax + edx + 2]
imul ecx, ecx, 0xf1f87
xor ecx, 0xea8cdef6
mov edx, dword [0x517460]
mov dword [edx + 0x4c], ecx
mov edx, dword [0x517460]
test esi, esi
jne 0x4882f8
mov ecx, dword [edx + 0x30]
jmp 0x4882fa
xor ecx, ecx
mov dword [edx + 0x50], ecx
mov ecx, dword [0x517472]
mov edx, dword [eax + ecx + 2]
mov eax, dword [0x517460]
mov dword [eax + 0x54], edx
mov edx, dword [0x517460]
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 0x488330
sub eax, ebx
mov word [edx + 0x58], ax
mov ecx, dword [0x517460]
test esi, esi
jne 0x48834d
movzx eax, word [ecx + 0x3a]
jmp 0x48834f
xor eax, eax
mov word [ecx + 0x5a], ax
mov edx, dword [0x517460]
mov dword [edx + 0x62], 0x20
mov ecx, dword [0x517460]
xor eax, eax
mov word [ecx + 0x5c], ax
mov edx, dword [0x517460]
mov ecx, dword [ebp - 0x114]
mov dword [edx + 0x66], ecx
mov eax, dword [0x517460]
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 [0x517324]
mov dword [ebp - 0x114], ecx
mov ecx, dword [edx + 4]
push ecx
push 0x2e
push 1
push eax
call fcn.0049ab1a
add esp, 0x10
cmp eax, 0x2e
jne 0x4884a4
mov edx, dword [0x517324]
mov eax, dword [edx + 4]
push eax
mov eax, dword [0x517460]
movzx ecx, word [eax + 0x58]
mov edx, dword [eax + 0x80]
mov eax, dword [edx + edi]
push ecx
push 1
push eax
call fcn.0049ab1a
mov ecx, dword [0x517460]
movzx edx, word [ecx + 0x58]
add esp, 0x10
cmp eax, edx
jne 0x4884a4
test esi, esi
jne 0x488414
mov eax, dword [0x517324]
mov ecx, dword [eax + 4]
push ecx
push 0x517410
call fcn.00487160
mov ecx, dword [0x517460]
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 [0x51746e]
jb 0x488240
mov dword [ecx + 0x6a], 0x6054b50
movzx eax, word [0x51746e]
mov ecx, dword [0x517460]
mov word [ecx + 0x72], ax
movzx eax, word [0x51746e]
mov edx, dword [0x517460]
mov word [edx + 0x74], ax
mov ecx, dword [0x517460]
mov edx, dword [ebp - 0x110]
mov dword [ecx + 0x76], edx
mov eax, dword [0x517460]
mov ecx, dword [ebp - 0x10c]
mov dword [eax + 0x7a], ecx
mov edx, dword [0x517324]
mov eax, dword [edx + 4]
mov ecx, dword [0x517460]
push eax
push 0x16
add ecx, 0x6a
push 1
push ecx
call fcn.0049ab1a
add esp, 0x10
cmp eax, 0x16
je 0x4884cc
push 0x4d1a1a
push 0x3ef
call fcn.00486940
add esp, 8
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493f43
mov esp, ebp
pop ebp
ret
mov edx, dword [0x51746e]
push edx
call fcn.00487b80
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00493f43
mov esp, ebp
pop ebp
ret