Function at 0x438330
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x20]
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
movzx eax, word [ecx + 2]
movzx ebx, ax
mov dword [esp + 8], eax
mov dl, byte [ebp + 5]
mov byte [esp + 0x2c], dl
push esi
push edi
cmp ebx, 0x8000
jae 0x4386aa
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax + ebx*8]
movzx eax, word [ecx]
and ebx, 0x3f
movzx ecx, word [ebp]
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
movzx eax, word [eax + ecx*2]
mov ecx, eax
cmp dl, 0x27
je 0x4384f0
cmp dl, 0x28
je 0x4384eb
test ebx, ebx
je 0x438517
cmp ebx, 0x20
jae 0x43845e
mov ecx, dword [esp + 0x10]
neg ebx
and ebx, 0x1f
movzx esi, cx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
cmp dl, 0x24
jne 0x438400
push ecx
push eax
push 0x2413
push edi
call fcn.00438a60
add esp, 0x10
mov edx, ebx
mov ecx, edi
mov esi, eax
call fcn.00453170
push eax
push dword [esp + 0x18]
push 0x2513
push edi
call fcn.00438a60
push eax
push esi
push 0x2213
push edi
call fcn.00438a60
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x30]
mov edx, ebx
movzx esi, word [ebp + 6]
mov byte [ecx + 5], 0x25
mov ecx, edi
call fcn.00453170
mov ebx, dword [esp + 0x18]
push eax
push ebx
push 0x2413
push edi
call fcn.00438a60
push eax
push esi
push 0x2213
push edi
call fcn.00438a60
push dword [esp + 0x30]
mov word [ebp + 6], ax
movzx eax, byte [esp + 0x58]
shl ax, 8
or ax, 0x13
push ebx
movzx eax, ax
push eax
push edi
call fcn.00438a60
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dl, 0x24
jne 0x43849d
cmp ebx, 0x20
jne 0x438482
dec dword [edi + 8]
xor edx, edx
mov ecx, edi
call fcn.00453170
pop edi
mov word [ebp + 6], ax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
movzx esi, word [ebp + 6]
xor edx, edx
mov ecx, edi
call fcn.00453170
pop edi
mov word [ebp + 6], ax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, eax
cmp ebx, 0x20
jne 0x4384ad
dec dword [edi + 8]
mov word [ebp + 6], si
jmp 0x4384b4
mov ecx, dword [esp + 0x30]
mov word [ecx], ax
mov ecx, edi
cmp dl, 0x25
jne 0x4384c9
pop edi
pop esi
pop ebp
xor edx, edx
pop ebx
add esp, 0x10
jmp fcn.00453170
mov edx, 0x1f
call fcn.00453170
push eax
push esi
push 0x2613
push edi
call fcn.00438a60
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
neg ebx
and ebx, 0x3f
cmp ebx, 0x20
lea eax, [ebx - 0x20]
mov edx, ecx
cmovb edx, esi
cmovb eax, ebx
cmovb esi, ecx
mov dword [esp + 0x34], edx
mov ecx, esi
mov dword [esp + 0x30], eax
mov ebx, eax
mov dword [esp + 0x18], ecx
mov esi, edx
test ebx, ebx
jne 0x438528
dec dword [edi + 8]
mov eax, ecx
pop edi
mov word [ebp + 6], si
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
dec dword [edi + 8]
mov edx, ebx
mov ecx, edi
call fcn.00453170
neg ebx
mov ecx, edi
and ebx, 0x1f
mov esi, eax
mov edx, ebx
call fcn.00453170
mov ebx, dword [edi + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
cmp ebx, dword [edi + 0x114]
jb 0x43855e
mov ecx, edi
call fcn.004530e0
lea eax, [ebx + 1]
movzx esi, si
mov dword [edi + 8], eax
mov ecx, 0x2413
mov eax, dword [edi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov ecx, dword [esp + 0x34]
movzx ecx, cx
mov word [eax + ebx*8], cx
mov word [eax + ebx*8 + 2], si
mov ebx, dword [edi + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ebx
cmp ebx, dword [edi + 0x114]
jb 0x43859e
mov ecx, edi
call fcn.004530e0
lea eax, [ebx + 1]
mov ecx, 0x2413
mov dword [edi + 8], eax
mov eax, dword [edi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov ecx, dword [esp + 0x18]
movzx ecx, cx
mov word [eax + ebx*8], cx
mov word [eax + ebx*8 + 2], si
mov ebx, dword [edi + 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], ebx
cmp ebx, dword [edi + 0x114]
jb 0x4385db
mov ecx, edi
call fcn.004530e0
lea eax, [ebx + 1]
mov ecx, 0x2513
mov dword [edi + 8], eax
mov eax, dword [edi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov ecx, dword [esp + 0x30]
mov word [eax + ebx*8], cx
mov ecx, dword [esp + 0x14]
movzx esi, cx
mov word [eax + ebx*8 + 2], si
mov ebx, dword [edi + 8]
cmp ebx, dword [edi + 0x114]
jb 0x438614
mov ecx, edi
call fcn.004530e0
lea eax, [ebx + 1]
mov ecx, 0x2513
mov dword [edi + 8], eax
mov eax, dword [edi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov ecx, dword [esp + 0x34]
mov word [eax + ebx*8], cx
mov word [eax + ebx*8 + 2], si
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0x114]
jb 0x438646
mov ecx, edi
call fcn.004530e0
lea eax, [esi + 1]
mov ecx, 0x2213
mov dword [edi + 8], eax
mov eax, dword [edi + 0x10]
mov word [eax + esi*8 + 4], cx
mov ecx, dword [esp + 0x10]
mov word [eax + esi*8], cx
mov word [eax + esi*8 + 2], bx
mov word [ebp + 6], si
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0x114]
jb 0x43867c
mov ecx, edi
call fcn.004530e0
lea ecx, [esi + 1]
mov eax, 0x2213
mov dword [edi + 8], ecx
mov ecx, dword [edi + 0x10]
pop edi
mov word [ecx + esi*8 + 4], ax
mov eax, dword [esp + 0x18]
mov word [ecx + esi*8], ax
mov eax, dword [esp + 0x14]
mov word [ecx + esi*8 + 2], ax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x24]
movzx eax, word [ebp + 2]
movzx ecx, word [ebp]
mov dword [esp + 0x18], eax
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x28]
lea edi, [ebx - 1]
mov dword [esi + 8], edi
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + ecx*8 + 6]
mov dword [esp + 0x30], eax
cmp edi, dword [esi + 0x114]
jb 0x4386eb
mov ecx, esi
call fcn.004530e0
mov eax, dword [esi + 0x10]
mov ecx, 0x6400
mov dword [esi + 8], ebx
mov word [eax + edi*8 + 4], cx
mov ecx, dword [esp + 0x30]
mov word [eax + edi*8], cx
mov ecx, dword [esp + 0x1c]
mov word [eax + edi*8 + 2], cx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esi + 8]
movzx eax, word [eax + ecx*8 + 6]
mov dword [esp + 0x30], eax
cmp ebx, dword [esi + 0x114]
jb 0x43872f
mov ecx, esi
call fcn.004530e0
lea eax, [ebx + 1]
mov ecx, 0x6400
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov ecx, dword [esp + 0x30]
mov word [eax + ebx*8], di
mov word [eax + ebx*8 + 2], cx
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0x114]
jb 0x438761
mov ecx, esi
call fcn.004530e0
lea eax, [edi + 1]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + edi*8], bx
movzx ebx, di
lea ecx, [eax + edi*8]
mov eax, 0x5f13
mov word [ecx + 4], ax
movzx eax, byte [esp + 0x34]
add ax, 0x48
mov word [ecx + 2], ax
mov eax, ebx
mov word [ebp + 6], bx
mov edi, dword [esi + 8]
mov dword [esp + 0x30], eax
cmp edi, dword [esi + 0x114]
jb 0x4387a8
mov ecx, esi
call fcn.004530e0
mov eax, ebx
lea ecx, [edi + 1]
mov edx, 0x1017
mov dword [esi + 8], ecx
mov ecx, dword [esi + 0x10]
mov word [ecx + edi*8 + 2], ax
mov eax, edi
mov word [ecx + edi*8], bx
mov word [ecx + edi*8 + 4], dx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret