Function at 0x45d260
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x24]
mov ebx, dword [edi + 0xc]
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
je 0x45d28e
mov eax, dword [ebp + 0x44]
add word [eax + 0x16], 1
jmp 0x45d29f
mov esi, dword [esp + 0x2c]
mov ebx, edi
call fcn.0042f090
mov ebx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [ebx + 0x44]
push eax
mov dword [esp + 0x2c], ebp
call fcn.00452740
mov esi, eax
add esp, 4
test esi, esi
jne 0x45d4d1
mov eax, dword [ebx + 0x40]
movzx edx, byte [eax + 0x26]
xor ecx, ecx
mov ch, byte [eax + 0x24]
mov ebx, dword [esp + 0x2c]
mov cl, byte [eax + 0x25]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x27]
shl ecx, 8
or ecx, edx
mov esi, ecx
lea ecx, [esi + 1]
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x24], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 0x25], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 0x26], dl
mov byte [eax + 0x27], cl
cmp byte [edi + 0x13], 0
mov dword [esp + 0x1c], esi
je 0x45d321
push 0
push 2
push edi
mov eax, ebx
call fcn.0045b4a0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45d4d1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x45d446
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x40]
movzx ecx, byte [eax + 0x21]
mov ch, byte [eax + 0x20]
movzx edx, byte [eax + 0x22]
add eax, 0x20
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov esi, ecx
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
mov dword [esp + 0x1c], esi
call fcn.0045b6d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x45d4d1
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x40]
movzx ecx, byte [eax + 6]
xor edx, edx
mov dh, byte [eax + 4]
add eax, 4
mov dl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov edi, edx
jge 0x45d39d
mov esi, 0xb
jmp 0x45d4d1
mov ecx, dword [esp + 0x24]
movzx edx, word [ecx + 0x18]
shr edx, 2
sub edx, 8
cmp edi, edx
jge 0x45d444
mov eax, dword [esi + 0x44]
push eax
call fcn.00452740
mov esi, eax
add esp, 4
test esi, esi
jne 0x45d4d1
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x40]
lea ecx, [edi + 1]
add eax, 4
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov byte [eax + 3], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov eax, dword [esi + 0x40]
lea eax, [eax + edi*4 + 8]
mov ecx, ebx
shr ecx, 0x18
mov byte [eax], cl
mov edx, ebx
mov ecx, ebx
shr edx, 0x10
shr ecx, 8
test ebp, ebp
mov byte [eax + 1], dl
mov byte [eax + 2], cl
mov byte [eax + 3], bl
je 0x45d430
mov ecx, dword [ebp + 0x44]
movzx eax, word [ecx + 0x14]
test al, 2
je 0x45d430
mov edx, dword [ecx + 0x10]
cmp dword [edx + 0x5c], 0
jne 0x45d430
or eax, 0x20
mov word [ecx + 0x14], ax
mov eax, dword [esp + 0x24]
push ebx
call fcn.004383b0
add esp, 4
mov esi, eax
jmp 0x45d4d1
mov edi, ecx
test ebp, ebp
jne 0x45d465
lea eax, [esp + 0x28]
push eax
xor eax, eax
mov esi, ebx
call fcn.0045b6d0
mov ebp, dword [esp + 0x2c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x45d4d1
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.00452740
mov esi, eax
add esp, 4
test esi, esi
jne 0x45d4d1
mov eax, dword [ebp + 0x40]
mov ecx, dword [esp + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov byte [eax + 3], cl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov eax, dword [ebp + 0x40]
add eax, 4
mov byte [eax], 0
mov byte [eax + 1], 0
mov byte [eax + 2], 0
mov byte [eax + 3], 0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x40]
add eax, 0x20
mov ecx, ebx
shr ecx, 0x18
mov byte [eax], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [eax + 1], dl
mov byte [eax + 2], cl
mov byte [eax + 3], bl
test ebp, ebp
je 0x45d4e5
mov byte [ebp], 0
mov edx, dword [ebp + 0x44]
push edx
call fcn.00459830
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45d4f9
mov eax, dword [eax + 0x44]
push eax
call fcn.00459830
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret