Function at 0x42c860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0141
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
push 6
push ebx
mov dword [ebp - 0x238], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
push 7
push str._TEMP__
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], eax
call fcn.004116f0
call fcn.0040edc0
mov edx, eax
cmp word [edx], bx
jne 0x42c8e3
xor ecx, ecx
jmp 0x42c8ff
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x42c8f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c8f0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.00411400
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x218]
push 0x104
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [ebp - 0x23c], esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [esi], ax
jne 0x42c95a
xor ecx, ecx
jmp 0x42c96f
mov ecx, esi
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c960
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004116f0
mov edi, dword [ebp - 0x238]
sub esp, 0x18
mov edx, esp
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x240], esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [edi], ax
jne 0x42c9a9
xor ecx, ecx
jmp 0x42c9bf
mov ecx, edi
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c9b0
sub ecx, esi
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.004116f0
sub esp, 0x18
mov byte [ebp - 4], 2
mov edx, esp
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [ebp - 0x218], ax
jne 0x42c9f1
xor ecx, ecx
jmp 0x42ca0f
lea ecx, [ebp - 0x218]
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ca00
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, edx
push eax
call fcn.004116f0
lea ecx, [ebp - 0x219]
mov byte [ebp - 4], 0
call fcn.0042ce40
test al, al
je 0x42cabf
call fcn.0040ed40
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor edi, edi
test esi, esi
je 0x42ca9e
call fcn.0040ed90
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push edi
test ebx, ebx
je 0x42ca7e
lea eax, [ebp - 0x218]
push 0x4d8a50
push eax
call fcn.0040c480
push eax
push edi
push edi
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42cab7
push str.failed_to_get_fun2
call fcn.00404240
push eax
call fcn.0043ff60
mov ecx, eax
call fcn.004401d0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42cab7
push 0
push str.failed_to_get_lib2
call fcn.00404240
push eax
call fcn.0043ff60
mov ecx, eax
call fcn.004401d0
xor ebx, ebx
cmp edi, 0x20
setg bl
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x220], 8
jb 0x42cadc
push dword [ebp - 0x234]
call fcn.0047a557
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret 8