Function at 0x40520a
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov al, byte [edx]
push ebx
push ebp
push esi
lea esi, [edx + 1]
mov byte [esp + 0xc], al
mov al, byte [esi]
shr al, 7
inc esi
push edi
push esi
mov edi, ecx
mov byte [esp + 0x15], al
call fcn.0040671b
mov dword [esp + 0x18], eax
mov al, byte [esi + 4]
mov byte [esp + 0x16], al
mov al, byte [esi + 5]
add esi, 6
push esi
mov byte [esp + 0x1b], al
call fcn.0040671b
movzx edx, byte [esi + 4]
mov ebp, eax
mov eax, 0x100
mov dword [esp + 0x24], ebp
imul dx, ax
pop ecx
pop ecx
movzx ecx, byte [esi + 5]
add dx, cx
movzx ecx, byte [esi + 6]
imul cx, ax
movzx eax, byte [esi + 7]
movzx ebx, dx
add cx, ax
cmp byte [esp + 0x10], 0x10
movzx esi, cx
sete al
mov byte [edi + 0x10], al
mov eax, dword [0x52aa58]
test dword [eax + 0x14], 0x10000000
je 0x4053d8
push dword [esp + 0x30]
mov edx, 0x6ec19fc4
mov ecx, 0x43be5f38
push 0xbc6aca00
call fcn.004011e6
pop ecx
push eax
push 0
call fcn.00405109
movzx eax, byte [esp + 0x1c]
add esp, 0xc
mov edx, 0xa41d53ce
mov ecx, 0x8962933c
push eax
push 0x76b60608
call fcn.004011e6
pop ecx
push eax
push 0
call fcn.00405109
movzx eax, byte [esp + 0x1d]
add esp, 0xc
mov edx, 0xe179d2b1
mov ecx, 0xcc061253
push eax
push 0x33d28770
call fcn.004011e6
pop ecx
push eax
push 0
call fcn.00405109
add esp, 0xc
mov edx, 0xb95f3140
mov ecx, 0x9420f196
push dword [esp + 0x14]
push 0x6bf46494
call fcn.004011e6
pop ecx
push eax
push 0
call fcn.00405109
movzx eax, byte [esp + 0x1e]
add esp, 0xc
mov edx, 0x46b900f2
mov ecx, 0x6bc6c046
push eax
push 0x94125523
call fcn.004011e6
pop ecx
push eax
push 0
call fcn.00405109
movzx eax, byte [esp + 0x1f]
add esp, 0xc
mov edx, 0x8898e51f
mov ecx, 0xa5e72587
push eax
push 0x5a33b0c6
call fcn.004011e6
pop ecx
push eax
push 0
call fcn.00405109
add esp, 0xc
mov edx, 0xd897b2bf
mov ecx, 0xf5e8723b
push ebp
push 0xa3ce760
call fcn.004011e6
pop ecx
push eax
push 0
call fcn.00405109
add esp, 0xc
mov edx, 0x64c0662c
mov ecx, 0x49bfa642
push ebx
push 0xb66b33f1
call fcn.004011e6
pop ecx
push eax
push 0
call fcn.00405109
add esp, 0xc
mov edx, 0xf99803c3
mov ecx, 0xd4e7c395
push esi
push 0x2b33561a
call fcn.004011e6
pop ecx
push eax
push 0
call fcn.00405109
add esp, 0xc
cmp dword [edi], 0
mov esi, dword [esp + 0x28]
jne 0x4053ec
imul eax, ebx, 0xc
push eax
call fcn.00405090
jmp 0x4053fd
mov eax, dword [edi + 4]
add eax, ebx
imul eax, eax, 0xc
push eax
push dword [edi]
call fcn.00406703
pop ecx
mov dword [edi], eax
mov eax, dword [edi + 4]
pop ecx
imul ecx, eax, 0xc
add eax, ebx
mov dword [edi + 4], eax
add ecx, dword [edi]
test ebx, ebx
je 0x405499
lea ebp, [ecx + 8]
push esi
call fcn.0040671b
add esi, 4
mov dword [esp + 0x2c], eax
push esi
call fcn.0040671b
add esi, 4
mov dword [esp + 0x1c], eax
push esi
call fcn.0040671b
mov ecx, dword [0x52aa58]
add esp, 0xc
add esi, 4
mov dword [esp + 0x18], eax
test dword [ecx + 0x14], 0x10000000
je 0x40547a
push eax
push dword [esp + 0x18]
mov edx, 0xadebf04d
mov ecx, 0x8094300f
push dword [esp + 0x30]
push 0x7f40a593
call fcn.004011e6
pop ecx
push eax
push 0
call fcn.00405109
add esp, 0x14
mov eax, dword [esp + 0x28]
mov dword [ebp - 8], eax
mov eax, dword [esp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [esp + 0x18]
mov dword [ebp], eax
add ebp, 0xc
dec ebx
jne 0x405418
mov ebp, dword [esp + 0x1c]
cmp dword [edi + 8], 0
jne 0x4054ac
mov eax, ebp
shl eax, 3
push eax
call fcn.00405090
jmp 0x4054be
mov eax, dword [edi + 0xc]
add eax, ebp
shl eax, 3
push eax
push dword [edi + 8]
call fcn.00406703
pop ecx
mov dword [edi + 8], eax
mov eax, ebp
pop ecx
mov ecx, dword [edi + 0xc]
shl eax, 3
push eax
mov eax, dword [edi + 8]
push esi
lea eax, [eax + ecx*8]
push eax
call fcn.004be9f0
add esp, 0xc
add dword [edi + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret