Function at 0x4c9a60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x539008
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x56d940]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0
je 0x4c9d9a
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [edi + 0x14]
call fcn.004cf090
mov esi, eax
mov ebx, edx
mov ecx, esi
and ecx, ebx
cmp ecx, 0xffffffff
jne 0x4c9ac6
push 0xdd
push edi
call fcn.004c9db0
mov edx, dword [edi + 0x14]
mov eax, dword [edx + 0x3c]
and eax, 0x70
cmp al, 0x70
sete al
mov byte [esp + 0x13], al
test al, al
jne 0x4c9afb
mov ecx, dword [edi + 0x24]
mov dword [ecx], esi
mov edx, dword [edi + 0x24]
mov eax, dword [edx]
mov ecx, dword [edi + 0x14]
mov esi, dword [ecx + 4]
add eax, 4
push 0
push eax
mov al, 1
call fcn.004c4770
jmp 0x4c9b2c
mov ecx, dword [edx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
sub esi, eax
mov eax, dword [edi + 0x14]
sbb ebx, edx
add esi, 4
push 0
adc ebx, 0
push ebx
push esi
call fcn.004cf390
mov eax, dword [edi + 0x14]
push eax
call fcn.004c9470
mov ecx, dword [edi + 0x24]
sub eax, 4
mov dword [ecx], eax
mov ebx, 0x12
push ebx
mov dword [esp + 0x1c], vtable.CZipAutoBuffer.0
call fcn.004e1be4
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
push 1
mov dword [esp + 0x34], 0
mov eax, dword [edi + 0x14]
push esi
call fcn.004cdc90
mov eax, dword [edi + 0x24]
add eax, 4
xor edx, edx
mov word [eax], dx
movzx ecx, word [esi]
mov word [eax], cx
mov eax, dword [edi + 0x24]
mov word [eax + 6], dx
movzx ecx, word [esi + 2]
mov word [eax + 6], cx
add eax, 6
mov eax, dword [edi + 0x24]
mov word [eax + 8], dx
movzx ecx, word [esi + 4]
add eax, 8
mov word [eax], cx
mov eax, dword [edi + 0x24]
mov word [eax + 0xa], dx
movzx ecx, word [esi + 6]
add eax, 0xa
mov word [eax], cx
mov eax, dword [edi + 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 8]
add eax, 0xc
mov dword [eax], edx
mov eax, dword [edi + 0x24]
add eax, 0x10
mov dword [eax], 0
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov bx, word [esi + 0x10]
mov word [esp + 0x14], bx
test esi, esi
je 0x4c9be3
push esi
call fcn.004e1c13
add esp, 4
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
test bx, bx
je 0x4c9c44
mov esi, dword [edi + 0x24]
movzx ebx, bx
add esi, 0x18
cmp ebx, dword [esi + 8]
je 0x4c9c2a
mov eax, dword [esi + 4]
test eax, eax
je 0x4c9c0e
push eax
call fcn.004e1c13
add esp, 4
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
test ebx, ebx
jbe 0x4c9c23
push ebx
call fcn.004e1be4
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
jmp 0x4c9c2a
mov dword [esi + 4], 0
test ebx, ebx
je 0x4c9c3f
mov edx, dword [edi + 0x24]
mov eax, dword [edx + 0x1c]
push 1
push eax
mov eax, dword [edi + 0x14]
call fcn.004cdc90
mov bx, word [esp + 0x14]
mov esi, dword [edi + 0x24]
mov eax, esi
call fcn.004c9730
test al, al
je 0x4c9cbb
cmp byte [esp + 0x13], 0
jne 0x4c9ca2
cmp dword [esi], 0x14
jb 0x4c9cbb
mov edx, dword [esi]
mov ecx, dword [edi + 0x14]
mov esi, dword [ecx + 4]
xor eax, eax
add edx, 0xffffffec
adc eax, 0xffffffff
push eax
push edx
mov al, 1
call fcn.004c4770
mov eax, dword [edi + 0x14]
push 1
lea edx, [esp + 0x18]
push edx
mov ebx, 4
call fcn.004cdc90
mov eax, dword [esp + 0x14]
cmp eax, dword [0x56f474]
jne 0x4c9cbb
push 0xde
push edi
call fcn.004c9db0
movzx ecx, bx
mov eax, 0xffffffd6
sub eax, ecx
cdq
push 0
push edx
push eax
mov eax, dword [edi + 0x14]
call fcn.004cf390
jmp 0x4c9c77
mov ecx, dword [edi + 8]
shr ecx, 9
not cl
test cl, 1
je 0x4c9cf6
mov eax, dword [edi + 0x24]
movzx ecx, word [eax + 4]
test cx, cx
jne 0x4c9cf6
mov edx, eax
mov si, word [edx + 0xa]
cmp si, word [edx + 8]
jne 0x4c9ce6
cmp word [eax + 6], cx
je 0x4c9cf6
test cx, cx
jne 0x4c9cf6
push 0xc9
push edi
call fcn.004c9db0
mov edx, dword [edi + 0x24]
mov ebx, dword [ebp + 8]
mov di, word [edx + 4]
mov esi, dword [ebx + 0x14]
call fcn.004ced80
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx + 0x3c]
shr eax, 4
test al, 1
jne 0x4c9d2d
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + 0x10]
add edx, dword [eax + 0xc]
cmp dword [eax], edx
jae 0x4c9d2d
push 0xc9
push ebx
call fcn.004c9db0
cmp dword [ecx + 0x28], 0
jne 0x4c9d48
mov eax, dword [ebx + 0x24]
cmp word [eax + 4], 0
jne 0x4c9d48
mov edx, dword [eax]
sub edx, dword [eax + 0x10]
sub edx, dword [eax + 0xc]
mov dword [ecx + 0x28], edx
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4c9d58
cmp word [eax + 0xa], cx
jne 0x4c9d63
cmp word [eax + 0xa], 0
jne 0x4c9d6e
test ecx, ecx
je 0x4c9d6e
push 0xc9
push ebx
call fcn.004c9db0
mov byte [eax + 0x14], 1
mov ecx, dword [ebx + 0x24]
mov cx, word [ecx + 6]
mov esi, dword [ebx + 0x14]
call fcn.004ce100
mov edx, dword [ebx + 0x24]
cmp dword [edx + 0xc], 0
je 0x4c9d91
mov edi, ebx
call fcn.004c9e10
lea ecx, [esp + 0x18]
call fcn.004d2790
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4