Function at 0x42d930
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 0x42d950
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.00490d90
mov esi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x24], 0
jmp 0x42d980
cmp dword [esp + 0x24], 0
je 0x42dcdd
mov esi, dword [esp + 0x1c]
mov al, byte [edi + 0x17]
mov ebx, esi
mov dword [esp + 0x18], ebx
test al, al
jne 0x42d9ad
mov ecx, dword [edi + 0xc]
push 1
push 0
push esi
push 0
call fcn.00471c00
jmp 0x42da20
mov byte [esp + 0x17], 1
mov cl, 1
cmp esi, 0xffffffff
jne 0x42d9c3
xor cl, cl
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x42d9c8
mov byte [esp + 0x17], 0
lea edi, [ebx + 1]
lea esi, [edi + edi]
cmp al, 2
jne 0x42d9f9
cmp byte [esp + 0x17], 0
je 0x42d9e7
push 0x4a59a4
mov eax, ebx
call fcn.00403ba0
jmp 0x42da1d
mov esi, 0x4c4b00
call fcn.00403c20
neg eax
sbb eax, eax
neg eax
jmp 0x42da1d
mov edx, dword [ebp + 8]
cmp esi, dword [0x4be3cc]
jbe 0x42da3b
cmp esi, dword [edx + 0x10]
jbe 0x42da3b
push 0x4a59a4
push str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
mov ecx, 0x4c4000
call fcn.0042f010
mov edi, dword [ebp + 8]
cmp eax, 1
jne 0x42e06d
cmp byte [edi + 0x17], 0
jne 0x42dc95
mov esi, dword [edi + 0xc]
jmp 0x42dc97
cmp edi, 2
jae 0x42da5a
xor eax, eax
test cl, cl
mov ecx, dword [ebp + 8]
setne al
add eax, 3
push eax
xor al, al
call fcn.00472130
mov edi, dword [ebp + 8]
jmp 0x42da29
mov al, byte [edx + 0x15]
test al, 2
je 0x42da76
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 0x42daaa
mov dl, byte [edx + 0x14]
cmp dl, 1
jbe 0x42daeb
cmp dl, 2
je 0x42db36
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 0x42dc82
cmp eax, 0x4a59a4
je 0x42dad4
lea ecx, [ebx + ebx]
push ecx
push 0x4a59a4
push eax
call fcn.00488c10
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 0x42da29
cmp esi, 0x80
ja 0x42db36
cmp esi, 8
ja 0x42db02
mov dword [esp + 0x10], 8
jmp 0x42db15
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.0046c660
mov dword [esp + 0x34], eax
test eax, eax
je 0x42e06d
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 1
jmp 0x42da95
cmp esi, 0x20
jae 0x42db48
mov dword [esp + 0x10], 0x20
jmp 0x42dc07
cmp esi, 0x208
jae 0x42db5d
mov dword [esp + 0x10], 0x208
jmp 0x42dc07
cmp esi, 0x50000
jae 0x42dba5
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
test esi, esi
jns 0x42db77
fadd qword [0x4b8930]
fmul qword [0x4b8970]
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 0x42dc07
cmp esi, 0x320000
jae 0x42dbb5
add esi, 0x8000
jmp 0x42dc03
cmp esi, 0xc80000
jae 0x42dbfd
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
test esi, esi
jns 0x42dbcf
fadd qword [0x4b8930]
fmul qword [0x4b8968]
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 0x42dc07
add esi, 0x20000
mov dword [esp + 0x10], esi
mov eax, dword [0x4be3cc]
cmp dword [esp + 0x10], eax
jbe 0x42dc16
mov dword [esp + 0x10], eax
cmp dl, 2
jne 0x42dc5b
test ecx, ecx
je 0x42dc5b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov bl, 1
call fcn.004897ff
add esp, 4
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
jl 0x42dc5f
push eax
call fcn.00488234
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, esi
je 0x42dc5f
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x18]
mov byte [eax + 0x14], 2
jmp 0x42da92
xor bl, bl
jmp 0x42dc30
test bl, bl
je 0x42dc73
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 8], 0x4c3fa8
mov dword [eax + 0xc], esi
push 0x4a59a4
push str.Out_of_memory.
jmp 0x42da13
mov edi, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + ebx]
mov dword [edx + 0xc], eax
jmp 0x42da29
mov esi, edi
test byte [esi + 0x15], 8
je 0x42dca4
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42dcc1
test byte [esi + 0x15], 4
je 0x42dcb8
mov eax, esi
call fcn.0042f5b0
mov esi, dword [esi + 8]
mov dword [esp + 0x18], esi
jmp 0x42dce5
cmp al, 2
jne 0x42dcd2
call fcn.00401000
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x42dce5
mov esi, 0x4c3fa8
mov dword [esp + 0x18], esi
jmp 0x42dce5
mov dword [esp + 0x1c], 0
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx]
mov edx, dword [esp + 0x24]
test ax, ax
je 0x42dd35
jmp 0x42dd00
mov bx, word [0x4be3f0]
cmp ax, word [0x4be3f4]
je 0x42dd59
cmp ax, bx
je 0x42dd59
test edx, edx
je 0x42dd25
mov word [esi], ax
add esi, 2
mov dword [esp + 0x18], esi
jmp 0x42dd29
inc dword [esp + 0x1c]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x42dd00
inc edx
mov dword [esp + 0x24], edx
cmp edx, 2
jl 0x42d980
xor ecx, ecx
mov word [esi], cx
cmp byte [edi + 0x17], cl
jne 0x42e078
mov esi, dword [edi + 0xc]
jmp 0x42e07a
movzx eax, word [ecx]
test ax, ax
je 0x42dd35
cmp ax, word [0x4be3f4]
jne 0x42de75
test edx, edx
je 0x42de5f
movzx eax, word [ecx + 2]
lea edx, [eax - 0x61]
cmp edx, 0x15
ja case.0x42dd8d.99
movzx edx, byte [edx + 0x42e1a0]
jmp dword [edx*4 + 0x42e180]
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 0x42dce8
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 0x42dce8
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 0x42dce8
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 0x42dce8
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 0x42dce8
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 0x42dce8
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 0x42dce8
inc dword [esp + 0x1c]
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x18]
add ecx, 2
add ecx, 2
jmp 0x42dce8
lea edx, [ecx + 2]
mov edi, edx
movzx eax, word [edi]
test ax, ax
je 0x42e05e
cmp ax, bx
je 0x42dea6
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42de86
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x18]
add ecx, 2
jmp 0x42dce8
cmp word [edi], 0
je 0x42e05e
mov esi, edi
sub esi, ecx
sar esi, 1
dec esi
je 0x42e05c
cmp esi, 0xfd
ja 0x42e05c
push esi
push edx
lea ecx, [esp + 0x48]
push ecx
call fcn.0048ac34
xor edx, edx
add esp, 0xc
mov word [esp + esi*2 + 0x40], dx
cmp word [esp + 0x40], dx
je 0x42e06d
lea eax, [esp + 0x23]
push eax
push 3
lea ecx, [esp + 0x40]
push ecx
push esi
lea edx, [esp + 0x50]
push edx
mov ecx, 0x4c4000
call fcn.00420280
test eax, eax
jne 0x42df28
cmp byte [esp + 0x23], al
mov ecx, dword [esp + 0x38]
setne al
lea edx, [esp + 0x40]
inc eax
push eax
push ecx
push 0x4c4000
mov ecx, esi
call fcn.00420520
mov esi, eax
test esi, esi
je 0x42e06d
cmp byte [esi + 0x17], 0
jne 0x42df3b
mov esi, dword [esi + 0xc]
cmp esi, dword [ebp + 8]
je 0x42e05c
cmp dword [esp + 0x24], 0
je 0x42df6d
mov ebx, dword [esp + 0x18]
push ebx
mov ecx, esi
call fcn.00471f40
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 0x42dce8
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42df7a
jmp dword [eax*4 + 0x42e1b8]
mov eax, esi
call fcn.00401160
cmp dword [0x4c200c], 0
jne 0x42dfe9
cmp dword [esi + 0xc], 0
jne 0x42dfe9
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 0x42dfcc
mov esi, dword [esp + 0x18]
dec eax
add dword [esp + 0x1c], eax
mov ecx, edi
mov edi, dword [ebp + 8]
mov dword [0x4c56d0], 0
add ecx, 2
jmp 0x42dce8
mov dword [0x4c56d0], 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 0x42dce8
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 0x42dce8
mov ecx, dword [esi + 0xc]
push 0
call fcn.00471f40
add dword [esp + 0x1c], eax
mov esi, dword [esp + 0x18]
mov ecx, edi
mov edi, dword [ebp + 8]
add ecx, 2
jmp 0x42dce8
xor ecx, ecx
mov ebx, 0x4c4b00
call fcn.00403a10
cmp eax, 0xffffffff
jne 0x42e058
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 0x42dce8
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 0x42dce8
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 0x42e087
mov eax, esi
call fcn.00401160
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42e0a0
test byte [esi + 0x15], 4
je 0x42e09b
mov eax, esi
call fcn.0042f5b0
mov eax, dword [esi + 8]
jmp 0x42e0fc
cmp al, 2
jne 0x42e0f7
mov eax, dword [0x4c4b0c]
test eax, eax
jne 0x42e0f2
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x42e0d7
push 0xf
call esi
test eax, eax
je 0x42e0cd
mov edi, dword [ebp + 8]
mov eax, 0x49b804
jmp 0x42e0fc
mov edi, dword [ebp + 8]
mov eax, 0x4a59a4
jmp 0x42e0fc
xor ecx, ecx
mov ebx, 0x4c4b00
call fcn.00403a10
cmp eax, 0xffffffff
mov eax, 0x4a59a4
je 0x42e0f2
mov eax, dword [0x4c4b08]
mov edi, dword [ebp + 8]
jmp 0x42e0fc
mov eax, 0x4c3fa8
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e100
sub eax, edx
sar eax, 1
mov ebx, eax
cmp byte [edi + 0x17], cl
jne 0x42e11b
mov esi, dword [edi + 0xc]
jmp 0x42e11d
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x42e135
test byte [esi + 0x15], 8
je 0x42e130
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x42e13a
mov eax, 0x4c4e80
lea edx, [ebx + ebx]
mov dword [eax], edx
cmp byte [edi + 0x17], 0
jne 0x42e14a
mov eax, dword [edi + 0xc]
jmp 0x42e14c
mov eax, edi
cmp byte [eax + 0x17], 2
jne 0x42e16e
cmp dword [0x4c4b0c], 0
je 0x42e16e
mov ecx, 0x4c4b00
call fcn.00403ca0
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