Function at 0x4392d0
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 + 0x18], ebx
cmp esi, 0x8000
jae 0x439409
push 0xef
push ebp
push edi
call fcn.004425a0
movzx ecx, byte [ebp + 4]
mov ebx, 0x604000
and ecx, 0x1f
mov dword [esp + 0x28], eax
shr ebx, cl
add esp, 0xc
mov ecx, dword [esp + 0x18]
and ebx, 1
shl ebx, 5
or ebx, 0x1f
and ebx, dword [ecx]
cmp dword [esp + 0x24], 0
jne 0x439391
test ebx, ebx
je 0x4393f0
test dword [edi + 0x68], 0x200
je 0x439391
movzx eax, word [ebp]
push 0xef
push eax
push edi
call fcn.0043b400
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x439391
cmp dword [esp + 0x20], 0
jne 0x43936f
neg ebx
dec dword [edi + 0x40]
mov eax, dword [edi + 0x40]
push ecx
mov byte [eax], bl
mov ebx, dword [esp + 0x20]
push ebx
push 0xf07be3c4
push edi
call fcn.004418c0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, ebx
sub ecx, 0
je 0x4393f0
sub ecx, 1
mov cl, byte [esp + 0x20]
je 0x4393d0
dec dword [edi + 0x40]
and cl, 7
mov eax, dword [edi + 0x40]
shl cl, 3
mov byte [eax], bl
mov ebx, dword [esp + 0x1c]
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 0x4393f4
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 + 0x1c]
movzx eax, word [ebp]
push eax
push ebx
push edi
call fcn.00442c30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test dword [edi + 0x68], 0x200
je 0x439482
cmp dword [esp + 0x24], 0
je 0x439482
push 0xef
push ebp
push edi
call fcn.004425a0
mov ecx, dword [edi + 0x48]
add esp, 0xc
mov dword [esp + 0x1c], eax
movzx ebx, byte [ecx + esi*8 + 6]
test bl, bl
jns 0x439449
push 0xef
push esi
push edi
call fcn.004424e0
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.0043b400
push eax
push dword [esp + 0x2c]
shl ebx, 0x13
xor ebx, dword [esp + 0x38]
push ebx
push edi
call fcn.004418c0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xed
push ebp
push edi
call fcn.004425a0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x1c], edx
cmp edx, 1
jne 0x439567
mov eax, dword [edi + 0x58]
and eax, 0xed
jne 0x43953e
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 ecx, dx
mov dword [esp + 0x1c], ecx
cmp ecx, 0x8000
jb 0x43952c
mov edx, dword [edi + 0x60]
mov esi, edx
and esi, 0xed
je 0x43952c
mov eax, dword [edi + 0x48]
mov cl, byte [eax + ecx*8 + 6]
shr edx, cl
test dl, 1
jne 0x439528
bsf eax, esi
movzx ecx, word [edi + eax*4]
push ecx
push edi
call fcn.00442e90
mov esi, dword [esp + 0x18]
add esp, 8
mov edx, eax
jmp 0x439541
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call fcn.00442e90
mov esi, dword [esp + 0x18]
add esp, 8
mov edx, eax
jmp 0x439541
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 + 0x1c], 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 + 0x18], edx
test dl, dl
jns 0x439583
push 2
push esi
push edi
call fcn.004424e0
add esp, 0xc
mov edx, eax
jmp 0x439597
cmp edx, 1
je 0x439597
push 2
push edi
call fcn.00442f90
mov edx, dword [esp + 0x20]
add esp, 8
mov ebx, dword [esp + 0x1c]
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 0x4393f4
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 0x4393f4