Function at 0x10081180
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0
cmp dword [0x1015f218], 0
jne 0x100811c1
xor eax, eax
jmp 0x10081461
cmp dword [0x1015f21c], 0
je 0x100811d1
xor eax, eax
jmp 0x10081461
call fcn.100810f8
mov dword [0x1015f21c], 1
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx - 4]
mov dword [ebp - 0x114], edx
cmp dword [0x101483d0], 0xffffffff
jne 0x1008120d
call fcn.100c3389
neg eax
sbb eax, eax
inc eax
mov dword [0x101483d0], eax
cmp dword [0x101483d4], 0xffffffff
jne 0x1008126a
call fcn.100ae946
cmp eax, 1
jne 0x10081255
call fcn.100c327d
cmp eax, 0x2345
je 0x10081249
call fcn.100c327d
cmp eax, 0xffffff69
je 0x10081249
push str.DBG_ERR_SHOW_DIALOG
call sub.MSVCR70D.dll_getenv
add esp, 4
test eax, eax
jne 0x10081255
mov dword [ebp - 0x324], 0
jmp 0x1008125f
mov dword [ebp - 0x324], 1
mov eax, dword [ebp - 0x324]
mov dword [0x101483d4], eax
call fcn.100c3389
test eax, eax
jne 0x1008138c
cmp dword [ebp + 8], 0
je 0x1008138c
mov ecx, dword [ebp + 8]
push ecx
push str._s__:
lea edx, [ebp - 0x104]
push edx
call sub.MSVCR70D.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call sub.MSVCR70D.dll_strlen
add esp, 4
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x114], 0
je 0x1008137b
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x114]
push edx
push 0
call fcn.1009d45b
add esp, 0xc
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x10148530
call fcn.100bb012
add esp, 0xc
mov edx, dword [ebp - 0x110]
push edx
call sub.MSVCR70D.dll_strlen
add esp, 4
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x118]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0x103
jle 0x1008132d
mov dword [ebp - 0x328], 0x103
jmp 0x10081339
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x328]
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 0x108]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x110]
push ecx
lea edx, [ebp - 0x104]
push edx
call sub.MSVCR70D.dll_strncat
add esp, 0xc
mov eax, dword [ebp - 0x10c]
mov byte [ebp + eax - 0x105], 0
jmp 0x1008138c
mov ecx, dword [ebp + 8]
push ecx
push str._s:___n
call fcn.100bb012
add esp, 8
cmp dword [0x101483d0], 0
je 0x10081429
cmp dword [0x101483d4], 0
je 0x100813c3
cmp dword [0x1015f220], 0
je 0x100813c3
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x1015f220]
add esp, 8
test eax, eax
je 0x10081429
cmp dword [ebp + 8], 0
je 0x100813f0
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x320]
push edx
call fcn.10095a66
add esp, 8
push 0x45
lea eax, [ebp - 0x320]
push eax
call fcn.100850b3
add esp, 8
push str.dbg_err_crash______crashing_out_in_ORDER_DEBUG_ONLY.
lea ecx, [ebp - 0x320]
push ecx
call fcn.10095a66
add esp, 8
push 0x45
lea edx, [ebp - 0x320]
push edx
call fcn.100850b3
add esp, 8
push str.dbg_err_crash______crashing_out_in_ORDER_DEBUG_ONLY._n
call fcn.100bb012
add esp, 4
call fcn.10081094
jmp 0x1008144d
push str.ORDER_DEBUG
push str.dbg_err_crash______continuing_from_serious_error___s_._n
call fcn.100bb012
add esp, 8
push str.dbg_err_crash_____continuing_from_serious_error__ORDER_DEBUG_.
push str.dummy_message
call fcn.10085030
add esp, 8
mov dword [0x1015f21c], 0
call fcn.100810fd
mov eax, 1
mov esp, ebp
pop ebp
ret