Function at 0x42dd20
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 0x42dd40
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.004917d0
mov esi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x24], 0
jmp 0x42dd70
cmp dword [esp + 0x24], 0
je 0x42e0cd
mov esi, dword [esp + 0x1c]
mov al, byte [edi + 0x17]
mov ebx, esi
mov dword [esp + 0x18], ebx
test al, al
jne 0x42dd9d
mov ecx, dword [edi + 0xc]
push 1
push 0
push esi
push 0
call fcn.00472870
jmp 0x42de10
mov byte [esp + 0x17], 1
mov cl, 1
cmp esi, 0xffffffff
jne 0x42ddb3
xor cl, cl
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x42ddb8
mov byte [esp + 0x17], 0
lea edi, [ebx + 1]
lea esi, [edi + edi]
cmp al, 2
jne 0x42dde9
cmp byte [esp + 0x17], 0
je 0x42ddd7
push 0x49c820
mov eax, ebx
call fcn.00403c70
jmp 0x42de0d
mov esi, 0x4c3fa4
call fcn.00403cf0
neg eax
sbb eax, eax
neg eax
jmp 0x42de0d
mov edx, dword [ebp + 8]
cmp esi, dword [0x4be3dc]
jbe 0x42de2b
cmp esi, dword [edx + 0x10]
jbe 0x42de2b
push 0x49c820
push str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
mov ecx, 0x4c3fc0
call fcn.0042f410
mov edi, dword [ebp + 8]
cmp eax, 1
jne 0x42e45d
cmp byte [edi + 0x17], 0
jne 0x42e085
mov esi, dword [edi + 0xc]
jmp 0x42e087
cmp edi, 2
jae 0x42de4a
xor eax, eax
test cl, cl
mov ecx, dword [ebp + 8]
setne al
add eax, 3
push eax
xor al, al
call fcn.00472da0
mov edi, dword [ebp + 8]
jmp 0x42de19
mov al, byte [edx + 0x15]
test al, 2
je 0x42de66
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 0x42de9a
mov dl, byte [edx + 0x14]
cmp dl, 1
jbe 0x42dedb
cmp dl, 2
je 0x42df26
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 0x42e072
cmp eax, 0x49c820
je 0x42dec4
lea ecx, [ebx + ebx]
push ecx
push 0x49c820
push eax
call fcn.00489530
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 0x42de19
cmp esi, 0x80
ja 0x42df26
cmp esi, 8
ja 0x42def2
mov dword [esp + 0x10], 8
jmp 0x42df05
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.0046d1e0
mov dword [esp + 0x34], eax
test eax, eax
je 0x42e45d
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 1
jmp 0x42de85
cmp esi, 0x20
jae 0x42df38
mov dword [esp + 0x10], 0x20
jmp 0x42dff7
cmp esi, 0x208
jae 0x42df4d
mov dword [esp + 0x10], 0x208
jmp 0x42dff7
cmp esi, 0x50000
jae 0x42df95
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
test esi, esi
jns 0x42df67
fadd qword [0x4b8c50]
fmul qword [0x4b8c90]
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 0x42dff7
cmp esi, 0x320000
jae 0x42dfa5
add esi, 0x8000
jmp 0x42dff3
cmp esi, 0xc80000
jae 0x42dfed
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
test esi, esi
jns 0x42dfbf
fadd qword [0x4b8c50]
fmul qword [0x4b8c88]
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 0x42dff7
add esi, 0x20000
mov dword [esp + 0x10], esi
mov eax, dword [0x4be3dc]
cmp dword [esp + 0x10], eax
jbe 0x42e006
mov dword [esp + 0x10], eax
cmp dl, 2
jne 0x42e04b
test ecx, ecx
je 0x42e04b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov bl, 1
call fcn.0048a11f
add esp, 4
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
jl 0x42e04f
push eax
call fcn.00488b54
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, esi
je 0x42e04f
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x18]
mov byte [eax + 0x14], 2
jmp 0x42de82
xor bl, bl
jmp 0x42e020
test bl, bl
je 0x42e063
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 8], 0x4c3f50
mov dword [eax + 0xc], esi
push 0x49c820
push str.Out_of_memory.
jmp 0x42de03
mov edi, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + ebx]
mov dword [edx + 0xc], eax
jmp 0x42de19
mov esi, edi
test byte [esi + 0x15], 8
je 0x42e094
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42e0b1
test byte [esi + 0x15], 4
je 0x42e0a8
mov eax, esi
call fcn.0042f9b0
mov esi, dword [esi + 8]
mov dword [esp + 0x18], esi
jmp 0x42e0d5
cmp al, 2
jne 0x42e0c2
call fcn.00401000
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x42e0d5
mov esi, 0x4c3f50
mov dword [esp + 0x18], esi
jmp 0x42e0d5
mov dword [esp + 0x1c], 0
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx]
mov edx, dword [esp + 0x24]
test ax, ax
je 0x42e125
jmp 0x42e0f0
mov bx, word [0x4be400]
cmp ax, word [0x4be404]
je 0x42e149
cmp ax, bx
je 0x42e149
test edx, edx
je 0x42e115
mov word [esi], ax
add esi, 2
mov dword [esp + 0x18], esi
jmp 0x42e119
inc dword [esp + 0x1c]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x42e0f0
inc edx
mov dword [esp + 0x24], edx
cmp edx, 2
jl 0x42dd70
xor ecx, ecx
mov word [esi], cx
cmp byte [edi + 0x17], cl
jne 0x42e468
mov esi, dword [edi + 0xc]
jmp 0x42e46a
movzx eax, word [ecx]
test ax, ax
je 0x42e125
cmp ax, word [0x4be404]
jne 0x42e265
test edx, edx
je 0x42e24f
movzx eax, word [ecx + 2]
lea edx, [eax - 0x61]
cmp edx, 0x15
ja case.0x42e17d.99
movzx edx, byte [edx + 0x42e590]
jmp dword [edx*4 + 0x42e570]
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 0x42e0d8
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 0x42e0d8
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 0x42e0d8
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 0x42e0d8
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 0x42e0d8
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 0x42e0d8
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 0x42e0d8
inc dword [esp + 0x1c]
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x18]
add ecx, 2
add ecx, 2
jmp 0x42e0d8
lea edx, [ecx + 2]
mov edi, edx
movzx eax, word [edi]
test ax, ax
je 0x42e44e
cmp ax, bx
je 0x42e296
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42e276
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x18]
add ecx, 2
jmp 0x42e0d8
cmp word [edi], 0
je 0x42e44e
mov esi, edi
sub esi, ecx
sar esi, 1
dec esi
je 0x42e44c
cmp esi, 0xfd
ja 0x42e44c
push esi
push edx
lea ecx, [esp + 0x48]
push ecx
call fcn.0048b674
xor edx, edx
add esp, 0xc
mov word [esp + esi*2 + 0x40], dx
cmp word [esp + 0x40], dx
je 0x42e45d
lea eax, [esp + 0x23]
push eax
push 3
lea ecx, [esp + 0x40]
push ecx
push esi
lea edx, [esp + 0x50]
push edx
mov ecx, 0x4c3fc0
call fcn.00420650
test eax, eax
jne 0x42e318
cmp byte [esp + 0x23], al
mov ecx, dword [esp + 0x38]
setne al
lea edx, [esp + 0x40]
inc eax
push eax
push ecx
push 0x4c3fc0
mov ecx, esi
call fcn.004208f0
mov esi, eax
test esi, esi
je 0x42e45d
cmp byte [esi + 0x17], 0
jne 0x42e32b
mov esi, dword [esi + 0xc]
cmp esi, dword [ebp + 8]
je 0x42e44c
cmp dword [esp + 0x24], 0
je 0x42e35d
mov ebx, dword [esp + 0x18]
push ebx
mov ecx, esi
call fcn.00472bb0
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 0x42e0d8
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42e36a
jmp dword [eax*4 + 0x42e5a8]
mov eax, esi
call fcn.00401160
cmp dword [0x4c1fac], 0
jne 0x42e3d9
cmp dword [esi + 0xc], 0
jne 0x42e3d9
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 0x42e3bc
mov esi, dword [esp + 0x18]
dec eax
add dword [esp + 0x1c], eax
mov ecx, edi
mov edi, dword [ebp + 8]
mov dword [0x4c5678], 0
add ecx, 2
jmp 0x42e0d8
mov dword [0x4c5678], 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 0x42e0d8
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 0x42e0d8
mov ecx, dword [esi + 0xc]
push 0
call fcn.00472bb0
add dword [esp + 0x1c], eax
mov esi, dword [esp + 0x18]
mov ecx, edi
mov edi, dword [ebp + 8]
add ecx, 2
jmp 0x42e0d8
xor ecx, ecx
mov ebx, 0x4c3fa4
call fcn.00403ae0
cmp eax, 0xffffffff
jne 0x42e448
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 0x42e0d8
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 0x42e0d8
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 0x42e477
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42e490
test byte [esi + 0x15], 4
je 0x42e48b
mov eax, esi
call fcn.0042f9b0
mov eax, dword [esi + 8]
jmp 0x42e4ec
cmp al, 2
jne 0x42e4e7
mov eax, dword [0x4c3fb0]
test eax, eax
jne 0x42e4e2
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x42e4c7
push 0xf
call esi
test eax, eax
je 0x42e4bd
mov edi, dword [ebp + 8]
mov eax, 0x49c814
jmp 0x42e4ec
mov edi, dword [ebp + 8]
mov eax, 0x49c820
jmp 0x42e4ec
xor ecx, ecx
mov ebx, 0x4c3fa4
call fcn.00403ae0
cmp eax, 0xffffffff
mov eax, 0x49c820
je 0x42e4e2
mov eax, dword [0x4c3fac]
mov edi, dword [ebp + 8]
jmp 0x42e4ec
mov eax, 0x4c3f50
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e4f0
sub eax, edx
sar eax, 1
mov ebx, eax
cmp byte [edi + 0x17], cl
jne 0x42e50b
mov esi, dword [edi + 0xc]
jmp 0x42e50d
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x42e525
test byte [esi + 0x15], 8
je 0x42e520
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x42e52a
mov eax, 0x4c4e28
lea edx, [ebx + ebx]
mov dword [eax], edx
cmp byte [edi + 0x17], 0
jne 0x42e53a
mov eax, dword [edi + 0xc]
jmp 0x42e53c
mov eax, edi
cmp byte [eax + 0x17], 2
jne 0x42e55e
cmp dword [0x4c3fb0], 0
je 0x42e55e
mov ecx, 0x4c3fa4
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