Function at 0x49fa90
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
test esi, esi
push edi
je 0x49feac
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x49feac
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 0x2c]
dec edx
cmp edx, ecx
jl 0x49feac
test ecx, ecx
jl 0x49feac
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 bx, word [eax + ecx*4 + 4]
mov bp, word [eax + ecx*4 + 0xa]
lea eax, [eax + ecx*4]
add bp, 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 0x49fb88
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 ebx, edi
test bx, bx
jge 0x49fb42
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, bp
cmp ecx, edx
jge 0x49fbd7
mov ax, dx
mov edx, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebp
sub ebp, eax
add edx, ecx
mov ecx, dword [esp + 0x2c]
add ecx, ebp
mov dword [esp + 0x10], edx
test cx, cx
mov dword [esp + 0x2c], ecx
jge 0x49fbb3
mov dword [esi + 8], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
movsx edx, bx
add edx, ecx
mov ecx, dword [eax + 0x30028]
cmp edx, ecx
jle 0x49fb44
mov bx, cx
sub bx, di
test bx, bx
jge 0x49fb44
mov dword [esi + 8], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov ebp, eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x14], eax
mov al, byte [esi + 0x18]
cmp al, 1
jne 0x49fc08
mov ecx, esi
call fcn.004a1e60
test al, al
je 0x49feac
jmp 0x49fc60
movsx edx, word [esp + 0x2c]
add edx, ecx
mov ecx, dword [eax + 0x3002c]
cmp edx, ecx
jle 0x49fbb5
mov ax, cx
sub ax, bp
test ax, ax
mov dword [esp + 0x2c], eax
jge 0x49fbb5
mov dword [esi + 8], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov al, byte [esi + 0x1a]
test al, al
je 0x49fc60
mov al, byte [0x56bd64]
mov cl, byte [esi + 0x34]
cmp cl, al
je 0x49fc60
cmp al, 2
jne 0x49fc28
mov ecx, esi
call fcn.004a2990
jmp 0x49fc60
mov eax, dword [esi + 0x50]
test eax, eax
je 0x49fc51
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
test eax, eax
jne 0x49fc51
mov eax, dword [esi + 0x50]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [esi + 0x50], 0
mov byte [esi + 0x18], 1
mov byte [esi + 0x34], 1
mov ecx, esi
call fcn.004a1e60
test al, al
je 0x49feac
movsx ecx, bp
movsx eax, di
movsx ebp, bx
movsx edi, word [esp + 0x10]
lea edx, [eax + ebp]
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], ebp
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 bx, di
mov dword [esp + 0x30], eax
je 0x49feac
cmp word [esp + 0x2c], di
je 0x49feac
movsx ecx, byte [edx + 0x30042]
dec ecx
je 0x49fdd2
dec ecx
jne 0x49fea8
mov dword [esp + 0x28], edi
jmp 0x49fcf3
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 [edi + edx]
cmp cx, word [esi + 0x3a]
je 0x49fd7b
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 + 0x517ec0]
and ebx, 0x1f
shr ebp, 5
shl ebx, 6
and ebp, 0x1f
and eax, 0x1f
add ebx, ebp
mov ebp, dword [esp + 0x18]
shl di, 5
or di, word [ebx*4 + 0x51bec0]
shl eax, 6
add eax, ecx
shl edi, 5
or di, word [eax*4 + 0x517ec0]
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, ebp
mov dword [esp + 0x2c], ecx
jl 0x49fd03
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 0x49fcf1
mov byte [esi + 0x19], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
mov dword [esp + 0x28], edi
jmp 0x49fdda
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 0x49fe5f
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 + 0x51bec0]
and eax, 0x1f
shl ebx, 6
shr ebp, 0xb
add ebx, ebp
mov ebp, dword [esp + 0x18]
shl eax, 6
mov bx, word [ebx*4 + 0x517ec0]
add eax, ecx
shl bx, 6
or di, bx
shl edi, 5
or di, word [eax*4 + 0x517ec0]
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, ebp
mov dword [esp + 0x2c], ecx
jl 0x49fdea
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 0x49fdd8
mov byte [esi + 0x19], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10