Function at 0x40beb0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
mov ax, word [eax + 0x292]
push ebx
push ebp
push esi
test ax, ax
push edi
je 0x40c3b1
and eax, 0xffff
push eax
call fcn.00465640
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x18], esi
je 0x40c3b1
call fcn.0046b300
mov ebx, dword [esp + 0x120]
xor ecx, ecx
mov cx, word [ebx + 0x4ca]
push ecx
call fcn.0046b470
xor edx, edx
mov dx, word [ebx + 0x517]
push edx
call fcn.0046b470
xor eax, eax
mov ax, word [ebx + 0x564]
push eax
call fcn.0046b470
xor ecx, ecx
mov cx, word [ebx + 0x5b1]
push ecx
call fcn.0046b470
xor edx, edx
mov dx, word [ebx + 0x5fe]
push edx
call fcn.0046b470
xor eax, eax
mov ax, word [ebx + 0x64b]
push eax
call fcn.0046b470
xor ecx, ecx
mov cx, word [ebx + 0x698]
push ecx
call fcn.0046b470
xor edx, edx
mov dx, word [ebx + 0x6e5]
push edx
call fcn.0046b470
xor eax, eax
mov ax, word [ebx + 0x732]
push eax
call fcn.0046b470
xor ecx, ecx
mov cx, word [ebx + 0x77f]
push ecx
call fcn.0046b470
xor edx, edx
mov dx, word [ebx + 0x7cc]
push edx
call fcn.0046b470
mov ebp, dword [esp + 0x148]
add esp, 0x2c
cmp byte [ebp], 0
je 0x40bfd9
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
call fcn.0046b600
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x24], ecx
je 0x40c132
xor eax, eax
test ecx, ecx
jle 0x40c132
lea edi, [eax + 1]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edi
mov dword [esp + 0x2c], edi
call fcn.0046b620
mov eax, dword [esp + 0x124]
xor edx, edx
add esp, 0xc
mov dx, word [eax + 0x292]
mov eax, dword [esp + 0x1c]
cmp eax, edx
jne 0x40c124
mov ecx, dword [esp + 0x14]
cmp ecx, 2
mov dword [esp + 0x10], ecx
jl 0x40c124
xor eax, eax
mov ax, word [esi + 6]
cmp ecx, eax
jle 0x40c059
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
test byte [esp + 0x114], 1
je 0x40c124
cmp ecx, 2
jl 0x40c124
xor eax, eax
mov ax, word [esi + ecx*2 + 0x1a]
test eax, eax
je 0x40c090
push eax
call fcn.00466160
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40c09f
mov ecx, dword [esp + 0x14]
dec ecx
cmp ecx, 2
mov dword [esp + 0x14], ecx
jge 0x40c070
jmp 0x40c124
mov ecx, 0x38
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x573238
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
mov eax, dword [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 4
push 0xa
lea ecx, [esp + 0x38]
push eax
push ecx
push ebp
call fcn.0040af00
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, edi
cmp eax, ecx
jl 0x40bffe
cmp byte [ebp], 0
je 0x40c166
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ax, word [esi + 6]
xor edx, edx
mov dx, word [esi + 4]
push eax
push ecx
push edx
call fcn.004680f0
add esp, 4
mov edi, ebp
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str._6_s__d__d__1
add ecx, ebp
push ecx
call dword [0x56c1a4]
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 0x4ca]
mov cx, word [ebx + 0x517]
xor edx, edx
push eax
mov dx, word [esi + 8]
push ecx
push edx
push ebp
call fcn.0040bde0
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 0x4ca]
mov cx, word [ebx + 0x517]
xor edx, edx
push eax
mov dx, word [esi + 0xc]
push ecx
push edx
push ebp
call fcn.0040bde0
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 0x698]
mov cx, word [ebx + 0x64b]
xor edx, edx
push eax
mov dx, word [esi + 0x18]
push ecx
push edx
push ebp
call fcn.0040bde0
xor eax, eax
add esp, 0x44
mov ax, word [ebx + 0x698]
xor ecx, ecx
mov cx, word [ebx + 0x64b]
xor edx, edx
mov dx, word [esi + 0x1a]
push eax
push ecx
push edx
push ebp
call fcn.0040bde0
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 0x564]
mov cx, word [esi + 0xa]
push 0
push eax
push ecx
push ebp
call fcn.0040bde0
xor edx, edx
xor eax, eax
mov dx, word [ebx + 0x732]
mov ax, word [esi + 0xe]
push 0
push edx
push eax
push ebp
call fcn.0040bde0
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 0x77f]
mov dx, word [esi + 0x10]
push 0
push ecx
push edx
push ebp
call fcn.0040bde0
add esp, 0x40
xor eax, eax
mov ax, word [ebx + 0x6e5]
xor ecx, ecx
mov cx, word [esi + 0x12]
push 0
push eax
push ecx
push ebp
call fcn.0040bde0
xor edx, edx
xor eax, eax
mov dx, word [ebx + 0x5b1]
mov ax, word [esi + 0x14]
push 0
push edx
push eax
push ebp
call fcn.0040bde0
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 0x5fe]
mov dx, word [esi + 0x16]
push 0
push ecx
push edx
push ebp
call fcn.0040bde0
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 0x7cc]
mov cx, word [esi + 0x1c]
push 0
push eax
push ecx
push ebp
call fcn.0040bde0
mov al, byte [esp + 0x154]
add esp, 0x40
test al, 1
jne 0x40c3b1
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ax, word [esi + 6]
cmp ecx, eax
jge 0x40c3b1
xor edx, edx
mov dx, word [esi + eax*2 + 0x1a]
push edx
call fcn.00466160
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40c3b1
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
push 0x5f3e
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004680f0
push eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str._1_s
add ecx, ebp
push ecx
call dword [0x56c1a4]
mov ecx, 0x38
xor eax, eax
lea edi, [esp + 0x3c]
add ebx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x57323c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
push 0xa
lea eax, [esp + 0x48]
and ecx, 3
push ebx
push eax
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.0040af00
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret