Function at 0x10025147
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov dword [ebp - 0x138], 0xffffffff
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x10025170
push 0
push 0
call dword [sym.imp.USER32.dll_CopyRect]
mov byte [ebp - 0x10], 0
movzx eax, byte [ebp - 0x10]
test eax, eax
je 0x10025195
push 0x2cd
push 0
push 0x194a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100255e7
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x14d2fc5c
mov dword [ebp - 0x24], 0xbc1552c2
mov dword [ebp - 4], 0xe8b7
mov eax, dword [ebp - 4]
add eax, 0x7a4a
je 0x10025222
mov eax, dword [ebp - 4]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x174], eax
mov eax, 0xfff8
add eax, 0x75a5
cmp eax, 0xaa53f0d3
jne 0x100251ff
mov dword [ebp - 0x94], 1
jmp 0x10025206
and dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0xffffffff
jl 0x1002521b
mov dword [ebp - 0xd8], 1
jmp 0x10025222
and dword [ebp - 0xd8], 0
cmp dword [ebp - 4], 0
je 0x100255c1
mov dword [ebp - 0x14], 5
mov dword [ebp - 0xc], 0xae5d5ec7
mov dword [ebp - 0x20], 0x55e97312
mov dword [ebp - 0x80], 0x4c0c5dc7
mov dword [ebp - 0xf4], 0x92777ef5
mov dword [ebp - 0x30], 0
jmp 0x10025262
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 4
jge 0x10025278
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0xbc], 0xc0e2632c
jmp 0x1002525b
mov dword [ebp - 4], 0
jmp 0x10025288
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jg 0x10025468
mov dword [ebp - 0xe4], 0x6340c09c
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0xbc]
mov dword [ebp - 0x140], eax
push 4
pop eax
imul eax, eax, 3
cmp dword [ebp + eax - 0xbc], 0
je 0x100252d5
mov eax, dword [ebp - 4]
cmp dword [ebp + eax*4 - 0xbc], 0
je 0x100252d5
mov dword [ebp - 0xd0], 1
jmp 0x100252dc
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10025300
mov eax, 0xbfe7374
test eax, eax
je 0x10025300
mov dword [ebp - 0xec], 1
jmp 0x10025307
and dword [ebp - 0xec], 0
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0xbc]
mov dword [ebp - 0x168], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xbc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0xbc]
add eax, dword [ebp - 0x20]
cmp eax, 0xfbde
je 0x1002534d
mov dword [ebp - 0x60], 1
jmp 0x10025351
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0xbc]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp eax, dword [ebp + ecx*4 - 0xbc]
jne 0x1002537c
mov dword [ebp - 0x98], 1
jmp 0x10025383
and dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 0xfffffff6
jbe 0x10025398
mov dword [ebp - 0x128], 1
jmp 0x1002539f
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add eax, dword [ebp + ecx*4 - 0xbc]
jne 0x100253c4
push 0xfffffffffffffffc
pop eax
test eax, eax
jne 0x100253c4
and dword [ebp - 0x68], 0
jmp 0x100253cb
mov dword [ebp - 0x68], 1
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0x68]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x24], eax
je 0x100253e9
mov dword [ebp - 0xcc], 1
jmp 0x100253f0
and dword [ebp - 0xcc], 0
imul eax, dword [ebp - 0xcc], 0x9257
mov ecx, 0x7018
sub ecx, eax
imul eax, ecx, 0xb053
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
jne 0x10025433
mov eax, 0x16e8
test eax, eax
jne 0x10025433
and dword [ebp - 0x70], 0
jmp 0x1002543a
mov dword [ebp - 0x70], 1
mov eax, dword [ebp - 8]
shl eax, 1
cmp eax, dword [ebp - 0x70]
jl 0x10025450
mov dword [ebp - 0xa0], 1
jmp 0x10025457
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xe4], eax
jmp 0x10025281
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x170], eax
cmp dword [ebp - 8], 0xfffffff7
je 0x10025483
mov dword [ebp - 0x120], 1
jmp 0x1002548a
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 8]
add eax, 0x6e0e3f56
cmp dword [ebp - 0x14], eax
jl 0x100254a9
mov dword [ebp - 0x78], 1
jmp 0x100254ad
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
add eax, 3
imul eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jg 0x100254c8
mov dword [ebp - 0x10c], 1
jmp 0x100254cf
and dword [ebp - 0x10c], 0
cmp dword [ebp - 4], 0
je 0x100254e1
mov dword [ebp - 0xc4], 1
jmp 0x100254e8
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0xc4]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xe0ee4d50
jb 0x10025512
cmp dword [ebp - 0x14], 0
jne 0x10025512
and dword [ebp - 0xdc], 0
jmp 0x1002551c
mov dword [ebp - 0xdc], 1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 8], 0xae77ddba
ja 0x1002554c
cmp dword [ebp - 4], 0
jne 0x1002554c
and dword [ebp - 0x12c], 0
jmp 0x10025556
mov dword [ebp - 0x12c], 1
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0xbc]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 8], eax
jl 0x1002557c
mov dword [ebp - 0xa8], 1
jmp 0x10025583
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 4]
push 4
pop ecx
shl ecx, 1
cmp eax, dword [ebp + ecx - 0xbc]
jl 0x100255a6
mov dword [ebp - 0x88], 1
jmp 0x100255ad
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xf4], eax
jmp 0x100255dc
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x100255dc
push 0
push 0x1777
push 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x100259d6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
je 0x1002564c
mov dword [ebp - 0xd4], 0x97a8
mov byte [ebp - 0xf], 0
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x10025625
push 0xb0f
push 0xdc8
push 0
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov dword [ebp - 0x28], 0
jmp 0x10025635
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x1e
jl 0x1002564a
mov eax, dword [ebp - 0xd4]
inc eax
mov dword [ebp - 0xd4], eax
jmp 0x1002562e
jmp 0x10025683
mov dword [ebp - 0x114], 0x987f
mov dword [ebp - 0xfc], 0x5efa20bd
mov dword [ebp - 0x90], 0x34d8
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x90]
dec eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x44], 0x299fa9ef
mov dword [ebp - 0x9c], 0xfffffff7
mov dword [ebp - 0x34], 0
jmp 0x100256bd
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jge 0x100256d0
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x50], 0
jmp 0x100256b6
mov dword [ebp - 0x1c], 0xfffffff6
jmp 0x100256e0
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffec
jne 0x1002594f
mov dword [ebp - 0x104], 0x62e08974
mov dword [ebp - 0xe8], 0x6dfc9b99
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x40], 0xfffffffc
mov dword [ebp - 0xe0], 3
mov dword [ebp - 0x2c], 0
jmp 0x1002572d
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jge 0x10025743
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x134], 0x2c41ac3d
jmp 0x10025726
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x44]
cmp dword [ebp + eax - 0x50], ecx
jl 0x1002575b
mov dword [ebp - 0x58], 1
jmp 0x1002575f
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x58]
je 0x10025770
mov dword [ebp - 0x5c], 1
jmp 0x10025774
and dword [ebp - 0x5c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x50]
imul eax, dword [ebp - 0x5c]
cmp eax, 0xfffffffd
jl 0x10025790
mov dword [ebp - 0x64], 1
jmp 0x10025794
and dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 0x87972e7e
jae 0x100257a6
mov dword [ebp - 0x6c], 1
jmp 0x100257aa
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x6c]
dec eax
mov ecx, dword [ebp - 0x3c]
dec ecx
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x100257cd
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x134], 0
jne 0x100257d8
xor eax, eax
inc eax
jne 0x100257d8
and dword [ebp - 0x74], 0
jmp 0x100257df
mov dword [ebp - 0x74], 1
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x50]
cmp dword [ebp - 0x74], eax
jg 0x100257f6
mov dword [ebp - 0x7c], 1
jmp 0x100257fa
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x7c], eax
jg 0x1002580e
mov dword [ebp - 0x84], 1
jmp 0x10025815
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x84]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x40]
add eax, 0xb09c
cmp eax, dword [ebp - 0x1c]
jne 0x1002584a
mov dword [ebp - 0x124], 1
jmp 0x10025851
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x15c], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x50]
mov dword [ebp - 0x8c], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x8c]
mov dword [ebp + eax - 0x134], ecx
mov eax, dword [ebp - 0x104]
cmp eax, dword [ebp - 0x8c]
jg 0x10025894
mov dword [ebp - 0x54], 1
jmp 0x10025898
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x10025920
mov dword [ebp - 0x11c], 0xfffffff6
mov dword [ebp - 0x38], 0
jmp 0x100258c4
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x11
jge 0x10025911
xor eax, eax
inc eax
je 0x100258e3
cmp dword [ebp - 0x11c], 0
je 0x100258e3
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x50], 0
cmp dword [ebp - 0xe0], 1
jg 0x100258f8
mov dword [ebp - 0xa4], 1
jmp 0x100258ff
and dword [ebp - 0xa4], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xa4]
mov dword [ebp + eax - 0x50], ecx
jmp 0x100258bd
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp + eax - 0x50], ecx
jmp 0x1002593b
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1002593b
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x50]
mov dword [ebp - 0xe8], eax
jmp 0x100256d9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc0]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0xc0]
mov edx, dword [edx]
sub edx, dword [ecx]
imul edx, dword [eax]
test edx, edx
je 0x100259c1
mov dword [ebp - 0xc8], 1
jmp 0x100259c8
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0xc8]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret