Function at 0x1002e58b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1002e754
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [eax], 4
jmp 0x1002e5ef
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xfffffffe
jg 0x1002e752
mov dword [ebp - 0x18], 0x5de05dae
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x60], 0xffffffff
mov eax, dword [ebp - 0x18]
neg eax
je 0x1002e65d
mov dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x58]
cmp dword [eax], ecx
jge 0x1002e631
mov dword [ebp - 0x1c], 1
jmp 0x1002e635
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002e658
push 0x11c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1002e74d
mov dword [ebp - 0xc], 0
jmp 0x1002e66d
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jge 0x1002e680
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x14], 0
jmp 0x1002e666
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
cmp dword [ebp + eax - 0x14], ecx
jg 0x1002e69a
mov dword [ebp - 0x24], 1
jmp 0x1002e69e
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
je 0x1002e6b9
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x1002e6b9
mov dword [ebp - 0x2c], 1
jmp 0x1002e6bd
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x2c], eax
je 0x1002e6d8
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x14], 0
jne 0x1002e6d8
and dword [ebp - 0x30], 0
jmp 0x1002e6df
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x30], eax
je 0x1002e6f0
mov dword [ebp - 0x34], 1
jmp 0x1002e6f4
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x34], eax
jge 0x1002e705
mov dword [ebp - 0x38], 1
jmp 0x1002e709
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x38], eax
jle 0x1002e71a
mov dword [ebp - 0x3c], 1
jmp 0x1002e71e
and dword [ebp - 0x3c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
sub eax, 0x7fffaa23
cmp dword [ebp - 0x18], eax
jge 0x1002e741
mov dword [ebp - 0x40], 1
jmp 0x1002e745
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
jmp 0x1002e5e4
jmp 0x1002e763
push 0
push 0xae0
push 0
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov esp, ebp
pop ebp
ret