Function at 0x413dc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaf4
mov eax, dword [0x42567c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.LOADING_ENVIRONMENT_FILES_....
call fcn.0041a620
add esp, 4
push 0
call fcn.0041a710
add esp, 4
mov dword [ebp - 0x40c], eax
mov eax, dword [str.WNCHOME]
push eax
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
mov dword [ebp - 0xaec], eax
cmp dword [ebp - 0xaec], 0
jne 0x413e39
mov ecx, dword [str.WNCHOME]
push ecx
push str.The_environment_variable__s_is_not_defined_n
lea edx, [ebp - 0xae0]
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0xae0]
push eax
call fcn.0041a660
add esp, 4
mov ecx, dword [ebp - 0xaec]
push ecx
lea edx, [ebp - 0x618]
push edx
call sub.MSVCR80.dll_strcpy
add esp, 8
lea eax, [ebp - 0x618]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
movsx ecx, byte [ebp + eax - 0x619]
push ecx
push 0x4211ac
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
je 0x413e90
lea edx, [ebp - 0x618]
push edx
call sub.MSVCR80.dll_strlen
add esp, 4
mov byte [ebp + eax - 0x619], 0
push 0x5c
push 0x5c
lea eax, [ebp - 0x618]
push eax
push str._s_cconfig_cenviron.cfg
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x14
lea edx, [ebp - 0x208]
push edx
push 0x4211c8
lea eax, [ebp - 0xae0]
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0xae0]
push ecx
call fcn.0041a620
add esp, 4
lea edx, [ebp - 0x208]
push edx
push 0
call fcn.00417680
add esp, 8
mov dword [0x42aa78], eax
cmp dword [0x42aa78], 0
jne 0x413f25
lea eax, [ebp - 0x208]
push eax
push 0x4211e8
lea ecx, [ebp - 0xae0]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0xae0]
push edx
call fcn.0041a660
add esp, 4
push 0
call fcn.00419070
add esp, 4
mov dword [ebp - 0xae4], eax
push 0x4211fc
call fcn.004134c0
push eax
call fcn.00416fa0
add esp, 8
mov word [ebp - 0x418], ax
push str.WINDOWS__1
mov ax, word [ebp - 0x418]
push eax
mov ecx, dword [0x42aa78]
push ecx
call fcn.00418c00
add esp, 0xc
push str.PC__1
mov dx, word [ebp - 0x418]
push edx
mov eax, dword [0x42aa78]
push eax
call fcn.00418c00
add esp, 0xc
mov ecx, dword [ebp - 0xae4]
push ecx
call fcn.00419070
add esp, 4
lea edx, [ebp - 0x410]
push edx
push 0x200
lea eax, [ebp - 0x618]
push eax
push 4
push 0x421214
call fcn.00416010
cmp dword [ebp - 0x410], 0
je 0x413fca
push 0x42121c
call fcn.0041a660
add esp, 4
lea ecx, [ebp - 0x41a]
mov dword [ebp - 0xaf0], ecx
jmp 0x413fe7
mov edx, dword [ebp - 0xaf0]
sub edx, 1
mov dword [ebp - 0xaf0], edx
mov eax, dword [ebp - 0xaf0]
lea ecx, [ebp - 0x618]
cmp eax, ecx
jb 0x414014
mov edx, dword [ebp - 0xaf0]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x414014
mov ecx, dword [ebp - 0xaf0]
movsx edx, byte [ecx]
test edx, edx
jl 0x414014
jmp 0x413fd8
mov eax, dword [ebp - 0xaf0]
add eax, 1
mov dword [ebp - 0xaf0], eax
mov ecx, dword [ebp - 0xaf0]
mov byte [ecx], 0
mov word [ebp - 0x414], 0
lea edx, [ebp - 0x618]
push edx
call sub.MSVCR80.dll_strlen
add esp, 4
lea eax, [ebp + eax - 0x618]
mov dword [ebp - 0xae8], eax
jmp 0x41405c
mov ecx, dword [ebp - 0xae8]
mov byte [ecx], 0
mov edx, dword [ebp - 0xae8]
lea eax, [ebp - 0x618]
cmp edx, eax
jb 0x4141b8
mov word [ebp - 0x414], 0
mov ecx, dword [ebp - 0xae8]
sub ecx, 1
mov dword [ebp - 0xae8], ecx
jmp 0x4140ab
mov dx, word [ebp - 0x414]
add dx, 1
mov word [ebp - 0x414], dx
mov eax, dword [ebp - 0xae8]
sub eax, 1
mov dword [ebp - 0xae8], eax
mov ecx, dword [ebp - 0xae8]
lea edx, [ebp - 0x618]
cmp ecx, edx
jb 0x4140da
mov eax, dword [ebp - 0xae8]
movsx ecx, byte [eax]
push ecx
call fcn.004134b0
push eax
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
jne 0x4140da
jmp 0x41408a
movsx edx, word [ebp - 0x414]
test edx, edx
jne 0x41411b
mov eax, dword [ebp - 0xae8]
lea ecx, [ebp - 0x618]
cmp eax, ecx
jae 0x414116
mov edx, dword [ebp - 0x40c]
push edx
call fcn.0041a710
add esp, 4
push str..LOADING_ENVIRONMENT_FILES_....done.
call fcn.0041a620
add esp, 4
jmp 0x4144e7
jmp 0x414053
movsx eax, word [ebp - 0x414]
mov ecx, dword [ebp - 0xae8]
movsx edx, byte [ecx + eax]
push edx
push 0x421268
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
je 0x414151
mov ax, word [ebp - 0x414]
sub ax, 1
mov word [ebp - 0x414], ax
movsx ecx, word [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0xae8]
add edx, 1
push edx
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
push 0x5c
push 0x42126c
movsx ecx, word [ebp - 0x414]
lea edx, [ebp + ecx - 0x408]
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x408]
push ecx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x4141b1
jmp 0x414053
jmp 0x4141b8
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x818]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x818]
push ecx
push str.loading_configuration_file__s
lea edx, [ebp - 0xae0]
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0xae0]
push eax
call fcn.0041a620
add esp, 4
lea ecx, [ebp - 0x818]
push ecx
mov edx, dword [0x42aa78]
push edx
call fcn.00417680
add esp, 8
mov dword [0x42aa78], eax
cmp dword [0x42aa78], 0
jne 0x414248
lea eax, [ebp - 0x818]
push eax
push str.Error_loading__s_n
lea ecx, [ebp - 0xae0]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0xae0]
push edx
call fcn.0041a660
add esp, 4
lea eax, [ebp - 0x410]
push eax
push 0x200
lea ecx, [ebp - 0x618]
push ecx
push 4
push str._ENV
call fcn.00416010
cmp dword [ebp - 0x410], 0
je 0x41427d
push str.Error_loading_environ.cfg_files_n
call fcn.0041a660
add esp, 4
lea edx, [ebp - 0x41a]
mov dword [ebp - 0xaf4], edx
jmp 0x41429a
mov eax, dword [ebp - 0xaf4]
sub eax, 1
mov dword [ebp - 0xaf4], eax
mov ecx, dword [ebp - 0xaf4]
lea edx, [ebp - 0x618]
cmp ecx, edx
jb 0x4142c7
mov eax, dword [ebp - 0xaf4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x4142c7
mov edx, dword [ebp - 0xaf4]
movsx eax, byte [edx]
test eax, eax
jl 0x4142c7
jmp 0x41428b
mov ecx, dword [ebp - 0xaf4]
add ecx, 1
mov dword [ebp - 0xaf4], ecx
mov edx, dword [ebp - 0xaf4]
mov byte [edx], 0
mov word [ebp - 0x414], 0
lea eax, [ebp - 0x618]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
lea ecx, [ebp + eax - 0x618]
mov dword [ebp - 0xae8], ecx
jmp 0x41430f
mov edx, dword [ebp - 0xae8]
mov byte [edx], 0
mov eax, dword [ebp - 0xae8]
lea ecx, [ebp - 0x618]
cmp eax, ecx
jb 0x4144ab
mov word [ebp - 0x414], 0
mov edx, dword [ebp - 0xae8]
sub edx, 1
mov dword [ebp - 0xae8], edx
jmp 0x41435e
mov ax, word [ebp - 0x414]
add ax, 1
mov word [ebp - 0x414], ax
mov ecx, dword [ebp - 0xae8]
sub ecx, 1
mov dword [ebp - 0xae8], ecx
mov edx, dword [ebp - 0xae8]
lea eax, [ebp - 0x618]
cmp edx, eax
jb 0x41438d
mov ecx, dword [ebp - 0xae8]
movsx edx, byte [ecx]
push edx
call fcn.004134b0
push eax
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
jne 0x41438d
jmp 0x41433d
movsx eax, word [ebp - 0x414]
test eax, eax
jne 0x4143ce
mov ecx, dword [ebp - 0xae8]
lea edx, [ebp - 0x618]
cmp ecx, edx
jae 0x4143c9
mov eax, dword [ebp - 0x40c]
push eax
call fcn.0041a710
add esp, 4
push str...LOADING_ENVIRONMENT_FILES_....done.
call fcn.0041a620
add esp, 4
jmp 0x4144e7
jmp 0x414306
push 0x421304
mov ecx, dword [ebp - 0xae8]
push ecx
call dword [sym.imp.MSVCR80.dll_strspn]
add esp, 8
add eax, dword [ebp - 0xae8]
mov dword [ebp - 0xae8], eax
movsx edx, word [ebp - 0x414]
mov eax, dword [ebp - 0xae8]
movsx ecx, byte [eax + edx]
push ecx
push 0x421308
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
je 0x414425
mov dx, word [ebp - 0x414]
sub dx, 1
mov word [ebp - 0x414], dx
movsx eax, word [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0xae8]
add ecx, 1
push ecx
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
push 0x5c
push str._cenviron.cfg
movsx eax, word [ebp - 0x414]
lea ecx, [ebp + eax - 0x408]
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x408]
push eax
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x414485
jmp 0x414306
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x408]
push edx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x4144a4
jmp 0x414306
jmp 0x4144ab
mov eax, dword [ebp - 0x40c]
push eax
call fcn.0041a710
add esp, 4
push str.environ.cfg
lea ecx, [ebp - 0x618]
push ecx
mov edx, dword [0x42aa78]
push edx
call fcn.004136a0
add esp, 0xc
mov dword [0x42aa78], eax
push str.LOADING_ENVIRONMENT_FILES_....done.
call fcn.0041a620
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b6f2
mov esp, ebp
pop ebp
ret