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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x10029170]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x58], ecx
mov ebx, edx
mov dword [esp + 0x60], edi
push eax
mov dword [esp + 0x34], ebx
xor esi, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 0
call sym.IPHLPAPI.DLL_GetCurrentThreadCompartmentScope
mov eax, ebx
mov dword [edi], esi
sub eax, esi
je 0x1000a64d
sub eax, 1
jne 0x100145be
xor bl, bl
movzx eax, bl
lea edx, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x238
test bl, bl
jne 0x1000a40d
lea edx, [esp + 0x28]
movzx ecx, bl
lea edi, [esp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffe48
add ecx, 0x290
test bl, bl
jne 0x1000a42c
lea edi, [esp + 0x14]
push 1
lea esi, [esp + 0x40]
push esi
push eax
push edx
push ecx
push edi
movzx eax, bl
lea ecx, [esp + 0x38]
neg eax
sbb eax, eax
and eax, 0x440
push eax
movzx eax, bl
neg eax
sbb eax, eax
and eax, ecx
push eax
push 8
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x54]
push 0x10001968
push dword [esp + 0x84]
call dword [sym.imp.NSI.dll_NsiAllocateAndGetTable]
mov edi, eax
mov esi, 0
test edi, edi
jne 0x100145cc
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x1000a4b8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0xd0
test bl, bl
jne 0x1000a60f
mov edi, dword [ecx]
cmp edi, dword [esp + 0x4c]
jne 0x100145fb
inc esi
add eax, 0xd8
add ecx, 0x290
sub edx, 1
jne 0x1000a493
imul esi, esi, 0x548
add esi, 0xc
mov ecx, esi
call fcn.1000563a
mov edi, eax
mov dword [esp + 0x58], edi
test edi, edi
je 0x1001460b
push esi
push 0
push edi
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
xor eax, eax
xor esi, esi
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x3c], eax
jbe 0x1000a5c6
xor edx, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x30], eax
lea eax, [edi + 8]
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x50], eax
test bl, bl
jne 0x1000a616
mov eax, dword [esp + 0x14]
mov eax, dword [edx + eax]
cmp eax, dword [esp + 0x4c]
jne 0x10014612
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
mov edi, eax
inc dword [esp + 0x44]
add eax, 0x548
mov dword [esp + 0x50], eax
mov eax, dword [ecx + esi*8]
mov dword [edi], eax
mov eax, dword [ecx + esi*8 + 4]
mov ecx, edi
mov dword [edi + 4], eax
test bl, bl
jne 0x1000a626
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x38]
add edx, dword [esp + 0x14]
push eax
call fcn.1000a660
cmp dword [edi + 0x468], 0x83
je 0x10014622
add dword [esp + 0x18], 0xd8
inc esi
add dword [esp + 0x40], 0x290
add dword [esp + 0x30], 0x258
add dword [esp + 0x34], 0x440
add dword [esp + 0x38], 0x238
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], esi
cmp esi, dword [esp + 0x3c]
jb 0x1000a517
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x58]
mov dword [edi], eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x60]
push dword [esp + 0x14]
push dword [esp + 0x28]
mov dword [eax], edi
push dword [esp + 0x30]
call dword [sym.imp.NSI.dll_NsiFreeTable]
push dword [esp + 0x28]
push dword [esp + 0x18]
push 0
push 0
call dword [sym.imp.NSI.dll_NsiFreeTable]
xor eax, eax
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012ae0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax]
jmp 0x1000a49d
mov eax, dword [esp + 0x10]
mov eax, dword [ecx + eax + 0xd0]
jmp 0x1000a526
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
lea edx, [edx + eax]
call fcn.10009ec0
jmp 0x1000a56f
mov bl, 1
jmp 0x1000a3f2
sub eax, 0xb
je 0x1000a64d
mov edi, 0x57
push dword [esp + 0x1c]
push dword [esp + 0x14]
push dword [esp + 0x28]
push dword [esp + 0x30]
call dword [sym.imp.NSI.dll_NsiFreeTable]
push dword [esp + 0x28]
push dword [esp + 0x18]
push 0
push 0
call dword [sym.imp.NSI.dll_NsiFreeTable]
mov eax, edi
jmp 0x1000a5f8
cmp dword [esp + 0x48], 0xffffffff
je 0x1000a4a7
jmp 0x1000a4a8
mov edi, 8
jmp 0x100145cc
cmp dword [esp + 0x48], 0xffffffff
je 0x1000a530
jmp 0x1000a57f
xor esi, esi
mov cx, word [esi + 0x10002514]
lea eax, [esp + 0x60]
push 0x20
push eax
push 0
push 0
push 0
push 0
push 8
push edi
push 7
call fcn.10006f16
push eax
push dword [esp + 0x7c]
call dword [sym.imp.NSI.dll_NsiGetAllParameters]
test eax, eax
jne 0x1001465d
mov eax, dword [esp + 0x68]
mov dword [edi + 0x46c], eax
add esi, 2
cmp esi, 4
jb 0x10014624
mov esi, dword [esp + 0x2c]
jmp 0x1000a57f