Function at 0x407df0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43758b
mov eax, dword fs:[0]
push eax
sub esp, 0xe34
mov eax, dword [0x442308]
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 esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xe3c], edi
mov dword [ebp - 0xe40], ebx
cmp esi, ebx
je 0x40805c
cmp word [esi], bx
je 0x40805c
push 0x40e
lea ecx, [ebp - 0x626]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x628], ax
call fcn.00423660
lea eax, [ebp - 0x628]
mov ecx, eax
add esp, 0xc
mov edx, 0x208
sub esi, ecx
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x407e90
movzx ecx, word [esi + eax]
cmp cx, bx
je 0x407e90
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407e70
jmp 0x407e94
cmp edx, ebx
jne 0x407e97
sub eax, 2
xor edx, edx
mov word [eax], dx
mov ebx, 0x43cc20
lea eax, [ebp - 0x628]
call fcn.00407cd0
lea eax, [ebp - 0x628]
push 0x2c
push eax
call fcn.00423ac0
mov edi, eax
add esp, 8
test edi, edi
je 0x408046
lea ecx, [ebp - 0x628]
cmp edi, ecx
je 0x408046
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x82e]
push eax
mov word [ebp - 0x830], dx
call fcn.00423660
lea eax, [ebp - 0x218]
lea esi, [edi + 2]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x407f25
movzx ecx, word [esi + eax]
test cx, cx
je 0x407f25
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407f05
jmp 0x407f29
test edx, edx
jne 0x407f2c
sub eax, 2
xor edx, edx
mov word [eax], dx
mov ebx, 0x43cc28
lea eax, [ebp - 0x218]
call fcn.00407cd0
cmp word [ebp - 0x218], 0
je 0x408046
lea ecx, [ebp - 0x628]
mov edx, ecx
mov eax, edi
sub eax, ecx
push edx
sar eax, 1
lea edx, [ebp - 0x830]
call fcn.004025f0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0xa36]
push ecx
mov word [ebp - 0xa38], ax
call fcn.00423660
add esp, 0xc
push 0x104
lea edx, [ebp - 0xa38]
push edx
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x408046
push 2
push 0
lea ecx, [ebp - 0xa38]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x408046
mov dword [ebp - 0xe40], esi
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0xe36]
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0xe38], dx
call fcn.00423660
push 0xa
lea ecx, [ebp - 0x218]
push 0
push ecx
call fcn.004245e0
add esp, 0x18
push 0x200
lea edx, [ebp - 0xe38]
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
mov edi, dword [ebp - 0xe3c]
mov ecx, edi
test eax, eax
jne 0x408031
push 0x43c8ac
call fcn.00401550
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x408079
lea eax, [ebp - 0xe38]
push eax
call fcn.00401550
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x408079
mov esi, dword [ebp - 0xe3c]
push 0x43c8ac
mov ecx, esi
call fcn.00401550
mov eax, esi
jmp 0x40807b
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
mov word [edi + 4], cx
push 0x43c8ac
mov ecx, edi
call fcn.00401820
mov eax, edi
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.0042364d
mov esp, ebp
pop ebp
ret