Function at 0x4c2290
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x13c
push 1
movsx eax, word [esi + 0xe]
movsx ecx, word [esi + 4]
movsx edx, word [esi + 8]
movsx edi, word [esi + 0xc]
mov dword [esp + 0x28], eax
lea eax, [edx + ecx*2 + 2]
movsx ecx, word [esi + 6]
movsx edx, word [esi + 0xa]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], 1
lea eax, [edx + ecx*2 + 2]
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], eax
call fcn.00547150
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4c22f8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cx, word [esp + 0x20]
mov word [ebx + 0xc], di
mov word [ebx + 0xe], cx
mov dx, word [esi + 4]
mov word [ebx + 4], dx
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov cx, word [esi + 8]
mov word [ebx + 8], cx
mov dx, word [esi + 0xa]
add esi, 0x24
lea edi, [ebx + 0x24]
mov ecx, 0xc
mov word [ebx + 0xa], dx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x58]
mov dword [ebx + 0x58], eax
mov ecx, dword [esi + 0x5c]
mov dword [ebx + 0x5c], ecx
mov edx, dword [esi + 0x60]
mov dword [ebx + 0x60], edx
mov eax, dword [esi + 0x64]
mov dword [ebx + 0x64], eax
mov ecx, dword [esi + 0x68]
mov dword [ebx + 0x68], ecx
mov edx, dword [esi + 0x6c]
mov dword [ebx + 0x6c], edx
mov eax, dword [esi + 0x70]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x74]
cmp eax, 1
mov dword [ebx + 0x74], ecx
jne 0x4c237c
mov edx, dword [esp + 0x2c]
dec edx
dec word [ebx + 8]
mov word [ebx + 0xc], dx
jmp 0x4c2389
mov eax, dword [esp + 0x20]
dec eax
dec word [ebx + 0xa]
mov word [ebx + 0xe], ax
movsx ecx, word [ebx + 0xc]
push 4
push ecx
call fcn.00547150
xor edi, edi
add esp, 8
cmp eax, edi
mov dword [ebx + 0x10], eax
jne 0x4c23ad
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [ebx + 0xc], di
jle 0x4c23dc
movsx edx, word [ebx + 0xe]
push 0x18
push edx
call fcn.00547150
mov ecx, dword [ebx + 0x10]
add esp, 8
mov dword [ecx + edi*4], eax
mov edx, dword [ebx + 0x10]
cmp dword [edx + edi*4], 0
je 0x4c23a1
movsx eax, word [ebx + 0xc]
inc edi
cmp edi, eax
jl 0x4c23b3
xor edi, edi
cmp dword [ebp + 0xc], 1
jne 0x4c263c
movsx ecx, word [esi + 0xc]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
cmp eax, edi
mov dword [esp + 0x18], edi
jle 0x4c288c
mov dword [esp + 0x28], edi
push 0xb0
push 1
call fcn.00547150
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0xc], edi
je 0x4c23a1
mov dx, word [esi + 4]
push 8
mov word [edi + 4], dx
mov ax, word [esi + 8]
mov edx, dword [esp + 0x18]
mov word [edi + 6], ax
mov cx, word [esi + 0xc]
push edx
mov word [edi + 8], cx
call fcn.00547150
add esp, 8
mov dword [edi + 0x14], eax
test eax, eax
je 0x4c23a1
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x24], eax
jle 0x4c2489
mov edx, dword [esi + 0x18]
shl eax, 3
mov ecx, eax
add ecx, edx
mov edx, dword [edi + 0x14]
mov edi, dword [ecx]
mov dword [edx + eax], edi
mov edi, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
mov dword [edx + eax + 4], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4c245b
mov edx, dword [esp + 0x1c]
push 0x18
push edx
call fcn.00547150
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
je 0x4c23a1
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jle 0x4c24e1
xor edx, edx
jmp 0x4c24b4
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
mov edi, edx
add edx, 0x18
mov esi, dword [ecx + eax*4]
mov ecx, dword [esp + 0x28]
add esi, ecx
mov ecx, dword [esp + 0xc]
add edi, dword [ecx + 0xc]
mov ecx, 6
inc eax
rep movsd dword es:[edi], dword [esi]
cmp eax, dword [esp + 0x1c]
jl 0x4c24b1
mov edi, dword [esp + 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
push edi
call fcn.004c28a0
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4c25f7
cmp word [ebx + 0xc], ax
jle 0x4c2537
xor edx, edx
mov ecx, dword [edi + 0xc]
mov esi, edx
add esi, ecx
mov ecx, dword [ebx + 0x10]
add edx, 0x18
mov edi, dword [ecx + eax*4]
mov ecx, dword [esp + 0x28]
add edi, ecx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsx ecx, word [ebx + 0xc]
mov edi, dword [esp + 0xc]
inc eax
cmp eax, ecx
jl 0x4c250a
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
dec edx
cmp eax, edx
jne 0x4c25f7
mov eax, dword [esp + 0x14]
push 8
dec eax
push eax
call fcn.00547150
add esp, 8
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4c23a1
mov ecx, dword [esp + 0x14]
xor eax, eax
dec ecx
mov dword [esp + 0xc], eax
test ecx, ecx
mov dword [esp + 0x2c], ecx
jle 0x4c25a5
mov edx, dword [edi + 0x14]
shl eax, 3
mov ecx, eax
add ecx, dword [ebx + 0x18]
mov eax, dword [edx + eax]
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
shl eax, 3
mov edx, dword [edx + eax + 4]
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x4c2576
mov eax, dword [esp + 0x10]
push 8
push eax
call fcn.00547150
add esp, 8
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x4c23a1
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
mov dword [esp + 0xc], eax
jle 0x4c25f7
mov edx, dword [esi + 0x1c]
shl eax, 3
mov ecx, eax
add ecx, edx
mov edx, dword [ebx + 0x1c]
add eax, edx
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x4c25cd
push edi
call fcn.004bb900
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
jne 0x4c288c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
inc eax
add edx, 0x18
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edx
jl 0x4c2402
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [edx], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx edx, word [esi + 0xe]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
cmp eax, edi
mov dword [esp + 0x18], edi
jle 0x4c288c
mov dword [esp + 0x28], edi
push 0xb0
push 1
call fcn.00547150
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0xc], edi
je 0x4c23a1
mov ax, word [esi + 6]
push 8
mov word [edi + 4], ax
mov cx, word [esi + 0xa]
mov eax, dword [esp + 0x14]
mov word [edi + 6], cx
mov dx, word [esi + 0xe]
push eax
mov word [edi + 8], dx
call fcn.00547150
add esp, 8
mov dword [edi + 0x14], eax
test eax, eax
je 0x4c23a1
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x24], eax
jle 0x4c26e3
mov edx, dword [esi + 0x1c]
shl eax, 3
mov ecx, eax
add ecx, edx
mov edx, dword [edi + 0x14]
mov edi, dword [ecx]
mov dword [edx + eax], edi
mov edi, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
mov dword [edx + eax + 4], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4c26b5
mov edx, dword [esp + 0x1c]
push 0x18
push edx
call fcn.00547150
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
je 0x4c23a1
mov edx, dword [esp + 0x1c]
test edx, edx
jle 0x4c2735
xor eax, eax
jmp 0x4c270c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
mov esi, dword [esp + 0x28]
mov edi, eax
mov esi, dword [ecx + esi]
mov ecx, dword [esp + 0xc]
add esi, eax
add eax, 0x18
add edi, dword [ecx + 0xc]
mov ecx, 6
dec edx
rep movsd dword es:[edi], dword [esi]
jne 0x4c2709
mov edi, dword [esp + 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
push edi
call fcn.004c28a0
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4c284b
xor edx, edx
cmp word [ebx + 0xe], dx
jle 0x4c278b
mov ecx, dword [edi + 0xc]
mov edi, dword [esp + 0x28]
mov esi, eax
add esi, ecx
mov ecx, dword [ebx + 0x10]
mov edi, dword [ecx + edi]
mov ecx, 6
add edi, eax
inc edx
rep movsd dword es:[edi], dword [esi]
movsx ecx, word [ebx + 0xe]
mov edi, dword [esp + 0xc]
add eax, 0x18
cmp edx, ecx
jl 0x4c275e
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
dec edx
cmp eax, edx
jne 0x4c284b
mov eax, dword [esp + 0x10]
push 8
dec eax
push eax
call fcn.00547150
add esp, 8
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x4c23a1
mov ecx, dword [esp + 0x10]
xor eax, eax
dec ecx
mov dword [esp + 0xc], eax
test ecx, ecx
mov dword [esp + 0x20], ecx
jle 0x4c27f9
mov edx, dword [edi + 0x14]
shl eax, 3
mov ecx, eax
add ecx, dword [ebx + 0x1c]
mov eax, dword [edx + eax]
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
shl eax, 3
mov edx, dword [edx + eax + 4]
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x4c27ca
mov eax, dword [esp + 0x14]
push 8
push eax
call fcn.00547150
add esp, 8
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4c23a1
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
mov dword [esp + 0xc], eax
jle 0x4c284b
mov edx, dword [esi + 0x18]
shl eax, 3
mov ecx, eax
add ecx, edx
mov edx, dword [ebx + 0x18]
add eax, edx
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x4c2821
push edi
call fcn.004bb900
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
jne 0x4c288c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edx
jl 0x4c2658
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [edx], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00502580
mov eax, dword [esp + 0x28]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret