Function at 0x100427d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x30]
mov ebx, 0x100
push edi
mov edi, dword [eax + 4]
movzx ecx, byte [esi + edi]
lea edx, [esi + edi]
movzx eax, byte [edx + 1]
imul ecx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], esi
add cx, ax
movzx eax, cx
mov dword [esp + 0x14], eax
test ax, ax
jne 0x10042834
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
add eax, 0xfffffffa
add eax, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jge 0x10042ac6
movzx eax, byte [edx + ecx + 6]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp eax, 6
jne 0x10042885
movzx ebx, byte [edx + 6]
movzx eax, byte [edx + 7]
mov ebp, dword [esp + 0x24]
shl ebx, 8
add ebx, eax
cmp ebp, ebx
jb 0x10042ac6
movzx ecx, byte [edx + 8]
movzx eax, byte [edx + 9]
shl ecx, 8
add ecx, ebx
add eax, ecx
cmp ebp, eax
jae 0x10042ac6
sub ebp, ebx
lea ecx, [esi + ebp*2]
movzx eax, byte [ecx + edi + 0xb]
movzx ecx, byte [ecx + edi + 0xa]
pop edi
pop esi
shl ecx, 8
pop ebp
add eax, ecx
pop ebx
add esp, 0xc
ret
cmp eax, 2
je 0x10042ac6
cmp eax, 4
jne 0x10042a2d
movzx ecx, byte [edx + 6]
add esi, 0xe
movzx eax, byte [edx + 7]
imul ecx, ebx
mov dword [esp + 0x18], esi
add cx, ax
shr cx, 1
movzx eax, cx
movzx ecx, byte [edx + 8]
imul ecx, ebx
mov dword [esp + 0x20], eax
movzx eax, byte [edx + 9]
add cx, ax
shr cx, 1
movzx eax, cx
movzx ecx, byte [edx + 0xa]
imul ecx, ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
movzx eax, byte [edx + 0xb]
add cx, ax
movzx ebp, cx
cmp ebx, 0xffff
jg 0x10042ac6
movzx eax, byte [edx + 0xc]
movzx ecx, byte [edx + 0xd]
shl eax, 8
add ecx, eax
shr ecx, 1
lea edx, [esi + ecx*2]
movzx ecx, byte [edx + edi]
movzx eax, byte [edx + edi + 1]
shl ecx, 8
add ecx, eax
cmp ebx, ecx
cmovge esi, edx
sub esi, 2
test bp, bp
je 0x1004294a
mov bx, word [esp + 0x14]
shr bx, 1
movzx eax, bx
lea edx, [esi + eax*2]
movzx ecx, byte [edx + edi]
movzx eax, byte [edx + edi + 1]
shl ecx, 8
add ecx, eax
cmp dword [esp + 0x24], ecx
cmovg esi, edx
add ebp, 0xffff
test bp, bp
jne 0x10042921
mov ecx, dword [esp + 0x18]
sub esi, ecx
mov eax, dword [esp + 0x20]
add esi, 2
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
shr esi, 1
movzx eax, ax
movzx edx, si
add eax, edx
mov dword [esp + 0x14], edx
lea esi, [ecx + edx*2]
lea eax, [ebx + eax*2]
movzx ecx, byte [eax + edi + 0x10]
movzx eax, byte [eax + edi + 0x11]
shl ecx, 8
add eax, ecx
mov dword [esp + 0x18], eax
cmp ebp, eax
jl 0x10042ac6
movzx ecx, byte [esi + edi]
movzx eax, byte [esi + edi + 1]
shl ecx, 8
add ecx, eax
cmp ebp, ecx
jg 0x10042ac6
mov ecx, dword [esp + 0x20]
movzx eax, cx
lea esi, [eax + eax*2]
lea eax, [esi + edx]
lea eax, [ebx + eax*2]
movzx edx, byte [eax + edi + 0x11]
movzx ecx, byte [eax + edi + 0x10]
mov eax, 0x100
imul ecx, eax
add dx, cx
movzx ecx, dx
test cx, cx
jne 0x10042a07
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
movzx ecx, dx
lea eax, [eax + ecx*2]
lea eax, [eax + 8]
lea edx, [ebx + eax*2]
mov eax, 0x100
movzx ecx, byte [edx + edi]
imul ecx, eax
movzx eax, byte [edx + edi + 1]
pop edi
pop esi
add cx, ax
add cx, bp
pop ebp
movzx eax, cx
pop ebx
add esp, 0xc
ret
sub esi, dword [esp + 0x18]
add ecx, ebx
add esi, dword [esp + 0x14]
add esi, ebp
lea ecx, [ecx + esi*2]
movzx eax, byte [ecx + edi + 0x10]
movzx ecx, byte [ecx + edi + 0x11]
pop edi
pop esi
shl eax, 8
pop ebp
add eax, ecx
pop ebx
add esp, 0xc
ret
cmp eax, 0xc
je 0x10042a3b
cmp eax, 0xd
jne 0x10042ac6
lea eax, [edx + 0xc]
xor ebx, ebx
push eax
call fcn.10042450
mov ebp, eax
add esp, 4
test ebp, ebp
jle 0x10042ac6
nop
mov edx, ebp
sub edx, ebx
sar edx, 1
add edx, ebx
lea eax, [edx + edx*2]
shl eax, 2
mov dword [esp + 0x18], eax
add eax, esi
movzx esi, byte [edi + eax + 0x10]
add edi, eax
shl esi, 8
movzx eax, byte [edi + 0x11]
add esi, eax
movzx eax, byte [edi + 0x12]
shl esi, 8
add esi, eax
movzx eax, byte [edi + 0x13]
shl esi, 8
add esi, eax
cmp dword [esp + 0x24], esi
jae 0x10042a90
mov ebp, edx
jmp 0x10042aba
movzx eax, byte [edi + 0x14]
movzx ecx, byte [edi + 0x15]
shl eax, 8
add ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x17]
mov edi, dword [esp + 0x24]
shl ecx, 8
add ecx, eax
cmp edi, ecx
jbe 0x10042ad0
lea ebx, [edx + 1]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
cmp ebx, ebp
jl 0x10042a50
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, dword [esp + 0x10]
add ecx, 0x18
add eax, ecx
push eax
call fcn.10042450
add esp, 4
cmp word [esp + 0x14], 0xc
jne 0x10042ac8
sub eax, esi
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret