Function at 0x10009820
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1e0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1f0]
test esi, esi
jne 0x10009844
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x1e0
ret 4
mov eax, dword [esi + 0x54]
test eax, eax
jbe 0x1000987a
mov ecx, dword [0x10071a48]
push ecx
push eax
call fcn.10012130
add esp, 8
test eax, eax
je 0x1000986f
pop esi
pop ebp
mov ax, 0x4b
pop ebx
add esp, 0x1e0
ret 4
push 0x404
push esi
call fcn.100097f0
call fcn.1000a490
mov ebx, eax
push 0xcfc
mov edx, ebx
and edx, 0xffff
mov dword [esi + 0x54], edx
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100098b0
pop esi
pop ebp
mov ax, 0x40
pop ebx
add esp, 0x1e0
ret 4
push edi
mov ecx, 0x33f
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
mov word [ebp + 0x70], 0xffff
mov word [ebp], bx
call sub.MSVCR100.dll__getpid
mov esi, 1
mov dword [ebp + 0x84], eax
mov dword [ebp + 0x78], 0x78
mov word [ebp + 0x8c], si
call fcn.10006b60
push str.NSP_HOST
mov word [ebp + 0x1bc], 0x40
mov word [ebp + 0x8e], si
mov word [ebp + 0x1c4], si
mov word [ebp + 0x1c6], 0
call dword [sym.imp.MSVCR100.dll_getenv]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000994f
mov cl, byte [0x10064414]
mov byte [ebp + 2], cl
jmp 0x10009a22
push str.RNBO_STANDALONE
push esi
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x10009970
mov dl, byte [0x10064414]
mov byte [ebp + 2], dl
jmp 0x10009a22
push 0x40
lea eax, [esp + 0x6c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strncpy]
lea ecx, [esp + 0x74]
mov byte [esp + 0xb3], 0
push ecx
call dword [sym.imp.MSVCR100.dll__mbsupr]
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 2]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x11
ja 0x10009a22
mov ecx, dword [str.SFNT_]
mov dx, word [0x1005f70c]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x68]
push 0x11
lea ecx, [esp + 0x19]
push eax
push ecx
mov word [esp + 0x20], dx
call dword [sym.imp.MSVCR100.dll_strncpy]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0x25], 0
lea edx, [ebp + 0x1a5]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x100648c4]
test eax, eax
jne 0x10009a47
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x10009a47
call fcn.1000a830
mov dword [ebp + 0x1c0], eax
jmp 0x10009a53
mov ecx, dword [0x100648c4]
mov dword [ebp + 0x1c0], ecx
cmp bx, 1
jne 0x10009a66
push 0x10071a48
call fcn.10019760
add esp, 4
push ebp
push 0x10071a48
call fcn.10019770
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xb0]
lea edx, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0xf0]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x130]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], eax
call fcn.1001a030
add esp, 0xc
cmp eax, 1
jne 0x10009dab
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.MSVCR100.dll__stricmp]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.Discard
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
call ebx
add esp, 8
test eax, eax
je 0x10009dab
lea edx, [esp + 0xe8]
push 0x3f
lea eax, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCR100.dll_strncpy]
lea ecx, [esp + 0x34]
push ecx
call fcn.10019000
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x1c0], 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x40
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x1c4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push ecx
push edx
call fcn.10019360
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.MSVCR100.dll__mbsupr]
lea ecx, [esp + 0x88]
push str.RNBO_STANDALONE
push ecx
call ebx
add esp, 0x28
test eax, eax
je 0x10009bbc
lea edx, [esp + 0x68]
push edx
push ebp
call fcn.1000a3c0
add esp, 8
mov eax, dword [esp + 0x1a8]
mov dword [ebp + 0x78], eax
mov eax, dword [esp + 0x1a8]
cmp eax, 0xffffffff
je 0x10009be5
cmp eax, 0x278d00
ja 0x10009bde
cmp eax, 0x3c
jae 0x10009be5
mov dword [ebp + 0x78], 0x78
mov eax, dword [esp + 0x1ac]
cmp eax, 0x401
jl 0x10009bfd
cmp eax, 0xffff
jg 0x10009bfd
push eax
jmp 0x10009c02
push 0x1771
call fcn.10018c30
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x28], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push str.NSPRO_TCP_PROTOCOL
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
call ebx
add esp, 8
test eax, eax
je 0x10009d52
lea edx, [esp + 0x28]
push str.SP_TCP_PROTOCOL
push edx
call ebx
add esp, 8
test eax, eax
je 0x10009d52
lea eax, [esp + 0x28]
push 0x1005f6d8
push eax
call ebx
add esp, 8
test eax, eax
je 0x10009d52
lea ecx, [esp + 0x28]
push str.NSPRO_NETBEUI_PROTOCOL
push ecx
call ebx
add esp, 8
test eax, eax
je 0x10009d46
lea edx, [esp + 0x28]
push str.SP_NETBEUI_PROTOCOL
push edx
call ebx
add esp, 8
test eax, eax
je 0x10009d46
lea eax, [esp + 0x28]
push str.NetBEUI
push eax
call ebx
add esp, 8
test eax, eax
je 0x10009d46
lea ecx, [esp + 0x28]
push str.NSPRO_IPX_PROTOCOL
push ecx
call ebx
add esp, 8
test eax, eax
je 0x10009d3a
lea edx, [esp + 0x28]
push str.SP_IPX_PROTOCOL
push edx
call ebx
add esp, 8
test eax, eax
je 0x10009d3a
lea eax, [esp + 0x28]
push 0x1005f67c
push eax
call ebx
add esp, 8
test eax, eax
je 0x10009d3a
lea ecx, [esp + 0x28]
push str.NSPRO_SAP_PROTOCOL
push ecx
call ebx
add esp, 8
test eax, eax
je 0x10009d36
lea edx, [esp + 0x28]
push str.SP_SAP_PROTOCOL
push edx
call ebx
add esp, 8
test eax, eax
je 0x10009d36
lea eax, [esp + 0x28]
push 0x1005f654
push eax
call ebx
add esp, 8
test eax, eax
jne 0x10009d61
push 8
jmp 0x10009d54
mov edx, dword [esp + 0x1f4]
push 2
push edx
jmp 0x10009d5c
mov eax, dword [esp + 0x1f4]
push 4
push eax
jmp 0x10009d5c
push 1
mov ecx, dword [esp + 0x1f8]
push ecx
call fcn.100138c0
lea edi, [esp + 0x168]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], 0
mov eax, ecx
mov esi, edi
mov edi, edx
push str.SP_USBONLY
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x10009dab
or byte [ebp + 0x69b], 0x10
push ebp
push 0
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e0
ret 4