Function at 0x4a4a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ee742
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x10], ecx
je 0x4a4abe
mov esi, dword [eax + 0x18]
test esi, esi
je 0x4a4ab6
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x4a4ac5
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x4a4aa2
xor eax, eax
test eax, eax
mov edi, eax
jne 0x4a4ad0
xor al, al
jmp 0x4a4c9a
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x4a4ab8
lea ecx, [esp + 0x58]
call dword [0x61049c]
lea ecx, [esp + 0x58]
push ecx
mov esi, edi
mov dword [esp + 0xa4], 0
call fcn.004e1ea0
test al, al
je 0x4a4c58
mov eax, edi
lea esi, [esp + 0x74]
call fcn.004e1d20
push str.ProductName
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 1
call dword [0x610498]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x1c], eax
cmp ecx, eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x1c]
jb 0x4a4b3a
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x24]
mov ecx, 8
cmp dword [esp + 0x38], ecx
jae 0x4a4b4d
lea edx, [esp + 0x24]
cmp dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x78]
jae 0x4a4b5e
lea ecx, [esp + 0x78]
mov eax, dword [eax]
test eax, eax
je 0x4a4b6f
push eax
push edx
push ecx
call fcn.004ce260
add esp, 0xc
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call dword [0x6105a0]
test bl, bl
je 0x4a4b96
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x58]
push edx
call dword [0x61059c]
jmp 0x4a4c46
push str.ProcessName
lea ecx, [esp + 0x24]
call dword [0x610498]
lea eax, [esp + 0x20]
lea esi, [esp + 0x74]
call fcn.004ce200
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call dword [0x6105a0]
test bl, bl
je 0x4a4bd9
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x58]
push eax
add ecx, 0x1c
call dword [0x61059c]
jmp 0x4a4c46
push str.Type
lea ecx, [esp + 0x40]
call dword [0x610498]
lea eax, [esp + 0x3c]
lea esi, [esp + 0x74]
call fcn.004ce200
test eax, eax
lea ecx, [esp + 0x3c]
sete bl
call dword [0x6105a0]
test bl, bl
je 0x4a4c46
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x4a4c17
lea eax, [esp + 0x5c]
cmp word [eax], 0x2d
push 0
jne 0x4a4c33
add eax, 2
call fcn.004ce080
add esp, 4
neg eax
adc edx, 0
neg edx
jmp 0x4a4c3b
call fcn.004ce080
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [ecx + 0x38], eax
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], 0
call dword [0x6105a0]
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
call dword [0x6105a0]
test edi, edi
je 0x4a4c98
mov esi, dword [edi + 0x28]
test esi, esi
je 0x4a4c8c
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x4a4cc0
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x4a4c78
xor eax, eax
test eax, eax
mov edi, eax
jne 0x4a4ad0
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.005e693f
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x4a4c8e