Function at 0x4a13b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
test esi, esi
push edi
je 0x4a1777
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4a1777
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 0x2c]
dec edx
cmp edx, ecx
jl 0x4a1777
test ecx, ecx
jl 0x4a1777
lea ecx, [ecx + ecx*2]
mov byte [esi + 0x19], 1
mov dx, word [eax + ecx*4]
mov di, word [eax + ecx*4 + 8]
add di, word [esp + 0x24]
mov bp, word [eax + ecx*4 + 4]
mov bx, word [eax + ecx*4 + 0xa]
lea eax, [eax + ecx*4]
add bx, word [esp + 0x28]
mov word [esp + 0x14], dx
mov cx, word [eax + 2]
mov dx, word [eax + 6]
mov eax, dword [esi + 0x20]
mov word [esp + 0x10], cx
movsx ecx, di
mov word [esp + 0x2c], dx
mov edx, dword [eax + 0x30020]
cmp ecx, edx
jge 0x4a14a8
mov cx, dx
mov edx, dword [esp + 0x14]
sub ecx, edi
add edx, ecx
mov cx, word [eax + 0x30020]
sub edi, ecx
mov dword [esp + 0x14], edx
add ebp, edi
test bp, bp
jge 0x4a1462
mov dword [esi + 8], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov edi, ecx
mov edx, dword [eax + 0x30024]
movsx ecx, bx
cmp ecx, edx
jge 0x4a1583
mov ax, dx
mov edx, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
sub ebx, eax
add edx, ecx
mov ecx, dword [esp + 0x2c]
add ecx, ebx
mov dword [esp + 0x10], edx
test cx, cx
mov dword [esp + 0x2c], ecx
jge 0x4a14d3
mov dword [esi + 8], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
movsx edx, bp
add edx, ecx
mov ecx, dword [eax + 0x30028]
cmp edx, ecx
jle 0x4a1464
mov bp, cx
sub bp, di
test bp, bp
jge 0x4a1464
mov dword [esi + 8], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov ebx, eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x14], eax
mov al, byte [esi + 0x18]
cmp al, 1
jne 0x4a14f2
mov ecx, esi
call fcn.004a1e60
test al, al
je 0x4a1777
movsx ecx, bx
movsx eax, di
movsx ebx, bp
movsx edi, word [esp + 0x10]
lea edx, [ebx + eax]
mov dword [esi + 4], eax
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
movsx edx, word [esp + 0x2c]
mov dword [esp + 0x1c], edx
add edx, ecx
mov dword [esi + 0x10], edx
mov dword [esp + 0x18], ebx
movsx edx, word [esi + 0x2c]
imul edx, edi
movsx edi, word [esp + 0x14]
add edx, edi
mov edi, dword [esi + 0x24]
lea edx, [edi + edx*2]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x20]
movsx edi, word [edx + 0x30040]
imul edi, ecx
add edi, eax
mov eax, dword [edx + 0x3001c]
lea eax, [eax + edi*2]
xor edi, edi
cmp bp, di
mov dword [esp + 0x30], eax
je 0x4a1777
cmp word [esp + 0x2c], di
je 0x4a1777
movsx ecx, byte [edx + 0x30042]
dec ecx
je 0x4a169d
dec ecx
jne 0x4a1773
mov dword [esp + 0x28], edi
jmp 0x4a15be
movsx edx, word [esp + 0x2c]
add edx, ecx
mov ecx, dword [eax + 0x3002c]
cmp edx, ecx
jle 0x4a14d5
mov ax, cx
sub ax, bx
test ax, ax
mov dword [esp + 0x2c], eax
jge 0x4a14d5
mov dword [esi + 8], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor edi, edi
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x24]
sub edi, eax
mov edx, eax
mov dword [esp + 0x14], edi
mov cx, word [edx + edi]
cmp cx, word [esi + 0x3a]
je 0x4a1646
xor eax, eax
and ecx, 0xffff
mov ax, word [edx]
mov ebx, ecx
mov edi, eax
mov ebp, ecx
shr edi, 0xa
and edi, 0x1f
and ecx, 0x1f
shr ebx, 0xa
shl edi, 6
and ebx, 0x1f
add edi, ebx
mov ebx, eax
shr ebx, 5
mov di, word [edi*4 + 0x56fd68]
and ebx, 0x1f
shr ebp, 5
shl ebx, 6
and ebp, 0x1f
and eax, 0x1f
add ebx, ebp
shl di, 5
or di, word [ebx*4 + 0x56bd68]
mov ebx, dword [esp + 0x18]
shl eax, 6
add eax, ecx
shl edi, 5
or di, word [eax*4 + 0x56fd68]
mov eax, dword [esp + 0x30]
mov word [edx], di
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
add edx, 2
inc ecx
cmp ecx, ebx
mov dword [esp + 0x2c], ecx
jl 0x4a15ce
movsx ecx, word [esi + 0x2c]
mov edx, dword [esp + 0x24]
lea ecx, [edx + ecx*2]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x24], ecx
movsx ecx, word [edx + 0x30040]
mov edx, dword [esp + 0x1c]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x30], eax
cmp ecx, edx
mov dword [esp + 0x28], ecx
jl 0x4a15bc
mov byte [esi + 0x19], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov dword [esp + 0x28], edi
jmp 0x4a16a5
xor edi, edi
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x24]
sub edi, eax
mov edx, eax
mov dword [esp + 0x14], edi
mov cx, word [edx + edi]
cmp cx, word [esi + 0x3a]
je 0x4a172a
xor eax, eax
and ecx, 0xffff
mov ax, word [edx]
mov ebx, ecx
mov edi, eax
mov ebp, ecx
shr edi, 5
and edi, 0x3f
and ecx, 0x1f
shr ebx, 5
shl edi, 6
and ebx, 0x3f
add edi, ebx
mov ebx, eax
shr ebx, 0xb
mov di, word [edi*4 + 0x56bd68]
and eax, 0x1f
shl ebx, 6
shr ebp, 0xb
add ebx, ebp
shl eax, 6
mov bx, word [ebx*4 + 0x56fd68]
add eax, ecx
shl bx, 6
or di, bx
mov ebx, dword [esp + 0x18]
shl edi, 5
or di, word [eax*4 + 0x56fd68]
mov eax, dword [esp + 0x30]
mov word [edx], di
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
add edx, 2
inc ecx
cmp ecx, ebx
mov dword [esp + 0x2c], ecx
jl 0x4a16b5
movsx edx, word [esi + 0x2c]
mov ecx, dword [esp + 0x24]
lea edx, [ecx + edx*2]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], edx
movsx edx, word [ecx + 0x30040]
mov ecx, dword [esp + 0x28]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x30], eax
cmp ecx, edx
mov dword [esp + 0x28], ecx
jl 0x4a16a3
mov byte [esi + 0x19], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10