Function at 0x42c540
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x134
push ebx
push ebp
mov ebp, dword [esp + 0x140]
cmp byte [ebp + 0x17], 0
push esi
push edi
jne 0x42c561
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x148], ebp
push 0xfd
lea eax, [esp + 0x45]
push 0
push eax
mov byte [esp + 0x4c], 0
call fcn.0048c460
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x1c]
test ebx, ebx
je 0x42c88b
mov al, byte [ebp + 0x17]
mov dword [esp + 0x2c], edx
test al, al
jne 0x42c5c2
mov ecx, dword [ebp + 0xc]
push 1
push 0
push edx
push 0
push ecx
call fcn.00472eb0
cmp eax, 1
jne 0x42cc3b
cmp byte [ebp + 0x17], 0
jne 0x42c846
mov esi, dword [ebp + 0xc]
jmp 0x42c848
cmp dword [esp + 0x1c], 0xffffffff
mov byte [esp + 0x1b], 1
mov cl, 1
jne 0x42c5e0
mov dword [esp + 0x2c], 0
mov edx, dword [esp + 0x2c]
xor cl, cl
jmp 0x42c5e5
mov byte [esp + 0x1b], 0
lea edi, [edx + 1]
cmp al, 2
jne 0x42c613
cmp byte [esp + 0x1b], 0
je 0x42c601
push 0x496816
mov eax, edx
call fcn.00403e20
jmp 0x42c5a7
mov esi, 0x4a9d34
call fcn.00403ea0
neg eax
sbb eax, eax
neg eax
jmp 0x42c5a7
mov esi, dword [0x4a43ac]
cmp edi, esi
jbe 0x42c63b
cmp edi, dword [ebp + 0x10]
jbe 0x42c63b
push 0x496816
push 0x49d880
mov ecx, 0x4a9d50
call fcn.0042db20
jmp 0x42c5a7
cmp edi, 2
jae 0x42c659
xor edx, edx
test cl, cl
setne dl
xor al, al
mov ecx, ebp
add edx, 3
push edx
call fcn.00473450
jmp 0x42c5b0
mov al, byte [ebp + 0x15]
test al, 2
je 0x42c676
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 esi, dword [0x4a43ac]
mov ebx, dword [ebp + 0x10]
and byte [ebp + 0x15], 0x82
cmp edi, ebx
jbe 0x42c6a4
mov cl, byte [ebp + 0x14]
cmp cl, 1
jbe 0x42c6e5
cmp cl, 2
je 0x42c724
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
and byte [ebp + 0x15], 0x7f
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], edi
cmp byte [esp + 0x1b], 0
je 0x42c830
mov eax, dword [ebp + 8]
cmp eax, 0x496816
je 0x42c6cc
mov ecx, dword [esp + 0x2c]
push ecx
push 0x496816
push eax
call fcn.00483b20
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov byte [eax + edx], 0
mov edx, eax
mov dword [ebp + 0xc], edx
jmp 0x42c5b0
cmp edi, 0x40
ja 0x42c724
cmp edi, 4
ja 0x42c6f6
mov edi, 4
jmp 0x42c704
mov eax, 8
cmp eax, edi
sbb edi, edi
and edi, 0x38
add edi, eax
mov eax, edi
mov dword [esp + 0x20], edi
call fcn.0046d770
mov dword [esp + 0x38], eax
test eax, eax
je 0x42cc3b
mov byte [ebp + 0x14], 1
jmp 0x42c696
cmp edi, 0x10
jae 0x42c730
mov edx, 0x10
jmp 0x42c7af
cmp edi, 0x104
jae 0x42c73f
mov edx, 0x104
jmp 0x42c7af
cmp edi, 0x28000
jae 0x42c783
mov dword [esp + 0x20], edi
fild dword [esp + 0x20]
test edi, edi
jns 0x42c759
fadd qword [0x49e7f8]
fmul qword [0x49e800]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov edx, dword [esp + 0x20]
fldcw word [esp + 0x14]
jmp 0x42c7af
cmp edi, 0x190000
jae 0x42c793
lea edx, [edi + 0x4000]
jmp 0x42c7af
cmp edi, 0x640000
jae 0x42c7a9
mov eax, 0x51eb851f
mul edi
shr edx, 5
add edx, edi
jmp 0x42c7af
lea edx, [edi + 0x10000]
mov dword [esp + 0x20], edx
cmp edx, esi
jbe 0x42c7bb
mov dword [esp + 0x20], esi
cmp cl, 2
jne 0x42c7f6
test ebx, ebx
je 0x42c7f6
mov ecx, dword [ebp + 8]
push ecx
mov bl, 1
call fcn.00482f58
add esp, 4
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
jl 0x42c7fa
push eax
call fcn.004830f9
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, edi
je 0x42c7fa
mov byte [ebp + 0x14], 2
jmp 0x42c692
xor bl, bl
jmp 0x42c7d2
test bl, bl
je 0x42c80a
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], 0x4a95ee
jmp 0x42c810
mov edx, dword [ebp + 8]
mov byte [edx], 0
push 0x496816
push str.Out_of_memory.
mov ecx, 0x4a9d50
mov dword [ebp + 0xc], edi
call fcn.0042db20
mov ebx, dword [esp + 0x30]
jmp 0x42c5a7
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov byte [ecx], 0
mov dword [ebp + 0xc], edx
jmp 0x42c5b0
mov esi, ebp
test byte [esi + 0x15], 8
je 0x42c855
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42c872
test byte [esi + 0x15], 4
je 0x42c869
mov eax, esi
call fcn.0042e090
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
jmp 0x42c893
cmp al, 2
jne 0x42c881
call fcn.00401000
mov dword [esp + 0x14], eax
jmp 0x42c893
mov dword [esp + 0x14], 0x4a95ee
jmp 0x42c893
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14c]
lea ebx, [ebx]
mov al, byte [ecx]
test al, al
je 0x42c8d3
cmp al, byte [0x4a43cd]
je 0x42c8fa
cmp al, byte [0x4a43cc]
je 0x42c8fa
test ebx, ebx
je 0x42c8c7
mov edx, dword [esp + 0x14]
mov byte [edx], al
inc edx
mov dword [esp + 0x14], edx
jmp 0x42c8cb
inc dword [esp + 0x1c]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x42c8a6
inc ebx
mov dword [esp + 0x30], ebx
cmp ebx, 2
jl 0x42c580
mov ecx, dword [esp + 0x14]
mov byte [ecx], 0
cmp byte [ebp + 0x17], 0
jne 0x42cc4a
mov esi, dword [ebp + 0xc]
jmp 0x42cc4c
mov al, byte [ecx]
test al, al
je 0x42c8d3
cmp al, byte [0x4a43cd]
jne 0x42ca31
test ebx, ebx
je 0x42ca1b
mov al, byte [ecx + 1]
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x15
ja case.0x42c92d.99
movzx edx, byte [edx + 0x42cd64]
jmp dword [edx*4 + 0x42cd44]
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
mov byte [eax], 7
inc ecx
jmp 0x42c8a0
mov edx, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
mov byte [edx], 8
inc ecx
jmp 0x42c8a0
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
mov byte [eax], 0xc
inc ecx
jmp 0x42c8a0
mov edx, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
mov byte [edx], 0xa
inc ecx
jmp 0x42c8a0
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
mov byte [eax], 0xd
inc ecx
jmp 0x42c8a0
mov edx, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
mov byte [edx], 9
inc ecx
jmp 0x42c8a0
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
mov byte [eax], 0xb
inc ecx
jmp 0x42c8a0
mov edx, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
mov byte [edx], al
inc ecx
jmp 0x42c8a0
inc dword [esp + 0x1c]
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
inc ecx
jmp 0x42c8a0
lea esi, [ecx + 1]
mov ebp, esi
mov al, byte [ebp]
test al, al
je 0x42cc2a
mov dl, byte [0x4a43cc]
cmp al, dl
je 0x42ca64
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x42ca47
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
jmp 0x42c8a0
cmp byte [ebp], 0
je 0x42cc2a
mov edi, ebp
sub edi, ecx
dec edi
je 0x42cc28
cmp edi, 0xfd
ja 0x42cc28
push edi
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00485ee0
add esp, 0xc
mov byte [esp + edi + 0x40], 0
cmp byte [esp + 0x40], 0
je 0x42cc3b
lea ecx, [esp + 0x2b]
push ecx
push 3
lea edx, [esp + 0x44]
push edx
push edi
lea eax, [esp + 0x50]
push eax
mov ecx, 0x4a9d50
call fcn.00420000
test eax, eax
jne 0x42cae4
mov edx, dword [esp + 0x3c]
xor ecx, ecx
cmp byte [esp + 0x2b], cl
setne cl
inc ecx
push ecx
push edx
push 0x4a9d50
mov ecx, edi
lea edx, [esp + 0x4c]
call fcn.00420290
mov esi, eax
test esi, esi
je 0x42cc3b
cmp byte [esi + 0x17], 0
jne 0x42caf7
mov esi, dword [esi + 0xc]
cmp esi, dword [esp + 0x148]
je 0x42cc28
cmp dword [esp + 0x30], 0
je 0x42cb30
mov edi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.00473280
mov ebx, dword [esp + 0x30]
add edi, eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
mov dword [esp + 0x14], edi
inc ecx
jmp 0x42c8a0
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42cb3d
jmp dword [eax*4 + 0x42cd7c]
mov eax, esi
call fcn.00401150
cmp dword [0x4a7e44], 0
jne 0x42cbb0
cmp dword [esi + 0xc], 0
jne 0x42cbb0
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 0x42cb91
mov ebx, dword [esp + 0x30]
dec eax
add dword [esp + 0x1c], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
mov dword [0x4aacd0], 0
inc ecx
jmp 0x42c8a0
mov dword [0x4aacd0], esi
mov ebx, dword [esp + 0x30]
xor eax, eax
add dword [esp + 0x1c], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42c8a0
mov eax, dword [esi + 0xc]
add dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x30]
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42c8a0
mov ecx, dword [esi + 0xc]
push 0
call fcn.00473280
add dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x30]
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42c8a0
xor ecx, ecx
call fcn.00403c50
cmp eax, 0xffffffff
jne 0x42cc24
mov ebx, dword [esp + 0x30]
xor eax, eax
add dword [esp + 0x1c], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42c8a0
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, ebp
mov ebp, dword [esp + 0x148]
mov ebx, dword [esp + 0x30]
inc ecx
jmp 0x42c8a0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov esi, ebp
test byte [esi + 0x15], 8
je 0x42cc59
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x42cc72
test byte [esi + 0x15], 4
je 0x42cc6d
mov eax, esi
call fcn.0042e090
mov eax, dword [esi + 8]
jmp 0x42ccc0
cmp al, 2
jne 0x42ccbb
mov eax, dword [0x4a9d40]
test eax, eax
jne 0x42ccc0
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x42cca3
push 0xf
call esi
test eax, eax
je 0x42cc9c
mov eax, str.____
jmp 0x42ccc0
mov eax, 0x496816
jmp 0x42ccc0
xor ecx, ecx
call fcn.00403c50
cmp eax, 0xffffffff
mov eax, 0x496816
je 0x42ccc0
mov eax, dword [0x4a9d3c]
jmp 0x42ccc0
mov eax, 0x4a95ee
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ccc3
sub eax, edx
mov edi, eax
cmp byte [ebp + 0x17], cl
jne 0x42ccd8
mov esi, dword [ebp + 0xc]
jmp 0x42ccda
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x42ccf2
test byte [esi + 0x15], 8
je 0x42cced
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x42ccf7
mov eax, 0x4aa484
mov dword [eax], edi
cmp byte [ebp + 0x17], 0
jne 0x42cd04
mov eax, dword [ebp + 0xc]
jmp 0x42cd06
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x42cd2e
cmp dword [0x4a9d40], 0
je 0x42cd2e
push 1
mov ecx, 0x4a9d34
call fcn.00403f10
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