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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47f6be
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1008c
call fcn.00457320
mov eax, dword [0x49ffb8]
xor eax, esp
mov dword [esp + 0x10088], eax
push ebx
push esi
push edi
mov eax, dword [0x49ffb8]
xor eax, esp
push eax
lea eax, [esp + 0x100a0]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x4a1c50], 0
mov esi, dword [ebp + 8]
je 0x423ea2
cmp esi, 0x4a1c40
je 0x423e9b
push 0xffffffffffffffff
push 0
push 0x4a1c40
mov ecx, esi
call fcn.00405240
mov al, 1
jmp 0x42428b
push 0x12
push str.detourfileops.dll
lea ecx, [esp + 0x84]
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], 0
mov byte [esp + 0x84], 0
call fcn.00406350
lea eax, [esp + 0x7c]
mov dword [esp + 0x100a8], 0
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov edx, eax
lea ecx, [esp + 0x20]
call fcn.0040a990
mov ebx, eax
add esp, 4
cmp ebx, 0x4a1c40
je 0x423f3f
cmp dword [0x4a1c54], 0x10
jb 0x423f19
push dword [0x4a1c40]
call fcn.0043d98b
add esp, 4
push ebx
mov ecx, 0x4a1c40
mov dword [0x4a1c54], 0xf
mov dword [0x4a1c50], 0
mov byte [0x4a1c40], 0
call fcn.004051e0
cmp dword [esp + 0x30], 0x10
jb 0x423f52
push dword [esp + 0x1c]
call fcn.0043d98b
add esp, 4
cmp dword [0x4a1a34], 2
jl 0x423fb5
lea ecx, [esp + 0x14]
call fcn.0041de50
mov byte [esp + 0x100a8], 1
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 2
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x423f85
add eax, 0x10
jmp 0x423f87
xor eax, eax
push 0x4a1c40
push ecx
push str.Utils::GetDetourFileopsDLLPath_will_be_detouring_using_dll_at
push eax
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x100a8], 0
call fcn.0041dee0
cmp esi, 0x4a1c40
je 0x423fcd
push 0xffffffffffffffff
push 0
push 0x4a1c40
mov ecx, esi
call fcn.00405240
push 0x8000
lea eax, [esp + 0x98]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x424068
cmp dword [0x4a1a34], eax
jl 0x424061
lea ecx, [esp + 0x14]
call fcn.0041de50
mov byte [esp + 0x100a8], 2
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x42401b
add esi, 0x10
jmp 0x42401d
xor esi, esi
lea ecx, [esp + 0x1c]
call fcn.00425470
push eax
push ecx
push str.Utils::GetDetourFileopsDLLPath_unable_to_retrieve_path_variable:
push esi
mov byte [esp + 0x100b8], 3
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00404080
lea ecx, [esp + 0x14]
mov byte [esp + 0x100a8], 0
call fcn.0041dee0
xor bl, bl
jmp 0x424273
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x20]
call fcn.004134f0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x100a8], 4
call fcn.0041c490
cmp dword [esp + 0x30], 8
jb 0x4240a1
push dword [esp + 0x1c]
call fcn.0043d98b
add esp, 4
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
lea edx, [esp + 0x64]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x100a8], 7
call fcn.0041c370
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
lea edx, [esp + 0x34]
mov ecx, esi
mov byte [esp + 0x100a8], 8
call fcn.0041c370
push dword [esp + 0x44]
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push 0
push eax
lea ecx, [esp + 0x70]
call fcn.00409f10
cmp eax, 0xffffffff
jne 0x4241f9
push 1
push 0x490f0c
lea ecx, [esp + 0x54]
call fcn.0040b0e0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
call fcn.00406250
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x1c]
call fcn.0041c500
cmp dword [eax + 0x14], 8
jb 0x424154
mov eax, dword [eax]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
sete bl
cmp dword [esp + 0x30], 8
jb 0x424178
push dword [esp + 0x1c]
call fcn.0043d98b
add esp, 4
test bl, bl
je 0x4241f9
cmp dword [0x4a1a34], 0
jl 0x4241f5
lea ecx, [esp + 0x14]
call fcn.0041de50
mov byte [esp + 0x100a8], 9
mov ecx, dword [eax + 4]
mov dword [ecx + 8], 0
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4241af
add esi, 0x10
jmp 0x4241b1
xor esi, esi
lea ecx, [esp + 0x1c]
call fcn.00425470
push eax
push ecx
push str.Utils::GetDetourFileopsDLLPath_unable_to_set_path_variable
push esi
mov byte [esp + 0x100b8], 0xa
call fcn.00407740
add esp, 0xc
push eax
call fcn.004079f0
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00404080
lea ecx, [esp + 0x14]
mov byte [esp + 0x100a8], 8
call fcn.0041dee0
xor bl, bl
jmp 0x4241fb
mov bl, 1
cmp dword [esp + 0x48], 0x10
jb 0x42420e
push dword [esp + 0x34]
call fcn.0043d98b
add esp, 4
cmp dword [esp + 0x78], 0x10
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
jb 0x424236
push dword [esp + 0x64]
call fcn.0043d98b
add esp, 4
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
jb 0x42425e
push dword [esp + 0x4c]
call fcn.0043d98b
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
cmp dword [esp + 0x90], 0x10
jb 0x424289
push dword [esp + 0x7c]
call fcn.0043d98b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x100a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10088]
xor ecx, esp
call fcn.0043cee8
mov esp, ebp
pop ebp
ret 8