Function at 0x412650
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x424c64
push eax
mov eax, 0x8038
mov dword fs:[0], esp
call fcn.00423280
push ebx
push esi
push edi
mov ecx, 0x1fff
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
push 0x10000
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push eax
push str.path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
push 0x43b2bc
push 0
jne 0x4126f5
push 0x11f2
push str.Z:develSN_Writer_devExecuteSPexc.cpp
lea ecx, [esp + 0x28]
call sub.MTRACE.dll_public:_void___thiscall_MetaTrace::constructor_char_const___int__unsigned_char__char_const__
mov ecx, dword [0x43b2d8]
push str.SmartPhoneSN::Set_Fastboot_EnvironmentVariable__:_GetEnvironmentVariable___fail....
push ecx
push eax
mov dword [esp + 0x8058], 0
call sub.MTRACE.dll_public:_void___cdecl_MetaTrace::operator___struct_MetaTraceHandle___char_const__
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x804c], 0xffffffff
call sub.MTRACE.dll_public_virtual:_void___thiscall_MetaTrace::destructor_void_
xor eax, eax
jmp 0x412a00
push 0x11f5
push str.Z:develSN_Writer_devExecuteSPexc.cpp
lea ecx, [esp + 0x28]
call sub.MTRACE.dll_public:_void___thiscall_MetaTrace::constructor_char_const___int__unsigned_char__char_const__
mov ecx, dword [0x43b2d8]
lea edx, [esp + 0x44]
push edx
push str.SmartPhoneSN::Set_Fastboot_EnvironmentVariable__:_GetEnvironmentVariable___chBuf_is:__s....
push ecx
push eax
mov dword [esp + 0x805c], 1
call sub.MTRACE.dll_public:_void___cdecl_MetaTrace::operator___struct_MetaTraceHandle___char_const__
or esi, 0xffffffff
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x804c], esi
call sub.MTRACE.dll_public_virtual:_void___thiscall_MetaTrace::destructor_void_
lea edx, [esp + 0x44]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x44]
push 0x104
push eax
push 0
mov dword [esp + 0x8058], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
push 0x43b2bc
push 0
jne 0x4127bc
push 0x11fc
push str.Z:develSN_Writer_devExecuteSPexc.cpp
lea ecx, [esp + 0x28]
call sub.MTRACE.dll_public:_void___thiscall_MetaTrace::constructor_char_const___int__unsigned_char__char_const__
mov ecx, dword [0x43b2d8]
push str.SmartPhoneSN::Set_Fastboot_EnvironmentVariable__:_GetModuleFileName___fail....
push ecx
push eax
mov byte [esp + 0x8058], 3
call sub.MTRACE.dll_public:_void___cdecl_MetaTrace::operator___struct_MetaTraceHandle___char_const__
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x804c], 2
call sub.MTRACE.dll_public_virtual:_void___thiscall_MetaTrace::destructor_void_
jmp 0x412981
push 0x11ff
push str.Z:develSN_Writer_devExecuteSPexc.cpp
lea ecx, [esp + 0x28]
call sub.MTRACE.dll_public:_void___thiscall_MetaTrace::constructor_char_const___int__unsigned_char__char_const__
mov ecx, dword [0x43b2d8]
lea edx, [esp + 0x44]
push edx
push str.SmartPhoneSN::Set_Fastboot_EnvironmentVariable__:_GetModuleFileName___chBuf_is:__s...
push ecx
push eax
mov byte [esp + 0x805c], 4
call sub.MTRACE.dll_public:_void___cdecl_MetaTrace::operator___struct_MetaTraceHandle___char_const__
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x804c], 2
call sub.MTRACE.dll_public_virtual:_void___thiscall_MetaTrace::destructor_void_
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString
mov bl, 5
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x8050], bl
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jle 0x41285c
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push 0
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8050], 6
call fcn.00422d84
lea ecx, [esp + 0x14]
mov byte [esp + 0x804c], bl
call fcn.00422d60
push 0x4382fc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push 0x4382fc
push edx
call sub.MFC42.DLL_operator_1
push str.Android_
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x8054], 7
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x8050], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x804c], 7
call fcn.00422d60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x804c], bl
call fcn.00422d60
push 0x43b2bc
push 0
push 0x120b
push str.Z:develSN_Writer_devExecuteSPexc.cpp
lea ecx, [esp + 0x28]
call sub.MTRACE.dll_public:_void___thiscall_MetaTrace::constructor_char_const___int__unsigned_char__char_const__
mov ecx, dword [esp + 0xc]
mov edx, dword [0x43b2d8]
push ecx
push str.SmartPhoneSN::Set_Fastboot_EnvironmentVariable__:_SetEnvironmentVariable___strEnvPaths_is:__s....
push edx
push eax
mov byte [esp + 0x805c], 9
call sub.MTRACE.dll_public:_void___cdecl_MetaTrace::operator___struct_MetaTraceHandle___char_const__
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x804c], bl
call sub.MTRACE.dll_public_virtual:_void___thiscall_MetaTrace::destructor_void_
mov eax, dword [esp + 0xc]
push eax
push str.path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
push 0x43b2bc
push 0
jne 0x412995
push 0x1210
push str.Z:develSN_Writer_devExecuteSPexc.cpp
lea ecx, [esp + 0x28]
call sub.MTRACE.dll_public:_void___thiscall_MetaTrace::constructor_char_const___int__unsigned_char__char_const__
mov ecx, dword [0x43b2d8]
push str.SmartPhoneSN::Set_Fastboot_EnvironmentVariable__:_SetEnvironmentVariable___fail....
push ecx
push eax
mov byte [esp + 0x8058], 0xa
call sub.MTRACE.dll_public:_void___cdecl_MetaTrace::operator___struct_MetaTraceHandle___char_const__
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x804c], bl
call sub.MTRACE.dll_public_virtual:_void___thiscall_MetaTrace::destructor_void_
lea ecx, [esp + 0x10]
mov byte [esp + 0x804c], 2
call fcn.00422d60
lea ecx, [esp + 0xc]
mov dword [esp + 0x804c], esi
call fcn.00422d60
xor eax, eax
jmp 0x412a00
push 0x1213
push str.Z:develSN_Writer_devExecuteSPexc.cpp
lea ecx, [esp + 0x40]
call sub.MTRACE.dll_public:_void___thiscall_MetaTrace::constructor_char_const___int__unsigned_char__char_const__
mov edx, dword [esp + 0xc]
mov ecx, dword [0x43b2d8]
push edx
push str.SmartPhoneSN::Set_Fastboot_EnvironmentVariable__:_SetEnvironmentVariable___strEnvPaths_is:__s....
push ecx
push eax
mov byte [esp + 0x805c], 0xb
call sub.MTRACE.dll_public:_void___cdecl_MetaTrace::operator___struct_MetaTraceHandle___char_const__
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x804c], bl
call sub.MTRACE.dll_public_virtual:_void___thiscall_MetaTrace::destructor_void_
lea ecx, [esp + 0x10]
mov byte [esp + 0x804c], 2
call fcn.00422d60
lea ecx, [esp + 0xc]
mov dword [esp + 0x804c], esi
call fcn.00422d60
mov eax, 1
mov ecx, dword [esp + 0x8044]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8044
ret