Function at 0x442310
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
movzx esi, word [ebp + 2]
mov dword [esp + 0x10], esi
mov ebx, dword [edi + 0x48]
lea eax, [esi*8]
add ebx, eax
mov dword [esp + 0x1c], ebx
cmp esi, 0x8000
jae 0x442447
push 0xef
push ebp
push edi
call fcn.0044d4a0
movzx ecx, byte [ebp + 4]
mov ebx, 0x604000
and ecx, 0x1f
mov dword [esp + 0x24], eax
shr ebx, cl
add esp, 0xc
mov ecx, dword [esp + 0x1c]
and ebx, 1
shl ebx, 5
or ebx, 0x1f
and ebx, dword [ecx]
cmp dword [esp + 0x24], 0
jne 0x4423ce
test ebx, ebx
je 0x44242e
test byte [edi + 0x68], 0x40
je 0x4423ce
movzx eax, word [ebp]
push 0xef
push eax
push edi
call fcn.00444b20
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp ecx, eax
je 0x4423ce
cmp dword [esp + 0x20], 0
jne 0x4423ac
neg ebx
dec dword [edi + 0x40]
mov eax, dword [edi + 0x40]
push ecx
mov byte [eax], bl
mov ebx, dword [esp + 0x1c]
push ebx
push 0xf07be3c4
push edi
call fcn.0044c410
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, ebx
sub ecx, 0
je 0x44242e
sub ecx, 1
mov cl, byte [esp + 0x20]
je 0x44240e
mov eax, dword [edi + 0x40]
and cl, 7
dec eax
shl cl, 3
mov dword [edi + 0x40], eax
mov byte [eax], bl
mov ebx, dword [esp + 0x18]
mov al, bl
mov edx, dword [edi + 0x40]
and al, 7
sub al, 0x40
add cl, al
mov byte [edx - 1], cl
lea eax, [edx - 2]
mov dword [edx - 5], 0xc10000fe
mov dword [edi + 0x40], eax
jmp 0x442432
mov edx, dword [edi + 0x40]
and cl, 7
shl cl, 3
and al, 7
sub cl, 0x40
add cl, al
mov byte [edx - 1], cl
lea eax, [edx - 2]
mov dword [edx - 5], 0xd10000fe
mov dword [edi + 0x40], eax
mov ebx, dword [esp + 0x18]
movzx eax, word [ebp]
push eax
push ebx
push edi
call fcn.0044da70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test byte [edi + 0x68], 0x40
je 0x4424bd
cmp dword [esp + 0x24], 0
je 0x4424bd
push 0xef
push ebp
push edi
call fcn.0044d4a0
mov ecx, dword [edi + 0x48]
add esp, 0xc
mov dword [esp + 0x18], eax
movzx ebx, byte [ecx + esi*8 + 6]
test bl, bl
jns 0x442484
push 0xef
push esi
push edi
call fcn.0044d3c0
add esp, 0xc
mov ebx, eax
mov ecx, dword [edi + 0x60]
btr ecx, ebx
mov dword [edi + 0x60], ecx
mov ecx, 0xef
movzx eax, word [ebp]
btr ecx, ebx
push ecx
push eax
push edi
call fcn.00444b20
push eax
push dword [esp + 0x28]
shl ebx, 0x13
xor ebx, dword [esp + 0x38]
push ebx
push edi
call fcn.0044c410
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xed
push ebp
push edi
call fcn.0044d4a0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x18], edx
cmp edx, 1
jne 0x442583
mov eax, dword [edi + 0x58]
and eax, 0xed
jne 0x44255a
mov eax, dword [edi + 8]
or ecx, 0xffffffff
cmp dword [edi], 0xffffffff
mov esi, dword [edi + 0x18]
cmovb ecx, dword [edi]
cmp eax, ecx
cmovae eax, ecx
mov ecx, dword [edi + 0xc]
cmp ecx, eax
cmovae ecx, eax
mov eax, dword [edi + 0x14]
cmp eax, ecx
cmovae eax, ecx
mov ecx, dword [edi + 0x1c]
cmp esi, eax
movzx edx, cx
cmovae esi, eax
cmp ecx, esi
movzx eax, si
cmovae edx, eax
movzx esi, dx
cmp esi, 0x8000
jb 0x442548
mov eax, dword [edi + 0x60]
mov edx, eax
and edx, 0xed
je 0x442548
mov ecx, dword [edi + 0x48]
mov cl, byte [ecx + esi*8 + 6]
shr eax, cl
test al, 1
jne 0x442548
bsf eax, edx
movzx esi, word [edi + eax*4]
push esi
push edi
call fcn.0044dd30
mov esi, dword [esp + 0x18]
add esp, 8
mov edx, eax
jmp 0x44255d
bsr edx, eax
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x40]
bts eax, edx
mov dword [edi + 0x5c], eax
mov al, dl
and al, 7
mov dword [esp + 0x18], edx
sub al, 0x38
mov byte [ecx - 1], al
lea eax, [ecx - 2]
mov dword [ecx - 5], 0x8b0000fe
mov dword [edi + 0x40], eax
movzx edx, byte [ebx + 6]
mov dword [esp + 0x1c], edx
test dl, dl
jns 0x44259f
push 2
push esi
push edi
call fcn.0044d3c0
add esp, 0xc
mov edx, eax
jmp 0x4425b3
cmp edx, 1
je 0x4425b3
push 2
push edi
call fcn.0044de30
mov edx, dword [esp + 0x24]
add esp, 8
mov ebx, dword [esp + 0x18]
mov al, bl
mov esi, dword [edi + 0x40]
and al, 7
mov cl, byte [esp + 0x20]
sub al, 0x40
and cl, 7
shl cl, 3
add cl, al
lea eax, [esi - 2]
mov byte [esi - 1], cl
mov dword [esi - 5], 0xd30000fe
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x60]
btr eax, edx
mov dword [edi + 0x60], eax
cmp edx, 1
je 0x442432
and dl, 7
lea eax, [esi - 4]
sub dl, 0x38
mov byte [esi - 3], dl
mov dword [esi - 7], 0x8b0000fe
mov dword [edi + 0x40], eax
jmp 0x442432