Function at 0x42bd30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x134
push ebx
push ebp
mov ebp, dword [esp + 0x140]
push esi
push edi
xor edi, edi
cmp byte [ebp + 0x17], 0
jne 0x42bd53
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x148], ebp
push 0xfd
lea eax, [esp + 0x45]
push edi
push eax
mov byte [esp + 0x4c], 0
call fcn.0048a9d0
mov ebx, dword [esp + 0x48]
add esp, 0xc
mov dword [esp + 0x24], edi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x24], edi
je 0x42c07a
mov al, byte [ebp + 0x17]
mov dword [esp + 0x20], edx
test al, al
jne 0x42bda0
mov ecx, dword [ebp + 0xc]
push 1
push edi
push edx
push edi
push ecx
call fcn.004715e0
jmp 0x42be0b
mov bl, 1
mov byte [esp + 0x17], bl
mov cl, bl
cmp edx, 0xffffffff
jne 0x42bdb5
xor cl, cl
mov dword [esp + 0x20], edi
jmp 0x42bdbb
xor bl, bl
mov byte [esp + 0x17], bl
mov edi, dword [esp + 0x20]
inc edi
cmp al, 2
jne 0x42bdea
test bl, bl
je 0x42bdd8
mov eax, dword [esp + 0x20]
push 0x4957f9
call fcn.00403e10
jmp 0x42be0b
mov esi, 0x4a8cc4
call fcn.00403e90
neg eax
sbb eax, eax
neg eax
jmp 0x42be0b
cmp edi, dword [0x4a33ac]
jbe 0x42be26
cmp edi, dword [ebp + 0x10]
jbe 0x42be26
push 0x4957f9
push str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
mov ecx, 0x4a8ce0
call fcn.0042d280
cmp eax, 1
jne 0x42c384
cmp byte [ebp + 0x17], 0
jne 0x42c03e
mov esi, dword [ebp + 0xc]
jmp 0x42c040
cmp edi, 2
jae 0x42be41
xor edx, edx
test cl, cl
setne dl
xor al, al
mov ecx, ebp
add edx, 3
push edx
call fcn.00471ba0
jmp 0x42be14
mov al, byte [ebp + 0x15]
test al, 2
je 0x42be58
and al, 0x3d
mov byte [ebp + 0x15], al
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [ebp + 0x10]
and byte [ebp + 0x15], 0x82
cmp edi, edx
jbe 0x42be82
mov cl, byte [ebp + 0x14]
cmp cl, 1
jbe 0x42bebc
cmp cl, 2
je 0x42befb
mov edx, dword [esp + 0x38]
and byte [ebp + 0x15], 0x7f
mov dword [ebp + 8], edx
mov dword [ebp + 0x10], esi
test bl, bl
je 0x42c02c
mov eax, dword [ebp + 8]
cmp eax, 0x4957f9
je 0x42bea7
mov ecx, dword [esp + 0x20]
push ecx
push 0x4957f9
push eax
call fcn.00482250
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
mov byte [eax + edx], 0
mov edx, eax
mov dword [ebp + 0xc], edx
jmp 0x42be14
cmp edi, 0x40
ja 0x42befb
cmp edi, 4
ja 0x42becd
mov esi, 4
jmp 0x42bedb
mov eax, 8
cmp eax, edi
sbb esi, esi
and esi, 0x38
add esi, eax
mov eax, esi
mov dword [esp + 0x10], esi
call fcn.0046c020
mov dword [esp + 0x38], eax
test eax, eax
je 0x42c384
mov byte [ebp + 0x14], 1
jmp 0x42be74
cmp edi, 0x10
jae 0x42bf0a
mov esi, 0x10
jmp 0x42bfba
cmp edi, 0x104
jae 0x42bf1c
mov esi, 0x104
jmp 0x42bfba
cmp edi, 0x28000
jae 0x42bf60
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
test edi, edi
jns 0x42bf36
fadd qword [0x49d678]
fmul qword [0x49d688]
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 esi, dword [esp + 0x28]
fldcw word [esp + 0x10]
jmp 0x42bfba
cmp edi, 0x190000
jae 0x42bf70
lea esi, [edi + 0x4000]
jmp 0x42bfba
cmp edi, 0x640000
jae 0x42bfb4
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
test edi, edi
jns 0x42bf8a
fadd qword [0x49d678]
fmul qword [0x49d680]
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 esi, dword [esp + 0x28]
fldcw word [esp + 0x10]
jmp 0x42bfba
lea esi, [edi + 0x10000]
mov eax, dword [0x4a33ac]
mov dword [esp + 0x10], esi
cmp esi, eax
jbe 0x42bfcd
mov esi, eax
mov dword [esp + 0x10], esi
cmp cl, 2
jne 0x42c008
test edx, edx
je 0x42c008
mov ecx, dword [ebp + 8]
push ecx
mov bl, 1
call fcn.004816a8
add esp, 4
xor edi, edi
cmp esi, edi
jl 0x42c00c
push esi
call fcn.00481849
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, edi
je 0x42c00c
mov bl, byte [esp + 0x17]
mov byte [ebp + 0x14], 2
jmp 0x42be74
xor bl, bl
jmp 0x42bfe4
test bl, bl
je 0x42c01d
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], 0x4a857d
mov dword [ebp + 0xc], edi
push 0x4957f9
push str.Out_of_memory.
jmp 0x42be01
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov byte [ecx], 0
mov dword [ebp + 0xc], edx
jmp 0x42be14
mov esi, ebp
test byte [esi + 0x15], 8
je 0x42c04d
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42c066
test byte [esi + 0x15], 4
je 0x42c061
mov eax, esi
call fcn.0042d7f0
mov ebx, dword [esi + 8]
jmp 0x42c07e
cmp al, 2
jne 0x42c073
call fcn.00401000
mov ebx, eax
jmp 0x42c07e
mov ebx, 0x4a857d
jmp 0x42c07e
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x14c]
mov al, byte [ecx]
mov esi, dword [esp + 0x24]
test al, al
je 0x42c0b5
nop
cmp al, byte [0x4a33cd]
je 0x42c0ca
cmp al, byte [0x4a33cc]
je 0x42c0ca
test esi, esi
je 0x42c0a9
mov byte [ebx], al
inc ebx
jmp 0x42c0ad
inc dword [esp + 0x18]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x42c090
inc esi
mov dword [esp + 0x24], esi
cmp esi, 2
jge 0x42c393
xor edi, edi
jmp 0x42bd73
mov al, byte [ecx]
test al, al
je 0x42c0b5
cmp al, byte [0x4a33cd]
jne 0x42c1a5
test esi, esi
je 0x42c193
mov al, byte [ecx + 1]
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x15
ja case.0x42c0fd.99
movzx edx, byte [edx + 0x42c4c4]
jmp dword [edx*4 + 0x42c4a4]
mov ebp, dword [esp + 0x148]
mov byte [ebx], 7
inc ecx
inc ebx
inc ecx
jmp 0x42c085
mov ebp, dword [esp + 0x148]
mov byte [ebx], 8
inc ecx
inc ebx
inc ecx
jmp 0x42c085
mov ebp, dword [esp + 0x148]
mov byte [ebx], 0xc
inc ecx
inc ebx
inc ecx
jmp 0x42c085
mov ebp, dword [esp + 0x148]
mov byte [ebx], 0xa
inc ecx
inc ebx
inc ecx
jmp 0x42c085
mov ebp, dword [esp + 0x148]
mov byte [ebx], 0xd
inc ecx
inc ebx
inc ecx
jmp 0x42c085
mov ebp, dword [esp + 0x148]
mov byte [ebx], 9
inc ecx
inc ebx
inc ecx
jmp 0x42c085
mov ebp, dword [esp + 0x148]
mov byte [ebx], 0xb
inc ecx
inc ebx
inc ecx
jmp 0x42c085
mov ebp, dword [esp + 0x148]
mov byte [ebx], al
inc ecx
inc ebx
inc ecx
jmp 0x42c085
inc dword [esp + 0x18]
mov ebp, dword [esp + 0x148]
inc ecx
inc ecx
jmp 0x42c085
lea esi, [ecx + 1]
mov ebp, esi
mov al, byte [ebp]
test al, al
je 0x42c377
cmp al, byte [0x4a33cc]
je 0x42c1d2
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x42c1b5
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42c085
cmp byte [ebp], 0
je 0x42c377
mov edi, ebp
sub edi, ecx
dec edi
je 0x42c375
cmp edi, 0xfd
ja 0x42c375
push edi
lea eax, [esp + 0x44]
push esi
push eax
call fcn.004844d0
add esp, 0xc
mov byte [esp + edi + 0x40], 0
cmp byte [esp + 0x40], 0
je 0x42c384
lea ecx, [esp + 0x1f]
push ecx
push 3
lea edx, [esp + 0x44]
push edx
push edi
lea eax, [esp + 0x50]
push eax
mov ecx, 0x4a8ce0
call fcn.0041f830
test eax, eax
jne 0x42c252
mov edx, dword [esp + 0x3c]
xor ecx, ecx
cmp byte [esp + 0x1f], cl
setne cl
inc ecx
push ecx
push edx
push 0x4a8ce0
mov ecx, edi
lea edx, [esp + 0x4c]
call fcn.0041fac0
mov esi, eax
test esi, esi
je 0x42c384
cmp byte [esi + 0x17], 0
jne 0x42c265
mov esi, dword [esi + 0xc]
cmp esi, dword [esp + 0x148]
je 0x42c375
cmp dword [esp + 0x24], 0
je 0x42c292
push ebx
mov ecx, esi
call fcn.004719c0
mov ecx, ebp
mov ebp, dword [esp + 0x148]
add ebx, eax
inc ecx
jmp 0x42c085
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42c29f
jmp dword [eax*4 + 0x42c4dc]
mov eax, esi
call fcn.00401150
cmp dword [0x4a6dd4], 0
jne 0x42c30a
cmp dword [esi + 0xc], 0
jne 0x42c30a
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x3b]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x42c2ef
dec eax
add dword [esp + 0x18], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
mov dword [0x4a9d60], 0
inc ecx
jmp 0x42c085
mov dword [0x4a9d60], esi
xor eax, eax
add dword [esp + 0x18], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42c085
mov eax, dword [esi + 0xc]
add dword [esp + 0x18], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42c085
mov ecx, dword [esi + 0xc]
push 0
call fcn.004719c0
add dword [esp + 0x18], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42c085
push 0x4a8cc4
xor ecx, ecx
call fcn.00403c70
cmp eax, 0xffffffff
jne 0x42c371
xor eax, eax
add dword [esp + 0x18], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42c085
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push edx
push 0
call eax
add esp, 8
add dword [esp + 0x18], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42c085
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov byte [ebx], 0
cmp byte [ebp + 0x17], 0
jne 0x42c3a1
mov esi, dword [ebp + 0xc]
jmp 0x42c3a3
mov esi, ebp
test byte [esi + 0x15], 8
je 0x42c3b0
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42c3c9
test byte [esi + 0x15], 4
je 0x42c3c4
mov eax, esi
call fcn.0042d7f0
mov eax, dword [esi + 8]
jmp 0x42c41c
cmp al, 2
jne 0x42c417
mov eax, dword [0x4a8cd0]
test eax, eax
jne 0x42c41c
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x42c3fa
push 0xf
call esi
test eax, eax
je 0x42c3f3
mov eax, 0x4957f4
jmp 0x42c41c
mov eax, 0x4957f9
jmp 0x42c41c
push 0x4a8cc4
xor ecx, ecx
call fcn.00403c70
cmp eax, 0xffffffff
mov eax, 0x4957f9
je 0x42c41c
mov eax, dword [0x4a8ccc]
jmp 0x42c41c
mov eax, 0x4a857d
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42c420
sub eax, edx
mov edi, eax
cmp byte [ebp + 0x17], cl
jne 0x42c435
mov esi, dword [ebp + 0xc]
jmp 0x42c437
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x42c44f
test byte [esi + 0x15], 8
je 0x42c44a
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x42c454
mov eax, 0x4a9514
mov dword [eax], edi
cmp byte [ebp + 0x17], 0
jne 0x42c461
mov eax, dword [ebp + 0xc]
jmp 0x42c463
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x42c48b
cmp dword [0x4a8cd0], 0
je 0x42c48b
push 1
mov ecx, 0x4a8cc4
call fcn.00403f00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
and byte [eax + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x134
ret 8