Function at 0x100225cb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov dword [ebp - 8], 3
mov dword [ebp - 0x24], 0xdac842f8
mov dword [ebp - 0x10], 0x3f3ac9d7
mov dword [ebp - 0x6c], 0xffffffff
mov eax, dword [ebp - 8]
cmp dword [ebp - 8], eax
je 0x10022607
cmp dword [ebp - 8], 0
jne 0x10022607
and dword [ebp - 0x84], 0
jmp 0x10022611
mov dword [ebp - 0x84], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0x10], 0
je 0x10022645
cmp dword [ebp - 0x10], 0
mov eax, 0x4c26
test eax, eax
jne 0x10022654
cmp dword [ebp - 8], 0
je 0x10022663
cmp dword [ebp - 8], 0
je 0x10022663
mov dword [ebp - 0x80], 1
jmp 0x10022667
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 8]
js 0x10022681
cmp dword [ebp - 0x10], 0
jne 0x10022681
and dword [ebp - 0x34], 0
jmp 0x10022688
mov dword [ebp - 0x34], 1
imul eax, dword [ebp - 0x34], 0x9744
cmp eax, 0xb94be3d0
je 0x1002269f
mov dword [ebp - 0x78], 1
jmp 0x100226a3
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x78], 8
jae 0x100226b2
mov dword [ebp - 0x3c], 1
jmp 0x100226b6
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
sub eax, 6
je 0x1002282f
mov dword [ebp - 0xc], 0xf4c6f444
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x100226f5
push 0
push 0x1434
push 0x126d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetDIBColorTable]
cmp dword [ebp - 8], 0
je 0x1002270d
mov eax, 0xffff
test eax, eax
je 0x1002270d
mov dword [ebp - 0x54], 1
jmp 0x10022711
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 8]
sub eax, 8
je 0x10022725
mov dword [ebp - 0x88], 1
jmp 0x1002272c
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x88], eax
je 0x10022740
mov dword [ebp - 0x44], 1
jmp 0x10022744
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x44], eax
jle 0x10022755
mov dword [ebp - 0x68], 1
jmp 0x10022759
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x68], eax
jle 0x1002276a
mov dword [ebp - 0x4c], 1
jmp 0x1002276e
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x4c]
jne 0x1002277f
mov dword [ebp - 0x74], 1
jmp 0x10022783
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x74], eax
jle 0x10022794
mov dword [ebp - 0x7c], 1
jmp 0x10022798
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x7c]
jne 0x100227af
cmp dword [ebp - 0xc], 0
je 0x100227af
mov dword [ebp - 0x5c], 1
jmp 0x100227b3
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
sub eax, 0x87dd
jne 0x100227cc
mov eax, 0xffff
test eax, eax
jne 0x100227cc
and dword [ebp - 0x28], 0
jmp 0x100227d3
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x28], eax
jl 0x100227e4
mov dword [ebp - 0x64], 1
jmp 0x100227e8
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x64], eax
jg 0x100227fc
mov dword [ebp - 0x8c], 1
jmp 0x10022803
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x8c]
je 0x10022823
cmp dword [ebp - 0xc], 0
je 0x10022823
cmp dword [ebp - 0xc], 0
je 0x10022823
mov dword [ebp - 0x70], 1
jmp 0x10022827
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
jmp 0x10022879
mov dword [ebp - 0x9c], 0x2ea9177c
mov dword [ebp - 0x20], 0
jmp 0x10022849
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jge 0x1002285f
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0xbc], 0xf0d22965
jmp 0x10022842
mov dword [ebp - 0x9c], 0x5f9ba4ae
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 8]
mov dword [ebp + eax - 0xbc], ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100229ed
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0xda0e60f9
mov dword [ebp - 0x18], 0
jmp 0x100228ac
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x100228c2
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x98], 0xdd688769
jmp 0x100228a5
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
jmp 0x100228df
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x100229d7
mov dword [ebp - 0x2c], 6
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x98]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x98]
cmp eax, dword [ebp - 0x2c]
jne 0x10022915
mov dword [ebp - 0x40], 1
jmp 0x10022919
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x98]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x98]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ebp + ecx*4 - 0x98]
cmp dword [ebp + eax*4 - 0x98], ecx
jle 0x1002295e
cmp dword [ebp - 0x1c], 0
je 0x1002295e
mov dword [ebp - 0x30], 1
jmp 0x10022962
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x10022973
mov dword [ebp - 0x38], 1
jmp 0x10022977
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
sub eax, 0xffff
imul eax, eax, 0xfffffffa
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x40], eax
jle 0x10022996
mov dword [ebp - 0x48], 1
jmp 0x1002299a
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0x57736d0c
jl 0x100229ac
mov dword [ebp - 0x50], 1
jmp 0x100229b0
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0xfffffff6
jbe 0x100229bf
mov dword [ebp - 0x58], 1
jmp 0x100229c3
and dword [ebp - 0x58], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x58]
mov dword [ebp + eax - 0x98], ecx
jmp 0x100228d8
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
jmp 0x10022a15
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
movzx eax, byte [eax]
test eax, eax
je 0x10022a15
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esp, ebp
pop ebp
ret