Function at 0x408750
Capabilities:
Compute adler32 checksum
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edi, eax
movzx ebx, ax
shr edi, 0x10
cmp dword [esp + 0x58], 1
mov dword [esp + 0x2c], edi
je 0x408abf
test ecx, ecx
je 0x408af2
cmp dword [esp + 0x58], 0xf
ja 0x4087e2
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4087aa
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x2c]
add edx, ecx
add ecx, 1
movzx esi, byte [ecx - 1]
add ebx, esi
add eax, ebx
cmp ecx, edx
jne 0x408797
mov dword [esp + 0x2c], eax
lea eax, [ebx - 0xfff1]
cmp ebx, 0xfff1
mov edx, 0x80078071
mov edi, dword [esp + 0x2c]
cmovae ebx, eax
mov eax, dword [esp + 0x2c]
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, edi
shl eax, 0x10
or eax, ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x58], 0x15af
mov ebp, ebx
jbe 0x408afc
mov eax, dword [esp + 0x58]
sub eax, 0x15b0
mov dword [esp + 0x34], eax
lea eax, [ecx + 0x15b0]
mov dword [esp + 0x30], eax
lea esi, [esi]
movzx eax, byte [ecx]
add eax, ebp
mov edi, eax
movzx eax, byte [ecx + 1]
mov dword [esp], edi
mov esi, eax
movzx eax, byte [ecx + 2]
add esi, edi
mov dword [esp + 4], esi
mov ebx, eax
movzx eax, byte [ecx + 3]
add ebx, esi
mov dword [esp + 8], ebx
mov edx, eax
movzx eax, byte [ecx + 4]
add edx, ebx
mov dword [esp + 0xc], edx
mov ebp, eax
movzx eax, byte [ecx + 5]
add ebp, edx
mov dword [esp + 0x10], ebp
add eax, ebp
mov edi, eax
movzx eax, byte [ecx + 6]
mov dword [esp + 0x14], edi
add eax, edi
movzx edi, byte [ecx + 0xb]
mov esi, eax
movzx eax, byte [ecx + 7]
mov dword [esp + 0x18], esi
add eax, esi
movzx esi, byte [ecx + 0xc]
mov ebx, eax
movzx eax, byte [ecx + 8]
mov dword [esp + 0x1c], ebx
add eax, ebx
movzx ebx, byte [ecx + 0xd]
mov edx, eax
movzx eax, byte [ecx + 9]
mov dword [esp + 0x20], edx
add eax, edx
movzx edx, byte [ecx + 0xe]
mov ebp, eax
movzx eax, byte [ecx + 0xa]
mov dword [esp + 0x24], ebp
add eax, ebp
movzx ebp, byte [ecx + 0xf]
add edi, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp]
add eax, dword [esp + 4]
add esi, edi
add eax, dword [esp + 8]
add ebx, esi
add eax, dword [esp + 0xc]
add edx, ebx
add eax, dword [esp + 0x10]
add ebp, edx
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x1c]
add eax, dword [esp + 0x20]
add eax, dword [esp + 0x24]
add eax, dword [esp + 0x28]
add eax, edi
add eax, esi
add ebx, eax
add edx, ebx
add edx, ebp
add dword [esp + 0x2c], edx
add ecx, 0x10
cmp ecx, dword [esp + 0x30]
jne 0x408810
mov eax, 0x80078071
mov edi, dword [esp + 0x2c]
mul ebp
shr edx, 0xf
imul eax, edx, 0xfff1
sub ebp, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
cmp dword [esp + 0x34], 0x15af
mov dword [esp + 0x2c], edi
jbe 0x408937
mov eax, dword [esp + 0x34]
mov dword [esp + 0x58], eax
jmp 0x4087f2
mov eax, dword [esp + 0x34]
mov ebx, ebp
test eax, eax
je 0x408aae
cmp eax, 0xf
jbe 0x408b0d
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
sub eax, 0x10
shr eax, 4
mov dword [esp + 0x38], eax
add eax, 1
shl eax, 4
lea ecx, [edi + eax]
mov eax, edi
mov dword [esp + 0x30], ecx
movzx edx, byte [eax]
add eax, 0x10
lea edi, [edx + ebx]
movzx edx, byte [eax - 0xf]
mov dword [esp + 4], edi
mov esi, edx
movzx edx, byte [eax - 0xe]
add esi, edi
mov dword [esp + 8], esi
mov ebx, edx
movzx edx, byte [eax - 0xd]
add ebx, esi
movzx esi, byte [eax - 6]
mov dword [esp + 0xc], ebx
mov ecx, edx
movzx edx, byte [eax - 0xc]
add ecx, ebx
mov dword [esp + 0x10], ecx
add edx, ecx
movzx ecx, byte [eax - 5]
mov ebp, edx
movzx edx, byte [eax - 0xb]
mov dword [esp + 0x14], ebp
add edx, ebp
mov ebp, edx
movzx edx, byte [eax - 0xa]
mov dword [esp + 0x18], ebp
add edx, ebp
movzx ebp, byte [eax - 8]
mov edi, edx
movzx edx, byte [eax - 9]
mov dword [esp + 0x1c], edi
add edx, edi
movzx edi, byte [eax - 7]
add ebp, edx
mov dword [esp + 0x20], edx
movzx edx, byte [eax - 4]
add edi, ebp
add esi, edi
add ecx, esi
lea ebx, [edx + ecx]
movzx edx, byte [eax - 3]
mov dword [esp], ebx
mov ebx, dword [esp]
add ebx, edx
movzx edx, byte [eax - 2]
mov dword [esp + 0x24], ebx
add edx, ebx
movzx ebx, byte [eax - 1]
mov dword [esp + 0x28], edx
add ebx, edx
mov edx, dword [esp + 4]
add edx, dword [esp + 8]
add edx, dword [esp + 0xc]
add edx, dword [esp + 0x10]
add edx, dword [esp + 0x14]
add edx, dword [esp + 0x18]
add edx, dword [esp + 0x1c]
add edx, dword [esp + 0x20]
add edx, ebp
add edx, edi
add edx, esi
add edx, ecx
add edx, dword [esp]
add edx, dword [esp + 0x24]
add edx, dword [esp + 0x28]
add edx, ebx
add dword [esp + 0x2c], edx
cmp eax, dword [esp + 0x30]
jne 0x40896f
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
shl eax, 4
neg eax
lea eax, [edi + eax - 0x11]
and edi, 0xf
je 0x408a85
lea edx, [ecx + eax + 1]
mov eax, dword [esp + 0x2c]
add ecx, 1
movzx esi, byte [ecx - 1]
add ebx, esi
add eax, ebx
cmp edx, ecx
jne 0x408a72
mov dword [esp + 0x2c], eax
mov eax, ebx
mov ecx, 0x80078071
mul ecx
mov eax, edx
shr eax, 0xf
imul eax, eax, 0xfff1
sub ebx, eax
mov eax, dword [esp + 0x2c]
mul ecx
shr edx, 0xf
imul eax, edx, 0xfff1
sub dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
add esp, 0x3c
shl eax, 0x10
or eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ecx]
add eax, ebx
lea edx, [eax - 0xfff1]
cmp eax, 0xfff1
cmovae eax, edx
mov edx, edi
add edx, eax
lea ecx, [edx - 0xfff1]
cmp edx, 0xfff1
cmovae edx, ecx
add esp, 0x3c
shl edx, 0x10
pop ebx
or eax, edx
pop esi
pop edi
pop ebp
ret
mov eax, 1
jmp 0x4087da
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
jmp 0x40894e
mov eax, dword [esp + 0x58]
sub eax, 0x15b1
jmp 0x408a6a