Function at 0x1003eba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073924
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0xa927213e
mov dword [ebp - 0x6c], 0xec6f0d4a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
jle 0x1003ebf1
mov dword [ebp - 0x88], 1
jmp 0x1003ebf8
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x88]
jge 0x1003ec0c
mov dword [ebp - 0x7c], 1
jmp 0x1003ec10
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
inc eax
inc eax
cmp eax, dword [ebp - 0x10]
jle 0x1003ec26
mov dword [ebp - 0xb4], 1
jmp 0x1003ec2d
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x14], 0
je 0x1003ec96
mov dword [ebp - 0x14], 8
jmp 0x1003ec5e
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x15
jne 0x1003ec91
mov dword [ebp - 0x110], 0x57e3b6f9
mov dword [ebp - 0x10], 0
jmp 0x1003ec7e
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffea
jl 0x1003ec8f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x110], eax
jmp 0x1003ec77
jmp 0x1003ec57
jmp 0x1003ee53
mov dword [ebp - 0x9c], 0x7d96711d
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x70], 0xffffffff
mov dword [ebp - 0xe4], 0xfffffffa
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
je 0x1003ecd5
mov dword [ebp - 0x84], 1
jmp 0x1003ecdc
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x84], eax
jl 0x1003ecf3
mov dword [ebp - 0xdc], 1
jmp 0x1003ecfa
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0xdc]
add eax, 0x6f62939
mov dword [ebp - 0x14], eax
je 0x1003ed20
cmp dword [ebp - 0x18], 0
je 0x1003ed20
mov dword [ebp - 0x8c], 1
jmp 0x1003ed27
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x8c]
test eax, eax
je 0x1003ed47
cmp dword [ebp - 0x14], 0
je 0x1003ed47
mov dword [ebp - 0xbc], 1
jmp 0x1003ed4e
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1003ed6c
cmp dword [ebp - 0x18], 0
jne 0x1003ed6c
and dword [ebp - 0x94], 0
jmp 0x1003ed76
mov dword [ebp - 0x94], 1
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x70]
jle 0x1003ed90
mov dword [ebp - 0xd4], 1
jmp 0x1003ed97
and dword [ebp - 0xd4], 0
cmp dword [ebp - 0xd4], 0xc7f
jge 0x1003edaf
mov dword [ebp - 0xc4], 1
jmp 0x1003edb6
and dword [ebp - 0xc4], 0
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc4]
jne 0x1003ede0
mov dword [ebp - 0xa4], 1
jmp 0x1003ede7
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
add eax, 0x79de
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0xe4], eax
jg 0x1003ee0f
mov dword [ebp - 0x118], 1
jmp 0x1003ee16
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x6c], 0
je 0x1003ee31
mov dword [ebp - 0xac], 1
jmp 0x1003ee38
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x31], 0
movzx eax, byte [ebp - 0x31]
test eax, eax
je 0x1003ee53
call dword [sym.imp.GDI32.dll_GdiFlush]
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1003f385
mov dword [ebp - 0x68], 0
mov dword [ebp - 0xf8], 0xffffffff
mov dword [ebp - 0x150], 0xf3d37a5b
mov dword [ebp - 0x170], 0x8e9646b8
mov dword [ebp - 0x68], 0
jmp 0x1003ee94
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 6
jne 0x1003efd7
push 2
lea ecx, [ebp - 0x184]
call fcn.10024d89
and dword [ebp - 4], 0
mov dword [ebp - 0x44], 0x446df37d
mov dword [ebp - 0x158], 0x872d9ee1
mov dword [ebp - 0x54], 0x9cdc345f
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x1c], 0
jmp 0x1003eede
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jge 0x1003eef7
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x184]
call fcn.10024e10
and dword [eax], 0
jmp 0x1003eed7
mov dword [ebp - 0x1c], 0
jmp 0x1003ef07
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x1003ef1d
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x188], 6
jmp 0x1003ef00
mov dword [ebp - 0x44], 0
jmp 0x1003ef2d
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jg 0x1003ef5a
mov dword [ebp - 0x160], 0xc9ed9ba0
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x38], eax
jmp 0x1003ef26
mov dword [ebp - 0x38], 0
jmp 0x1003ef6a
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x2c
jne 0x1003efc3
cmp dword [ebp - 0x44], 0
je 0x1003efa2
mov dword [ebp - 0x54], 0xb
jmp 0x1003ef86
mov eax, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 7
jle 0x1003efa0
mov byte [ebp - 0x2e], 0
movzx eax, byte [ebp - 0x2e]
test eax, eax
je 0x1003ef9e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x1003ef7f
jmp 0x1003efc1
mov byte [ebp - 0x34], 0
movzx eax, byte [ebp - 0x34]
test eax, eax
je 0x1003efb6
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xf8], 0
je 0x1003efc1
jmp 0x1003ef63
jmp 0x1003ef63
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x184]
call fcn.10024e0b
jmp 0x1003ee8d
mov byte [ebp - 0x30], 0
movzx eax, byte [ebp - 0x30]
test eax, eax
je 0x1003eff0
push 0x6d0
push 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [ebp - 0x5c], 0xf6af1124
mov dword [ebp - 0x144], 0xffffffff
push 2
lea ecx, [ebp - 0x194]
call fcn.10024d89
mov dword [ebp - 4], 1
mov dword [ebp - 0x64], 0
jmp 0x1003f025
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 2
jge 0x1003f041
push dword [ebp - 0x64]
lea ecx, [ebp - 0x194]
call fcn.10024e10
mov dword [eax], 0xfffffff8
jmp 0x1003f01e
mov dword [ebp - 0x5c], 6
jmp 0x1003f051
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffef
jge 0x1003f36b
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0x20], 0
jmp 0x1003f07c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jge 0x1003f092
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0xec], 0x91e29ea4
jmp 0x1003f075
mov dword [ebp - 0x20], 0
jmp 0x1003f0a2
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jge 0x1003f0b8
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x114], 0xfffffff8
jmp 0x1003f09b
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x28], 0
jmp 0x1003f0cf
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jg 0x1003f366
mov dword [ebp - 0x48], 0xfca86293
mov dword [ebp - 0x14c], 0xfffffffa
mov dword [ebp - 0x4c], 0
jmp 0x1003f0fa
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 4
jge 0x1003f110
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x1a8], 0x9a22db78
jmp 0x1003f0f3
cmp dword [ebp - 0x28], 0
je 0x1003f337
mov dword [ebp - 0x2c], 0xfffffffb
mov dword [ebp - 0x74], 0xffff
mov dword [ebp - 0x3c], 6
push 2
lea ecx, [ebp - 0x13c]
call fcn.10024d89
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], 0
jmp 0x1003f150
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 2
jge 0x1003f16c
push dword [ebp - 0x50]
lea ecx, [ebp - 0x13c]
call fcn.10024e10
mov dword [eax], 1
jmp 0x1003f149
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x1a8]
cmp dword [ebp - 0x2c], eax
jne 0x1003f18a
mov dword [ebp - 0x90], 1
jmp 0x1003f191
and dword [ebp - 0x90], 0
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x1a8], 0
jne 0x1003f1b9
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xec], 0
jne 0x1003f1b9
and dword [ebp - 0xcc], 0
jmp 0x1003f1c3
mov dword [ebp - 0xcc], 1
cmp dword [ebp - 0xcc], 0x53fc
jg 0x1003f1d8
mov dword [ebp - 0x78], 1
jmp 0x1003f1dc
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x78], 0x4593f6a0
je 0x1003f1f1
cmp dword [ebp - 0x2c], 0
jne 0x1003f1f1
and dword [ebp - 0x80], 0
jmp 0x1003f1f8
mov dword [ebp - 0x80], 1
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], eax
je 0x1003f221
mov dword [ebp - 0x98], 1
jmp 0x1003f228
and dword [ebp - 0x98], 0
push 4
pop eax
imul eax, eax, 3
mov dword [ebp + eax - 0x1a8], 0x26d8f9c3
mov eax, 0xc312fbb6
cmp eax, 0x26d8f9c3
jbe 0x1003f251
mov dword [ebp - 0xa0], 1
jmp 0x1003f258
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 0xa3d8
jle 0x1003f270
mov dword [ebp - 0xa8], 1
jmp 0x1003f277
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0xfff7
je 0x1003f28f
mov dword [ebp - 0xb0], 1
jmp 0x1003f296
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x48], 0
jmp 0x1003f2af
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jg 0x1003f326
mov dword [ebp - 0x2c], 0
jmp 0x1003f2c5
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jg 0x1003f324
mov dword [ebp - 0x3c], 0
jmp 0x1003f2db
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 3
jg 0x1003f322
mov byte [ebp - 0x33], 0
movzx eax, byte [ebp - 0x33]
test eax, eax
je 0x1003f2fc
push 0
push 0x23f9
push 0
call dword [sym.imp.GDI32.dll_GetRegionData]
push 0
lea ecx, [ebp - 0x13c]
call fcn.10024e10
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xb8]
mov dword [ecx], eax
jmp 0x1003f2d4
jmp 0x1003f2be
jmp 0x1003f2a8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.10024e0b
jmp 0x1003f354
mov dword [ebp - 0x100], 0x5708880d
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x100]
mov dword [ebp + eax - 0x114], ecx
mov eax, dword [ebp - 0xc0]
inc eax
mov dword [ebp - 0xc0], eax
jmp 0x1003f0c8
jmp 0x1003f04a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x194]
call fcn.10024e0b
call dword [sym.imp.GDI32.dll_GdiFlush]
jmp 0x1003f5e8
mov dword [ebp - 0x40], 0x4ccb63e8
mov dword [ebp - 0xc8], 0xe28fdeb7
push 1
lea ecx, [ebp - 0x130]
call fcn.10024d89
mov dword [ebp - 4], 3
mov dword [ebp - 0xe8], 0xa329ef4a
mov dword [ebp - 0x108], 0xfffffff8
mov dword [ebp - 0x58], 0
jmp 0x1003f3ce
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 1
jge 0x1003f3e7
push dword [ebp - 0x58]
lea ecx, [ebp - 0x130]
call fcn.10024e10
or dword [eax], 0xffffffff
jmp 0x1003f3c7
mov byte [ebp - 0x32], 0
movzx eax, byte [ebp - 0x32]
test eax, eax
je 0x1003f407
push 0
push 0x1a88
push 0xaa3
push 0
call dword [sym.imp.GDI32.dll_SetPaletteEntries]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0xc8], 0x94f9
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0xc8], eax
jge 0x1003f431
mov dword [ebp - 0xd0], 1
jmp 0x1003f438
and dword [ebp - 0xd0], 0
mov esi, dword [ebp - 0x40]
add esi, dword [ebp - 0xd0]
push 0
lea ecx, [ebp - 0x130]
call fcn.10024e10
mov dword [eax], esi
push 0
lea ecx, [ebp - 0x130]
call fcn.10024e10
mov ecx, dword [ebp - 0x40]
cmp dword [eax], ecx
jle 0x1003f470
mov dword [ebp - 0xd8], 1
jmp 0x1003f477
and dword [ebp - 0xd8], 0
cmp dword [ebp - 0xd8], 0x10b9
jle 0x1003f495
mov eax, 0x5256ee97
test eax, eax
jne 0x1003f495
and dword [ebp - 0xe0], 0
jmp 0x1003f49f
mov dword [ebp - 0xe0], 1
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0xe0]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x108], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.10024e0b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x60], 0
jmp 0x1003f4ec
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 1
jge 0x1003f502
mov eax, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0x164], 0xfffffff9
jmp 0x1003f4e5
mov dword [ebp - 0x24], 0
jmp 0x1003f512
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x1003f53c
mov byte [ebp - 0x2d], 0
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x1003f53a
push 0x12c0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1003f50b
mov dword [ebp - 0x24], 0
jmp 0x1003f54c
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jg 0x1003f566
mov byte [ebp - 0x2f], 0
movzx eax, byte [ebp - 0x2f]
test eax, eax
je 0x1003f564
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
jmp 0x1003f545
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x104]
push dword [eax]
push 0xb40
push 0
mov eax, dword [ebp - 0x10c]
push dword [eax]
push dword [ebp - 0x11c]
push 0x3473
mov eax, dword [ebp - 0x124]
push dword [eax]
push 0x395c
call fcn.1003f66f
add esp, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret