Function at 0x100a00d0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x32c
mov ecx, dword [esp + 0x330]
lea eax, [esp]
push eax
push 1
push ecx
mov dword [esp + 0x2c], 0
call fcn.1009ff40
add esp, 0xc
test eax, eax
je 0x100a0102
xor eax, eax
add esp, 0x32c
ret
mov eax, dword [0x100f0e10]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x100a05c0
mov eax, dword [0x100f0e0c]
test eax, eax
je 0x100a05c0
mov ecx, dword [0x100f0e08]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ecx, ecx
push str.LsaQueryInformationPolicy
push eax
je 0x100a01fb
call esi
mov edx, dword [0x100f0e0c]
push str.LsaFreeMemory
push edx
mov edi, eax
call esi
mov ebx, eax
mov eax, dword [0x100f0e0c]
push str.LsaQueryInformationPolicy
push eax
mov dword [esp + 0x28], ebx
call esi
mov ecx, dword [0x100f0e10]
push str.NetGetDCName
push ecx
mov ebp, eax
call esi
mov edx, dword [0x100f0e0c]
push str.LsaClose
push edx
mov dword [esp + 0x1c], eax
call esi
mov dword [esp + 0x1c], eax
mov eax, dword [0x100f0e10]
push str.NetApiBufferFree
push eax
call esi
mov ecx, dword [0x100f0e10]
push str.DsGetDcNameA
push ecx
mov dword [esp + 0x2c], eax
call esi
test edi, edi
mov dword [esp + 0x2c], eax
je 0x100a05c0
test ebx, ebx
je 0x100a05c0
test ebp, ebp
je 0x100a05c0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100a05c0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100a05c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100a05c0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push 5
push eax
call edi
mov ebx, dword [esp + 0x2c]
jmp 0x100a02a2
call esi
mov ecx, dword [0x100f0e0c]
push str.LsaFreeMemory
push ecx
mov edi, eax
call esi
mov edx, dword [0x100f0e0c]
mov ebp, eax
push str.LsaQueryInformationPolicy
push edx
mov dword [esp + 0x1c], ebp
call esi
mov ebx, eax
mov eax, dword [0x100f0e10]
push str.NetGetDCNameA
push eax
call esi
mov ecx, dword [0x100f0e0c]
push str.LsaClose
push ecx
mov dword [esp + 0x2c], eax
call esi
mov edx, dword [0x100f0e10]
push str.NetApiBufferFree
push edx
mov dword [esp + 0x24], eax
call esi
test edi, edi
mov dword [esp + 0x2c], eax
je 0x100a05c0
test ebp, ebp
je 0x100a05c0
test ebx, ebx
je 0x100a05c0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x100a05c0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100a05c0
test eax, eax
je 0x100a05c0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push 5
push ecx
call edi
mov ebp, dword [esp + 0x2c]
test eax, eax
jne 0x100a05c0
mov eax, dword [0x100f0e08]
test eax, eax
je 0x100a02bf
mov edx, dword [esp + 0x28]
push edx
call fcn.100a0600
jmp 0x100a02c9
mov eax, dword [esp + 0x28]
push eax
call fcn.100a0680
mov eax, dword [0x100f0e08]
add esp, 4
test eax, eax
je 0x100a02e2
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push ecx
call edi
jmp 0x100a02ef
mov edx, dword [esp + 0x28]
push edx
call dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x340]
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.100a0710
add esp, 8
test eax, eax
je 0x100a05c0
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
jne 0x100a05af
mov eax, dword [0x100f0e08]
mov dword [esp + 0x34], esi
cmp eax, esi
mov word [esp + 0x13c], si
mov dword [esp + 0x20], esi
je 0x100a0343
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 3
push eax
call ebp
jmp 0x100a0351
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 3
push edx
call ebx
cmp eax, esi
jne 0x100a05c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
test ecx, ecx
mov ecx, dword [0x100f0e08]
jne 0x100a038f
test ecx, ecx
push eax
je 0x100a037e
call edi
mov dword [esp + 0x30], 1
jmp 0x100a05c0
call dword [esp + 0x18]
mov dword [esp + 0x30], 1
jmp 0x100a05c0
test ecx, ecx
push eax
je 0x100a039b
call fcn.100a0600
jmp 0x100a03a0
call fcn.100a0680
mov eax, dword [0x100f0e08]
add esp, 4
test eax, eax
je 0x100a04ac
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor eax, eax
mov ax, word [ecx]
add eax, 2
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100a03ec
mov eax, dword [esp + 0x18]
xor edx, edx
mov dx, word [eax]
mov eax, dword [eax + 4]
shr edx, 1
inc edx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [esp + 0x18]
push ecx
call edi
test esi, esi
je 0x100a05c0
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x100a0481
push 0
push 0
lea edx, [esp + 0x44]
push 0x100
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
mov byte [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
push 0x4000
push 0
push 0
push ecx
push 0
mov dword [esp + 0x2c], 0
call edi
mov ebp, eax
test ebp, ebp
jne 0x100a046a
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edx, dword [edx]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
lea eax, [esp + 0x140]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100a04a5
push eax
call dword [esp + 0x28]
push esi
push 0
call ebx
jmp 0x100a050b
lea ecx, [esp + 0x34]
push ecx
push esi
push 0
call dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov ebp, eax
lea eax, [esp + 0x13c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push esi
push 0
call ebx
jmp 0x100a050b
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov cx, word [edx]
inc ecx
push ecx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100a04e7
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov cx, word [eax]
mov edx, dword [eax + 4]
inc ecx
push ecx
push edx
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call dword [esp + 0x18]
test esi, esi
je 0x100a05c0
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
call dword [esp + 0x30]
push esi
push 0
mov ebp, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x100a05c0
mov eax, dword [0x100f0e08]
test eax, eax
je 0x100a052e
mov edx, dword [esp + 0x10]
push edx
call dword [esp + 0x20]
jmp 0x100a0537
mov eax, dword [esp + 0x10]
push eax
call dword [esp + 0x20]
mov eax, dword [0x100f0e08]
mov dword [esp + 0x10], 0xffffffff
test eax, eax
je 0x100a0578
push 0
push 0
lea ecx, [esp + 0x44]
push 0x100
push ecx
lea edx, [esp + 0x14c]
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push 1
push ecx
jmp 0x100a0584
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push 1
push eax
call fcn.1009ff40
mov esi, eax
mov eax, dword [0x100f0e08]
add esp, 0xc
test eax, eax
je 0x100a05a2
mov ecx, dword [esp + 0x34]
push ecx
call dword [esp + 0x28]
jmp 0x100a05ab
mov edx, dword [esp + 0x20]
push edx
call dword [esp + 0x30]
test esi, esi
jne 0x100a05c0
mov eax, dword [esp + 0x10]
push eax
call fcn.1009fe90
add esp, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
pop ebx
je 0x100a05eb
mov ecx, dword [0x100f0e08]
push eax
test ecx, ecx
je 0x100a05e7
call dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add esp, 0x32c
ret
call dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add esp, 0x32c
ret