Function at 0x42c620
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x114
push ebx
push ebp
mov ebp, dword [esp + 0x120]
cmp byte [ebp + 0x17], 0
push esi
push edi
jne 0x42c643
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x128], eax
mov ebp, eax
mov ebx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x18], eax
lea ecx, [ecx]
test eax, eax
je 0x42c67c
mov ecx, dword [esp + 0x10]
push 1
push 0
push ecx
push 0
push ebp
call fcn.004a5c20
cmp eax, 1
jne 0x42c9c4
push 0
push eax
mov ecx, ebp
call fcn.004016d0
mov ebx, eax
jmp 0x42c684
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x12c]
jmp 0x42c690
mov al, byte [ecx]
test al, al
je 0x42c6c5
cmp al, byte [0x4ec3d3]
je 0x42c704
cmp al, byte [0x4ec3d2]
je 0x42c704
cmp dword [esp + 0x18], 0
je 0x42c6b2
mov byte [ebx], al
inc ebx
jmp 0x42c6b6
inc dword [esp + 0x10]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x42c696
mov ebp, dword [esp + 0x128]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 2
jl 0x42c650
push 0
push 1
mov ecx, ebp
mov byte [ebx], 0
call fcn.004016d0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42c6e8
sub eax, edx
mov edi, eax
cmp byte [ebp + 0x17], cl
jne 0x42c9d3
mov esi, dword [ebp + 0xc]
jmp 0x42c9d5
mov al, byte [ecx]
test al, al
je 0x42c6be
cmp al, byte [0x4ec3d3]
jne 0x42c7e2
cmp dword [esp + 0x18], 0
je 0x42c7d0
mov al, byte [ecx + 1]
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x15
ja case.0x42c73a.99
movzx edx, byte [edx + 0x42ca60]
jmp dword [edx*4 + 0x42ca40]
mov ebp, dword [esp + 0x128]
mov byte [ebx], 7
inc ecx
inc ebx
inc ecx
jmp 0x42c690
mov ebp, dword [esp + 0x128]
mov byte [ebx], 8
inc ecx
inc ebx
inc ecx
jmp 0x42c690
mov ebp, dword [esp + 0x128]
mov byte [ebx], 0xc
inc ecx
inc ebx
inc ecx
jmp 0x42c690
mov ebp, dword [esp + 0x128]
mov byte [ebx], 0xa
inc ecx
inc ebx
inc ecx
jmp 0x42c690
mov ebp, dword [esp + 0x128]
mov byte [ebx], 0xd
inc ecx
inc ebx
inc ecx
jmp 0x42c690
mov ebp, dword [esp + 0x128]
mov byte [ebx], 9
inc ecx
inc ebx
inc ecx
jmp 0x42c690
mov ebp, dword [esp + 0x128]
mov byte [ebx], 0xb
inc ecx
inc ebx
inc ecx
jmp 0x42c690
mov ebp, dword [esp + 0x128]
mov byte [ebx], al
inc ecx
inc ebx
inc ecx
jmp 0x42c690
inc dword [esp + 0x10]
mov ebp, dword [esp + 0x128]
inc ecx
inc ecx
jmp 0x42c690
lea esi, [ecx + 1]
mov ebp, esi
mov al, byte [ebp]
test al, al
je 0x42c9b7
cmp al, byte [0x4ec3d2]
je 0x42c80f
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x42c7f2
mov ebp, dword [esp + 0x128]
inc ecx
jmp 0x42c690
cmp byte [ebp], 0
je 0x42c9b7
mov edi, ebp
sub edi, ecx
dec edi
je 0x42c9b5
cmp edi, 0xfd
ja 0x42c9b5
push edi
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004bd1c0
add esp, 0xc
mov byte [esp + edi + 0x24], 0
cmp byte [esp + 0x24], 0
je 0x42c9c4
lea ecx, [esp + 0x17]
push ecx
push 3
lea edx, [esp + 0x28]
push edx
push edi
lea eax, [esp + 0x34]
push eax
mov ecx, 0x4f1cd8
call fcn.00421180
test eax, eax
jne 0x42c88f
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp byte [esp + 0x17], cl
setne cl
inc ecx
push ecx
push edx
push 0x4f1cd8
mov ecx, edi
lea edx, [esp + 0x30]
call fcn.00421420
mov esi, eax
test esi, esi
je 0x42c9c4
cmp byte [esi + 0x17], 0
jne 0x42c8a2
mov esi, dword [esi + 0xc]
cmp esi, dword [esp + 0x128]
je 0x42c9b5
cmp dword [esp + 0x18], 0
je 0x42c8cf
push ebx
mov ecx, esi
call fcn.004a6010
mov ecx, ebp
mov ebp, dword [esp + 0x128]
add ebx, eax
inc ecx
jmp 0x42c690
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42c8dc
jmp dword [eax*4 + 0x42ca78]
mov eax, esi
call fcn.004015f0
cmp dword [0x4f0d40], 0
jne 0x42c947
cmp dword [esi + 0xc], 0
jne 0x42c947
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x23]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x42c92c
dec eax
add dword [esp + 0x10], eax
mov ecx, ebp
mov ebp, dword [esp + 0x128]
mov dword [0x4f4968], 0
inc ecx
jmp 0x42c690
mov dword [0x4f4968], esi
xor eax, eax
add dword [esp + 0x10], eax
mov ecx, ebp
mov ebp, dword [esp + 0x128]
inc ecx
jmp 0x42c690
mov eax, dword [esi + 0xc]
add dword [esp + 0x10], eax
mov ecx, ebp
mov ebp, dword [esp + 0x128]
inc ecx
jmp 0x42c690
mov ecx, dword [esi + 0xc]
push 0
call fcn.004a6010
add dword [esp + 0x10], eax
mov ecx, ebp
mov ebp, dword [esp + 0x128]
inc ecx
jmp 0x42c690
push 0
mov ecx, 0x4f2348
call fcn.00404730
cmp eax, 0xffffffff
jne 0x42c9b1
xor eax, eax
add dword [esp + 0x10], eax
mov ecx, ebp
mov ebp, dword [esp + 0x128]
inc ecx
jmp 0x42c690
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push edx
push 0
call eax
add esp, 8
add dword [esp + 0x10], eax
mov ecx, ebp
mov ebp, dword [esp + 0x128]
inc ecx
jmp 0x42c690
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 8
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x42c9ed
test byte [esi + 0x15], 8
je 0x42c9e8
mov eax, esi
call fcn.004015f0
lea eax, [esi + 0xc]
jmp 0x42c9f2
mov eax, 0x4f3e84
mov dword [eax], edi
cmp byte [ebp + 0x17], 0
jne 0x42c9ff
mov eax, dword [ebp + 0xc]
jmp 0x42ca01
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x42ca29
cmp dword [0x4f2354], 0
je 0x42ca29
push 1
mov ecx, 0x4f2348
call fcn.004049f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 8
and byte [eax + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x114
ret 8