Function at 0x4c6650
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x50cd58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x806d00]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xc]
push 0
lea eax, [esi + 0x10]
push 0x2a
push eax
call dword [0x6ab460]
cmp eax, 0x2a
jne 0x4c6954
test edx, edx
jne 0x4c6954
mov eax, dword [esi + 0x80010]
movzx ecx, byte [eax + 7]
movzx edx, byte [eax + 6]
movzx edi, byte [eax + 0x1a]
shl cx, 8
or cx, dx
movzx edx, byte [eax + 0x18]
movzx ebx, cx
movzx ecx, byte [eax + 0x19]
shl cx, 8
or cx, dx
movzx edx, byte [eax + 0x1b]
shl dx, 8
or dx, di
movzx edi, byte [eax + 0x1d]
movzx ax, byte [eax + 0x1c]
shl di, 8
or di, ax
movzx edx, dx
movzx eax, di
movzx ecx, cx
mov dword [esp + 0x24], edx
movzx edx, dx
movzx ebp, cx
mov dword [esp + 0x2c], eax
movzx eax, ax
lea edi, [edx + ebp]
add edi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], 0
test bx, bx
je 0x4c671b
cmp bx, 8
jne 0x4c6764
cmp byte [esi + 0x10], 0x1b
jg 0x4c6764
test cx, cx
je 0x4c6764
mov ecx, dword [esi + 0xc]
mov eax, ebp
cdq
mov edi, eax
push edx
lea eax, [esi + 0x40010]
push edi
push eax
mov dword [esp + 0x28], edx
call dword [0x6ab460]
cmp eax, edi
jne 0x4c674b
cmp edx, dword [esp + 0x1c]
je 0x4c67a9
mov eax, 9
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [esi + 0xc]
mov ebx, dword [ecx]
mov edx, dword [ebx + 0x38]
call edx
xor ecx, ecx
add eax, edi
adc edx, ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [ebx + 0x40]
push eax
call edx
test al, al
jne 0x4c678a
mov dword [esp + 0x18], 0xb
inc word [esi + 0x80022]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push ebp
lea eax, [esi + 0x40010]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [0x6abc0c]
push 0x24
mov dword [esp + 0x48], 0
call fcn.004da6b6
add esp, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0x4c67e6
mov ecx, eax
call fcn.004c4ac0
mov edi, eax
jmp 0x4c67e8
xor edi, edi
mov word [edi + 0xa], bx
movzx ecx, byte [esi + 0x14]
mov byte [edi + 8], cl
movzx edx, byte [esi + 0x15]
mov byte [edi + 9], dl
movzx eax, byte [esi + 0x18]
mov byte [edi + 0xc], al
movzx ecx, byte [esi + 0x19]
mov byte [edi + 0xd], cl
movzx edx, byte [esi + 0x1a]
mov byte [edi + 0xe], dl
movzx eax, byte [esi + 0x1b]
mov byte [edi + 0xf], al
mov ecx, dword [esi + 0x80010]
movzx eax, byte [ecx + 0xf]
movzx edx, byte [ecx + 0xe]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 0xd]
movzx ecx, byte [ecx + 0xc]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x80010]
movzx eax, byte [ecx + 0x13]
movzx edx, byte [ecx + 0x12]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 0x11]
movzx ecx, byte [ecx + 0x10]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [edi + 0x14], eax
mov ecx, dword [esi + 0x80010]
movzx eax, byte [ecx + 0x17]
movzx edx, byte [ecx + 0x16]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 0x15]
movzx ecx, byte [ecx + 0x14]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
cmp word [esp + 0x24], 0
mov byte [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [edi + 0x18], eax
je 0x4c6901
mov ecx, dword [esi + 0xc]
mov ebx, dword [ecx]
mov edx, dword [ebx + 0x38]
call edx
mov ecx, eax
mov eax, dword [esp + 0x28]
mov ebp, edx
cdq
add ecx, eax
adc ebp, edx
mov edx, dword [ebx + 0x40]
push ebp
push ecx
mov ecx, dword [esi + 0xc]
call edx
test al, al
jne 0x4c6901
lea ecx, [edi + 0x1c]
call dword [0x6abc18]
push edi
call fcn.004da6aa
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [0x6abc18]
mov eax, 0xb
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp word [esp + 0x2c], 0
je 0x4c69a5
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xc]
cdq
mov ebp, edx
mov ebx, eax
push ebp
push ebx
lea eax, [esi + 0x40010]
push eax
call dword [0x6ab460]
cmp eax, ebx
jne 0x4c6930
cmp edx, ebp
je 0x4c696d
lea ecx, [edi + 0x1c]
call dword [0x6abc18]
push edi
call fcn.004da6aa
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [0x6abc18]
mov eax, 9
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x20]
push eax
lea eax, [esi + 0x40010]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [0x6abc0c]
add esp, 0xc
push eax
lea ecx, [edi + 0x1c]
mov byte [esp + 0x3c], 2
call dword [0x6abbac]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 0
call dword [0x6abc18]
mov ecx, dword [esi + 0x80010]
movzx eax, byte [ecx + 0x28]
movzx edx, byte [ecx + 0x27]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 0x26]
movzx ecx, byte [ecx + 0x29]
shl eax, 8
or eax, edx
shl ecx, 0x18
or ecx, eax
mov dword [edi], ecx
cmp dword [esi + 8], 0
jne 0x4c69fc
push 4
call fcn.004da6b6
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x38], 3
test eax, eax
je 0x4c69f2
mov ecx, eax
call fcn.004c5190
jmp 0x4c69f4
xor eax, eax
mov byte [esp + 0x38], 0
mov dword [esi + 8], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 8]
call fcn.0043a580
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [0x6abc18]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret