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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x10104610]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ecx
cmp eax, ebx
je 0x10013ae3
cmp dword [eax], eax
jne 0x10013ae3
cmp dword [eax + 0xa0], ebx
lea esi, [eax + 0xa0]
jne 0x10013b2b
push str.PIM_library_reference_not_initialized_or_invalid_libref.
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006af0
add esp, 4
push str.Error_Invalid_Library_reference._PIM_STATUS_INVALID_LIBRARY_REF_
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006b20
add esp, 4
mov eax, 0xfffffff6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret
cmp ecx, ebx
jne 0x10013b60
push str.Error_outVersionChars_pointer_is_NULL
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006b20
add esp, 4
mov eax, 0xfffffff2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret
push 0x48
mov dword [esp + 0x28], ebx
call fcn.100affa5
add esp, 4
cmp eax, ebx
je 0x100140ef
mov dword [esp + 0x20], eax
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x20]
push ebx
mov byte [eax + 0x44], 1
mov ecx, dword [esp + 0x24]
push str.version
push str.name
lea edx, [esp + 0x4c]
mov byte [ecx + 0x45], 1
call fcn.10023b80
add esp, 0xc
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push esi
mov edx, str.name
mov ecx, str.package_installation_info
call fcn.10027830
test al, al
jne 0x10013c2b
push str.Error_in_fetching_values_from_kPackageInstInfoTable.
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006b20
add esp, 4
lea esi, [esp + 0x40]
call fcn.10023b20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.10005460
mov ecx, dword [esp + 0x20]
push ecx
call fcn.100afa01
add esp, 4
mov eax, 0xffffffee
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov ecx, 0xf
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
mov dword [esp + 0x18], ebx
cmp eax, ebx
jle 0x10013da1
dec eax
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x10013c84
mov edi, dword [esp + 0x14]
test edi, edi
jle 0x10013d38
mov dword [esp + 0x2c], 0
jmp 0x10013c9a
mov eax, dword [esp + 0x30]
test eax, eax
jns 0x10013ca8
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x40]
jge 0x10013cce
test ebx, ebx
jns 0x10013cb2
cmp ebx, dword [esp + 0x44]
jge 0x10013cce
mov ecx, dword [esp + 0x58]
mov edx, dword [eax + ecx]
add edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [esp + 0xb8]
call fcn.100052c0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xb4]
push eax
lea esi, [esp + 0x80]
call fcn.100181f0
lea eax, [edi - 1]
cmp ebx, eax
je 0x10013d26
push 0x100dd538
mov ecx, esi
push ecx
lea edx, [esp + 0xd0]
push edx
call fcn.10019580
add esp, 0xc
mov edi, eax
call fcn.10005050
cmp dword [esp + 0xdc], 0x10
jb 0x10013d26
mov eax, dword [esp + 0xc8]
push eax
call fcn.100afa01
add esp, 4
mov edi, dword [esp + 0x14]
add dword [esp + 0x2c], 0x1c
inc ebx
cmp ebx, edi
jl 0x10013c96
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x18], ecx
je 0x10013d81
push 0x100dd53c
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0xd0]
push eax
call fcn.10019580
add esp, 0xc
mov edi, eax
lea esi, [esp + 0x74]
call fcn.10005050
cmp dword [esp + 0xdc], 0x10
jb 0x10013d81
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.100afa01
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
inc ecx
add eax, 0x10
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], eax
cmp ecx, dword [esp + 0x38]
jl 0x10013c80
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x78]
xor edx, edx
mov esi, 7
push ecx
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], dx
call fcn.10028f60
add esp, 8
test al, al
jne 0x10013ec9
push str.String_conversion_failure.
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006b20
add esp, 4
cmp dword [esp + 0xa4], 8
jb 0x10013e0c
mov edx, dword [esp + 0x90]
push edx
call fcn.100afa01
add esp, 4
mov dword [esp + 0xa4], esi
xor eax, eax
mov esi, 0x10
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], ax
cmp dword [esp + 0xc0], esi
jb 0x10013e42
mov ecx, dword [esp + 0xac]
push ecx
call fcn.100afa01
add esp, 4
mov edi, 0xf
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], 0
cmp dword [esp + 0x88], esi
jb 0x10013e73
mov edx, dword [esp + 0x74]
push edx
call fcn.100afa01
add esp, 4
lea esi, [esp + 0x40]
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], 0
call fcn.10023b20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.10005460
mov eax, dword [esp + 0x20]
push eax
call fcn.100afa01
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0xa0]
inc ebx
lea esi, [ebx + ebx]
push esi
call fcn.100b004f
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
jne 0x10013fc4
push str.malloc_failure.
call fcn.10006700
mov ecx, 0x100d9d70
call fcn.10006b20
add esp, 4
cmp dword [esp + 0xa4], 8
jb 0x10013f1c
mov ecx, dword [esp + 0x90]
push ecx
call fcn.100afa01
add esp, 4
xor esi, esi
xor edx, edx
mov ebx, 0x10
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], esi
mov word [esp + 0x90], dx
cmp dword [esp + 0xc0], ebx
jb 0x10013f58
mov eax, dword [esp + 0xac]
push eax
call fcn.100afa01
add esp, 4
mov edi, 0xf
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], esi
mov byte [esp + 0xac], 0
cmp dword [esp + 0x88], ebx
jb 0x10013f89
mov ecx, dword [esp + 0x74]
push ecx
call fcn.100afa01
add esp, 4
mov dword [esp + 0x84], esi
lea esi, [esp + 0x40]
mov dword [esp + 0x88], edi
mov byte [esp + 0x74], 0
call fcn.10023b20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.10005460
mov edx, dword [esp + 0x20]
push edx
jmp 0x10013ea9
push ebx
push 0
push edi
call fcn.100b5b30
mov eax, dword [esp + 0x9c]
mov ebx, 8
add esp, 0xc
cmp dword [esp + 0xa4], ebx
jae 0x10013fec
lea eax, [esp + 0x90]
push esi
push eax
push edi
call fcn.100afbb0
mov edi, dword [esp + 0x40]
add esp, 0xc
add edi, 0x90
lea eax, [esp + 0x14]
call fcn.10017ff0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
cmp dword [esp + 0xa4], ebx
jb 0x1001402d
mov edx, dword [esp + 0x90]
push edx
call fcn.100afa01
add esp, 4
xor esi, esi
xor eax, eax
mov ebx, 0x10
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], esi
mov word [esp + 0x90], ax
cmp dword [esp + 0xc0], ebx
jb 0x10014069
mov ecx, dword [esp + 0xac]
push ecx
call fcn.100afa01
add esp, 4
mov edi, 0xf
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], esi
mov byte [esp + 0xac], 0
cmp dword [esp + 0x88], ebx
jb 0x1001409a
mov edx, dword [esp + 0x74]
push edx
call fcn.100afa01
add esp, 4
mov dword [esp + 0x84], esi
lea esi, [esp + 0x40]
mov dword [esp + 0x88], edi
mov byte [esp + 0x74], 0
call fcn.10023b20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.10005460
mov eax, dword [esp + 0x20]
push eax
call fcn.100afa01
mov ecx, dword [esp + 0xe8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100afa0c
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], ebx
call fcn.100afab4
push 0x100fc728
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x70], vtable.std::bad_alloc.0
call fcn.100b2edf
int3