Function at 0x417300
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x422510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ebp, ecx
mov dword [esp + 0x1c], ebx
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push str.Exception
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], ebx
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x42925c
push 1
push ebx
push 0x42927c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x417538
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push 1
push edx
call fcn.00415e30
mov edi, eax
mov eax, dword [ebp]
add esp, 0xc
cmp eax, ebx
je 0x4173dc
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00416640
mov edx, dword [edi]
add esp, 8
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
push edi
call dword [edx + 0x54]
cmp eax, ebx
jl 0x417538
cmp esi, ebx
je 0x4173ca
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4173dc
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
push eax
call fcn.00415e80
mov ecx, dword [edi]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov esi, eax
push esi
push edi
call dword [ecx + 0x54]
cmp eax, ebx
jl 0x417538
cmp esi, ebx
je 0x417409
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41741b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x14]
push edx
call fcn.004161b0
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
mov eax, dword [edi]
push ecx
push esi
push edi
call dword [eax + 0x54]
cmp eax, ebx
jl 0x417538
cmp esi, ebx
je 0x417448
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41745a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x14]
push edx
call fcn.00416c30
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
mov eax, dword [edi]
push ecx
push esi
push edi
call dword [eax + 0x54]
cmp eax, ebx
jl 0x417538
cmp esi, ebx
je 0x417489
mov edx, dword [esi]
push esi
call dword [edx + 8]
xor esi, esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41749b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ebx
push edi
push eax
call dword [edx + 0x54]
cmp eax, ebx
jl 0x417538
lea eax, [esp + 0x20]
push eax
call fcn.00415bc0
add esp, 4
mov ecx, dword [eax]
push ecx
push str.TEMP
mov byte [esp + 0x44], 1
call dword [sym.imp.MSVCR70.dll_getenv]
add esp, 4
push eax
lea edx, [esp + 0x20]
push str._s_s.xml
push edx
call fcn.00401ab0
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], bl
call fcn.00401760
lea ecx, [esp + 0x18]
mov word [esp + 0x24], 8
call fcn.004163d0
mov ebp, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 8], ebp
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x24]
push edx
call dword [ecx + 0x108]
push ebp
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41754a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
cmp edi, ebx
je 0x417554
mov edx, dword [edi]
push edi
call dword [edx + 8]
cmp esi, ebx
je 0x41755e
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x417570
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.004013a0
mov edi, dword [esp + 0x48]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x3c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4175b9
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 4