Function at 0x42e060
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x17], 0
jne 0x42e080
mov eax, dword [edi + 0xc]
mov dword [ebp + 8], eax
mov edi, eax
xor ecx, ecx
push 0x1fa
push ecx
lea edx, [esp + 0x4a]
push edx
mov word [esp + 0x4c], cx
call fcn.00491b20
mov esi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x24], 0
jmp 0x42e0b0
cmp dword [esp + 0x24], 0
je 0x42e40d
mov esi, dword [esp + 0x1c]
mov al, byte [edi + 0x17]
mov ebx, esi
mov dword [esp + 0x18], ebx
test al, al
jne 0x42e0dd
mov ecx, dword [edi + 0xc]
push 1
push 0
push esi
push 0
call fcn.00472b80
jmp 0x42e150
mov byte [esp + 0x17], 1
mov cl, 1
cmp esi, 0xffffffff
jne 0x42e0f3
xor cl, cl
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x42e0f8
mov byte [esp + 0x17], 0
lea edi, [ebx + 1]
lea esi, [edi + edi]
cmp al, 2
jne 0x42e129
cmp byte [esp + 0x17], 0
je 0x42e117
push 0x4a6b2c
mov eax, ebx
call fcn.00403c70
jmp 0x42e14d
mov esi, 0x4c4024
call fcn.00403cf0
neg eax
sbb eax, eax
neg eax
jmp 0x42e14d
mov edx, dword [ebp + 8]
cmp esi, dword [0x4be3dc]
jbe 0x42e16b
cmp esi, dword [edx + 0x10]
jbe 0x42e16b
push 0x4a6b2c
push str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
mov ecx, 0x4c4040
call fcn.0042f750
mov edi, dword [ebp + 8]
cmp eax, 1
jne 0x42e79d
cmp byte [edi + 0x17], 0
jne 0x42e3c5
mov esi, dword [edi + 0xc]
jmp 0x42e3c7
cmp edi, 2
jae 0x42e18a
xor eax, eax
test cl, cl
mov ecx, dword [ebp + 8]
setne al
add eax, 3
push eax
xor al, al
call fcn.004730b0
mov edi, dword [ebp + 8]
jmp 0x42e159
mov al, byte [edx + 0x15]
test al, 2
je 0x42e1a6
mov ecx, dword [ebp + 8]
and al, 0x3d
mov byte [ecx + 0x15], al
mov eax, dword [ecx]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
and byte [edx + 0x15], 0x82
cmp esi, ecx
jbe 0x42e1da
mov dl, byte [edx + 0x14]
cmp dl, 1
jbe 0x42e21b
cmp dl, 2
je 0x42e266
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
and byte [eax + 0x15], 0x7f
mov dword [eax + 0x10], edx
mov edx, dword [ebp + 8]
mov dword [eax + 8], ecx
cmp byte [esp + 0x17], 0
mov eax, dword [edx + 8]
je 0x42e3b2
cmp eax, 0x4a6b2c
je 0x42e204
lea ecx, [ebx + ebx]
push ecx
push 0x4a6b2c
push eax
call fcn.00489880
mov edx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [edx + 8]
mov edi, dword [ebp + 8]
xor ecx, ecx
mov word [eax + ebx*2], cx
lea eax, [ebx + ebx]
mov dword [edx + 0xc], eax
jmp 0x42e159
cmp esi, 0x80
ja 0x42e266
cmp esi, 8
ja 0x42e232
mov dword [esp + 0x10], 8
jmp 0x42e245
mov eax, 0x10
cmp eax, esi
sbb eax, eax
and eax, 0x70
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
call fcn.0046d560
mov dword [esp + 0x34], eax
test eax, eax
je 0x42e79d
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 1
jmp 0x42e1c5
cmp esi, 0x20
jae 0x42e278
mov dword [esp + 0x10], 0x20
jmp 0x42e337
cmp esi, 0x208
jae 0x42e28d
mov dword [esp + 0x10], 0x208
jmp 0x42e337
cmp esi, 0x50000
jae 0x42e2d5
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
test esi, esi
jns 0x42e2a7
fadd qword [0x4b8d18]
fmul qword [0x4b8d58]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
fldcw word [esp + 0x10]
mov dword [esp + 0x10], eax
jmp 0x42e337
cmp esi, 0x320000
jae 0x42e2e5
add esi, 0x8000
jmp 0x42e333
cmp esi, 0xc80000
jae 0x42e32d
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
test esi, esi
jns 0x42e2ff
fadd qword [0x4b8d18]
fmul qword [0x4b8d50]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
fldcw word [esp + 0x10]
mov dword [esp + 0x10], eax
jmp 0x42e337
add esi, 0x20000
mov dword [esp + 0x10], esi
mov eax, dword [0x4be3dc]
cmp dword [esp + 0x10], eax
jbe 0x42e346
mov dword [esp + 0x10], eax
cmp dl, 2
jne 0x42e38b
test ecx, ecx
je 0x42e38b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov bl, 1
call fcn.0048a46f
add esp, 4
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
jl 0x42e38f
push eax
call fcn.00488ea4
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, esi
je 0x42e38f
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x18]
mov byte [eax + 0x14], 2
jmp 0x42e1c2
xor bl, bl
jmp 0x42e360
test bl, bl
je 0x42e3a3
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 8], 0x4c3fd0
mov dword [eax + 0xc], esi
push 0x4a6b2c
push str.Out_of_memory.
jmp 0x42e143
mov edi, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + ebx]
mov dword [edx + 0xc], eax
jmp 0x42e159
mov esi, edi
test byte [esi + 0x15], 8
je 0x42e3d4
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42e3f1
test byte [esi + 0x15], 4
je 0x42e3e8
mov eax, esi
call fcn.0042fcf0
mov esi, dword [esi + 8]
mov dword [esp + 0x18], esi
jmp 0x42e415
cmp al, 2
jne 0x42e402
call fcn.00401000
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x42e415
mov esi, 0x4c3fd0
mov dword [esp + 0x18], esi
jmp 0x42e415
mov dword [esp + 0x1c], 0
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx]
mov edx, dword [esp + 0x24]
test ax, ax
je 0x42e465
jmp 0x42e430
mov bx, word [0x4be400]
cmp ax, word [0x4be404]
je 0x42e489
cmp ax, bx
je 0x42e489
test edx, edx
je 0x42e455
mov word [esi], ax
add esi, 2
mov dword [esp + 0x18], esi
jmp 0x42e459
inc dword [esp + 0x1c]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x42e430
inc edx
mov dword [esp + 0x24], edx
cmp edx, 2
jl 0x42e0b0
xor ecx, ecx
mov word [esi], cx
cmp byte [edi + 0x17], cl
jne 0x42e7a8
mov esi, dword [edi + 0xc]
jmp 0x42e7aa
movzx eax, word [ecx]
test ax, ax
je 0x42e465
cmp ax, word [0x4be404]
jne 0x42e5a5
test edx, edx
je 0x42e58f
movzx eax, word [ecx + 2]
lea edx, [eax - 0x61]
cmp edx, 0x15
ja case.0x42e4bd.99
movzx edx, byte [edx + 0x42e8d0]
jmp dword [edx*4 + 0x42e8b0]
mov edi, dword [ebp + 8]
mov eax, 7
mov word [esi], ax
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
jmp 0x42e418
mov edi, dword [ebp + 8]
mov edx, 8
mov word [esi], dx
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
jmp 0x42e418
mov edi, dword [ebp + 8]
mov eax, 0xc
mov word [esi], ax
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
jmp 0x42e418
mov edi, dword [ebp + 8]
mov edx, 0xa
mov word [esi], dx
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
jmp 0x42e418
mov edi, dword [ebp + 8]
mov eax, 0xd
mov word [esi], ax
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
jmp 0x42e418
mov edi, dword [ebp + 8]
mov edx, 9
mov word [esi], dx
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
jmp 0x42e418
mov eax, 0xb
mov edi, dword [ebp + 8]
mov word [esi], ax
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
jmp 0x42e418
inc dword [esp + 0x1c]
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x18]
add ecx, 2
add ecx, 2
jmp 0x42e418
lea edx, [ecx + 2]
mov edi, edx
movzx eax, word [edi]
test ax, ax
je 0x42e78e
cmp ax, bx
je 0x42e5d6
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42e5b6
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x18]
add ecx, 2
jmp 0x42e418
cmp word [edi], 0
je 0x42e78e
mov esi, edi
sub esi, ecx
sar esi, 1
dec esi
je 0x42e78c
cmp esi, 0xfd
ja 0x42e78c
push esi
push edx
lea ecx, [esp + 0x48]
push ecx
call fcn.0048b9c4
xor edx, edx
add esp, 0xc
mov word [esp + esi*2 + 0x40], dx
cmp word [esp + 0x40], dx
je 0x42e79d
lea eax, [esp + 0x23]
push eax
push 3
lea ecx, [esp + 0x40]
push ecx
push esi
lea edx, [esp + 0x50]
push edx
mov ecx, 0x4c4040
call fcn.00420890
test eax, eax
jne 0x42e658
cmp byte [esp + 0x23], al
mov ecx, dword [esp + 0x38]
setne al
lea edx, [esp + 0x40]
inc eax
push eax
push ecx
push 0x4c4040
mov ecx, esi
call fcn.00420b30
mov esi, eax
test esi, esi
je 0x42e79d
cmp byte [esi + 0x17], 0
jne 0x42e66b
mov esi, dword [esi + 0xc]
cmp esi, dword [ebp + 8]
je 0x42e78c
cmp dword [esp + 0x24], 0
je 0x42e69d
mov ebx, dword [esp + 0x18]
push ebx
mov ecx, esi
call fcn.00472ec0
lea edx, [ebx + eax*2]
mov ecx, edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], edx
add ecx, 2
mov esi, edx
jmp 0x42e418
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42e6aa
jmp dword [eax*4 + 0x42e8e8]
mov eax, esi
call fcn.00401160
cmp dword [0x4c202c], 0
jne 0x42e719
cmp dword [esi + 0xc], 0
jne 0x42e719
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42e6fc
mov esi, dword [esp + 0x18]
dec eax
add dword [esp + 0x1c], eax
mov ecx, edi
mov edi, dword [ebp + 8]
mov dword [0x4c56f8], 0
add ecx, 2
jmp 0x42e418
mov dword [0x4c56f8], esi
mov esi, dword [esp + 0x18]
xor eax, eax
add dword [esp + 0x1c], eax
mov ecx, edi
mov edi, dword [ebp + 8]
add ecx, 2
jmp 0x42e418
mov eax, dword [esi + 0xc]
mov esi, dword [esp + 0x18]
shr eax, 1
add dword [esp + 0x1c], eax
mov ecx, edi
mov edi, dword [ebp + 8]
add ecx, 2
jmp 0x42e418
mov ecx, dword [esi + 0xc]
push 0
call fcn.00472ec0
add dword [esp + 0x1c], eax
mov esi, dword [esp + 0x18]
mov ecx, edi
mov edi, dword [ebp + 8]
add ecx, 2
jmp 0x42e418
xor ecx, ecx
mov ebx, 0x4c4024
call fcn.00403ae0
cmp eax, 0xffffffff
jne 0x42e788
mov esi, dword [esp + 0x18]
xor eax, eax
add dword [esp + 0x1c], eax
mov ecx, edi
mov edi, dword [ebp + 8]
add ecx, 2
jmp 0x42e418
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push edx
push 0
call eax
add esp, 8
add dword [esp + 0x1c], eax
mov ecx, edi
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x18]
add ecx, 2
jmp 0x42e418
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, edi
test byte [esi + 0x15], 8
je 0x42e7b7
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42e7d0
test byte [esi + 0x15], 4
je 0x42e7cb
mov eax, esi
call fcn.0042fcf0
mov eax, dword [esi + 8]
jmp 0x42e82c
cmp al, 2
jne 0x42e827
mov eax, dword [0x4c4030]
test eax, eax
jne 0x42e822
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x42e807
push 0xf
call esi
test eax, eax
je 0x42e7fd
mov edi, dword [ebp + 8]
mov eax, 0x49c814
jmp 0x42e82c
mov edi, dword [ebp + 8]
mov eax, 0x4a6b2c
jmp 0x42e82c
xor ecx, ecx
mov ebx, 0x4c4024
call fcn.00403ae0
cmp eax, 0xffffffff
mov eax, 0x4a6b2c
je 0x42e822
mov eax, dword [0x4c402c]
mov edi, dword [ebp + 8]
jmp 0x42e82c
mov eax, 0x4c3fd0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e830
sub eax, edx
sar eax, 1
mov ebx, eax
cmp byte [edi + 0x17], cl
jne 0x42e84b
mov esi, dword [edi + 0xc]
jmp 0x42e84d
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x42e865
test byte [esi + 0x15], 8
je 0x42e860
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x42e86a
mov eax, 0x4c4ea8
lea edx, [ebx + ebx]
mov dword [eax], edx
cmp byte [edi + 0x17], 0
jne 0x42e87a
mov eax, dword [edi + 0xc]
jmp 0x42e87c
mov eax, edi
cmp byte [eax + 0x17], 2
jne 0x42e89e
cmp dword [0x4c4030], 0
je 0x42e89e
mov ecx, 0x4c4024
call fcn.00403d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
and byte [eax + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8