Function at 0x404ed2
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.004063e3
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.004063e3
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 [0x529a98]
test dword [eax + 0x14], 0x10000000
je 0x4050a0
push dword [esp + 0x30]
mov edx, 0xb63e3309
mov ecx, 0x9a6178ed
push 0x45c4ff56
call fcn.00401166
pop ecx
push eax
push 0
call fcn.00404dd1
movzx eax, byte [esp + 0x1c]
add esp, 0xc
mov edx, 0x93927b3
mov ecx, 0x25666c59
push eax
push 0xfac3ebee
call fcn.00401166
pop ecx
push eax
push 0
call fcn.00404dd1
movzx eax, byte [esp + 0x1d]
add esp, 0xc
mov edx, 0xa8a6f7d9
mov ecx, 0x84f9bc23
push eax
push 0x5b5c3b83
call fcn.00401166
pop ecx
push eax
push 0
call fcn.00404dd1
add esp, 0xc
mov edx, 0xb53715fd
mov ecx, 0x99685e33
push dword [esp + 0x14]
push 0x46cdd9b2
call fcn.00401166
pop ecx
push eax
push 0
call fcn.00404dd1
movzx eax, byte [esp + 0x1e]
add esp, 0xc
mov edx, 0x4b2ec76a
mov ecx, 0x67718cc6
push eax
push 0xb8d40b20
call fcn.00401166
pop ecx
push eax
push 0
call fcn.00404dd1
movzx eax, byte [esp + 0x1f]
add esp, 0xc
mov edx, 0xf2eaabbd
mov ecx, 0xdeb5e03d
push eax
push 0x11067ff
call fcn.00401166
pop ecx
push eax
push 0
call fcn.00404dd1
add esp, 0xc
mov edx, 0x781aa59f
mov ecx, 0x5445ee03
push ebp
push 0x8be069db
call fcn.00401166
pop ecx
push eax
push 0
call fcn.00404dd1
add esp, 0xc
mov edx, 0xf9fbe5a6
mov ecx, 0xd5a4aed0
push ebx
push 0xa0129e0
call fcn.00401166
pop ecx
push eax
push 0
call fcn.00404dd1
add esp, 0xc
mov edx, 0x8a82bcc9
mov ecx, 0xa6ddf787
push esi
push 0x7978708b
call fcn.00401166
pop ecx
push eax
push 0
call fcn.00404dd1
add esp, 0xc
cmp dword [edi], 0
mov esi, dword [esp + 0x28]
jne 0x4050b4
imul eax, ebx, 0xc
push eax
call fcn.00404d58
jmp 0x4050c5
mov eax, dword [edi + 4]
add eax, ebx
imul eax, eax, 0xc
push eax
push dword [edi]
call fcn.004063cb
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 0x405161
lea ebp, [ecx + 8]
push esi
call fcn.004063e3
add esi, 4
mov dword [esp + 0x2c], eax
push esi
call fcn.004063e3
add esi, 4
mov dword [esp + 0x1c], eax
push esi
call fcn.004063e3
mov ecx, dword [0x529a98]
add esp, 0xc
add esi, 4
mov dword [esp + 0x18], eax
test dword [ecx + 0x14], 0x10000000
je 0x405142
push eax
push dword [esp + 0x18]
mov edx, 0x3eee80ed
mov ecx, 0x12b1cbb7
push dword [esp + 0x30]
push 0xcd144ca8
call fcn.00401166
pop ecx
push eax
push 0
call fcn.00404dd1
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 0x4050e0
mov ebp, dword [esp + 0x1c]
cmp dword [edi + 8], 0
jne 0x405174
mov eax, ebp
shl eax, 3
push eax
call fcn.00404d58
jmp 0x405186
mov eax, dword [edi + 0xc]
add eax, ebp
shl eax, 3
push eax
push dword [edi + 8]
call fcn.004063cb
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.004be440
add esp, 0xc
add dword [edi + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret