Function at 0x56d330
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x7c
push ebx
push ebp
mov ebp, dword [esp + 0x90]
mov ecx, 0x1a
push esi
push edi
push 0
mov ebx, dword [ebp + 0x3c]
lea edi, [esp + 0x28]
mov eax, dword [ebp + 0x5c]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push 0
push 0
mov dword [esp + 0x20], 0
mov word [ebp + 0x61], 0
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0
call eax
mov edi, dword [esp + 0x9c]
add esp, 0xc
cmp dword [ebp + 0xa8], 0
mov dword [ebp + 0x58], eax
jne 0x56d3bb
cmp dword [ebp + 0xb4], 0
jne 0x56d3bb
push edi
call fcn.0057bef0
add esp, 4
mov dword [ebp + 0xac], eax
mov dword [ebp + 0xb4], 1
push 0
push 0x1e
push edi
call fcn.00577ff0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x56d3eb
push str.Truncated_ZIP_file_header
push 0x2a
push edi
call fcn.0057aaf0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0xffffffe2
pop ebx
add esp, 0x7c
ret
cmp dword [esi], 0x4034b50
je 0x56d410
push str.Damaged_Zip_archive
push 0xffffffffffffffff
push edi
call fcn.0057aaf0
add esp, 0xc
mov eax, 0xffffffe2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
mov al, byte [esi + 4]
mov byte [esp + 0x13], al
movzx eax, byte [esi + 5]
mov byte [ebx + 0x59], al
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl cx, 8
or cx, ax
mov word [ebx + 0x56], cx
test cl, 0x41
je 0x56d480
push 1
push dword [esp + 0x98]
mov dword [ebp + 0x20], 1
call fcn.00576dc0
movzx eax, word [ebx + 0x56]
add esp, 8
test eax, 0x2000
je 0x56d480
test al, 1
je 0x56d480
test al, 0x40
je 0x56d480
mov eax, dword [esp + 0x94]
push 1
push eax
call fcn.00576de0
add esp, 8
mov eax, 0xffffffe2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
movzx eax, byte [ebx + 0x56]
and al, 1
mov byte [ebp + 0xbc], al
movzx eax, byte [esi + 8]
mov byte [ebx + 0x58], al
lea eax, [esi + 0xa]
push eax
call fcn.0056dd40
mov dword [ebx + 0x44], eax
add esp, 4
movzx ecx, byte [esi + 0x11]
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
test byte [ebx + 0x56], 8
mov dword [ebx + 0x50], ecx
je 0x56d4cf
mov al, byte [esi + 0xb]
jmp 0x56d4d2
mov al, byte [esi + 0x11]
mov byte [ebx + 0x5b], al
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], ecx
movzx ecx, byte [esi + 0x19]
movzx eax, byte [esi + 0x18]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x20], ecx
movzx eax, byte [esi + 0x1b]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esi + 0x1a]
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ax, 8
mov dword [esp + 0x20], ecx
movzx ecx, ax
movzx eax, byte [esi + 0x1c]
push 0
or ecx, eax
push 0x1e
push edi
mov dword [esp + 0x28], ecx
call fcn.00578070
mov esi, dword [esp + 0x2c]
push 0
push esi
push edi
call fcn.00577ff0
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x56d3ce
mov eax, 0x800
test word [ebx + 0x56], ax
je 0x56d5b7
cmp dword [ebp + 0xb0], 0
jne 0x56d5af
push 1
push str.UTF_8
push edi
call fcn.0057bdf0
add esp, 0xc
mov dword [ebp + 0xb0], eax
test eax, eax
je 0x56d3de
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0xb0]
jmp 0x56d5cb
mov eax, dword [ebp + 0xa8]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x56d5cf
mov eax, dword [ebp + 0xac]
mov dword [esp + 0x18], eax
push eax
push esi
mov esi, dword [esp + 0x9c]
push ecx
push esi
call fcn.00576020
add esp, 0x10
test eax, eax
je 0x56d630
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 0xc
jne 0x56d60e
push str.Cant_allocate_memory_for_Pathname
push 0xc
push edi
call fcn.0057aaf0
add esp, 0xc
mov eax, 0xffffffe2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
push dword [esp + 0x18]
call fcn.0057bd60
push eax
push str.Pathname_cannot_be_converted_from__s_to_current_locale.
push 0x2a
push edi
call fcn.0057aaf0
add esp, 0x14
mov dword [esp + 0x14], 0xffffffec
push 0
push dword [esp + 0x24]
push edi
call fcn.00578070
movzx ecx, word [ebx + 0x54]
add esp, 0xc
mov eax, ecx
and eax, 0xf000
cmp eax, 0x1000
jne 0x56d661
and ecx, 0xfff
or ecx, 0x8000
mov word [ebx + 0x54], cx
mov eax, 0xf000
test word [ebx + 0x54], ax
jne 0x56d713
push esi
call fcn.00576c20
mov edx, eax
add esp, 4
test edx, edx
je 0x56d6ab
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x20], eax
jmp 0x56d690
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x56d690
sub ecx, dword [esp + 0x20]
sar ecx, 1
je 0x56d6e7
cmp word [edx + ecx*2 - 2], 0x2f
jmp 0x56d6d5
push esi
call fcn.00576b80
mov edx, eax
add esp, 4
test edx, edx
je 0x56d6e7
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x20], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x56d6c3
sub ecx, dword [esp + 0x20]
je 0x56d6e7
cmp byte [edx + ecx - 1], 0x2f
jne 0x56d6e7
mov ecx, 0x4000
mov edx, 0x8000
or word [ebx + 0x54], cx
jmp 0x56d6f5
mov edx, 0x8000
mov ecx, 0x4000
or word [ebx + 0x54], dx
movzx eax, word [ebx + 0x54]
cmp ax, cx
jne 0x56d705
mov eax, 0x41fd
jmp 0x56d70f
cmp ax, dx
jne 0x56d713
mov eax, 0x81b4
mov word [ebx + 0x54], ax
push 0
push dword [esp + 0x20]
push edi
call fcn.00577ff0
add esp, 0xc
test eax, eax
je 0x56d3ce
push ebx
push dword [esp + 0x20]
push eax
call fcn.0056b870
push 0
push dword [esp + 0x2c]
push edi
call fcn.00578070
add esp, 0x18
test byte [ebx + 0x5a], 2
je 0x56d81d
mov eax, 0xfff7
and word [ebx + 0x56], ax
mov eax, dword [ebx + 0x50]
test eax, eax
jne 0x56d767
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x50], eax
jmp 0x56d78b
cmp byte [ebp + 0x60], 0
jne 0x56d78b
cmp eax, dword [esp + 0x74]
je 0x56d78b
push str.Inconsistent_CRC32_values
push 0x2a
push edi
call fcn.0057aaf0
add esp, 0xc
mov dword [esp + 0x14], 0xffffffec
mov edx, dword [ebx + 0x18]
mov eax, edx
mov ecx, dword [ebx + 0x1c]
or eax, ecx
jne 0x56d7a7
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x1c], eax
jmp 0x56d7d4
mov eax, dword [esp + 0x40]
cmp edx, dword [esp + 0x3c]
jne 0x56d7b5
cmp ecx, eax
je 0x56d7d4
push ecx
push edx
push eax
push dword [esp + 0x48]
push str.Inconsistent_compressed_size:__jd_in_central_directory___jd_in_local_header
push 0x2a
push edi
call fcn.0057aaf0
add esp, 0x1c
mov dword [esp + 0x14], 0xffffffec
mov edx, dword [ebx + 0x20]
mov eax, edx
mov ecx, dword [ebx + 0x24]
or eax, ecx
jne 0x56d7f0
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x24], eax
jmp 0x56d81d
mov eax, dword [esp + 0x48]
cmp edx, dword [esp + 0x44]
jne 0x56d7fe
cmp ecx, eax
je 0x56d81d
push ecx
push edx
push eax
push dword [esp + 0x50]
push str.Inconsistent_uncompressed_size:__jd_in_central_directory___jd_in_local_header
push 0x2a
push edi
call fcn.0057aaf0
add esp, 0x1c
mov dword [esp + 0x14], 0xffffffec
movzx eax, word [ebx + 0x54]
push eax
push esi
call fcn.00576e00
push dword [ebx + 0x34]
push dword [ebx + 0x30]
push esi
call fcn.00576f60
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
push esi
call fcn.00576d70
push 0
push dword [ebx + 0x44]
push esi
call fcn.00576e20
push 0
push dword [ebx + 0x4c]
push esi
call fcn.00576cc0
push 0
push dword [ebx + 0x48]
push esi
call fcn.00576c70
mov eax, dword [ebp + 0x3c]
mov ecx, 0xf000
add esp, 0x44
mov ax, word [eax + 0x54]
and ax, cx
mov ecx, 0xa000
cmp ax, cx
jne 0x56d9db
cmp dword [ebx + 0x1c], 0
jl 0x56d89c
jg 0x56d892
cmp dword [ebx + 0x18], 0x10000
jbe 0x56d89c
push str.Zip_file_with_oversized_link_entry
jmp 0x56d3f8
mov eax, dword [ebx + 0x18]
push 0
push 0
push esi
mov dword [esp + 0x24], eax
call fcn.00576ef0
push 0
push dword [esp + 0x28]
push edi
call fcn.00577ff0
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x56d8d0
push str.Truncated_Zip_file
jmp 0x56d3f8
mov esi, dword [ebp + 0xa8]
test esi, esi
jne 0x56d8f8
mov eax, dword [ebp + 0x3c]
mov edx, 0x800
test word [eax + 0x56], dx
je 0x56d8f2
mov esi, dword [ebp + 0xb0]
test esi, esi
jne 0x56d8f8
mov esi, dword [ebp + 0xac]
mov eax, dword [esp + 0x94]
push esi
push dword [esp + 0x1c]
push ecx
push eax
call fcn.00576030
add esp, 0x10
test eax, eax
je 0x56d99c
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 0xc
je 0x56d950
cmp esi, dword [ebp + 0xb0]
jne 0x56d950
mov eax, dword [ebp + 0x3c]
mov ecx, 0x800
test word [eax + 0x56], cx
je 0x56d950
push 0
push dword [esp + 0x1c]
push dword [esp + 0x28]
push dword [esp + 0xa0]
call fcn.00576030
add esp, 0x10
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 0xc
jne 0x56d967
push str.Cant_allocate_memory_for_Symlink
push 0xc
jmp 0x56d3fa
cmp esi, dword [ebp + 0xb0]
jne 0x56d97d
mov eax, dword [ebp + 0x3c]
mov ecx, 0x800
test word [eax + 0x56], cx
jne 0x56d99c
push esi
call fcn.0057bd60
push eax
push str.Symlink_cannot_be_converted_from__s_to_current_locale.
push 0x2a
push edi
call fcn.0057aaf0
add esp, 0x14
mov dword [esp + 0x14], 0xffffffec
push 0
push dword [esp + 0x1c]
mov dword [ebx + 0x18], 0
push edi
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
call fcn.00578070
add esp, 0xc
test edx, edx
jg 0x56d9fe
jl 0x56d9d1
test eax, eax
jae 0x56d9fe
push str.Read_error_skipping_symlink_target_name
jmp 0x56d3f8
test byte [ebx + 0x56], 8
je 0x56d9ef
cmp dword [ebx + 0x24], 0
jl 0x56d9fe
jg 0x56d9ef
cmp dword [ebx + 0x20], 0
jbe 0x56d9fe
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push esi
call fcn.00576ef0
add esp, 0xc
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0x40], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 0x44], eax
test byte [ebx + 0x56], 8
jne 0x56da20
test eax, eax
jg 0x56da20
jl 0x56da1c
cmp dword [ebp + 0x40], 1
jae 0x56da20
mov byte [ebp + 0x62], 1
movsx eax, byte [esp + 0x13]
mov ecx, 0xa
cdq
idiv ecx
mov esi, eax
mov eax, dword [ebp + 0x3c]
movzx eax, byte [eax + 0x58]
push eax
call fcn.0056b3a0
push eax
push edx
push esi
push str.ZIP__d._d___s_
push ebp
call fcn.005818a0
mov ecx, dword [ebp]
add esp, 0x18
mov eax, dword [esp + 0x14]
mov dword [edi + 0x10], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret