Function at 0x10045a84
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087cb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push esi
push 3
lea ecx, [ebp - 0x84]
call fcn.10014bbc
and dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x44], 0xb90f9986
mov dword [ebp - 0xa8], 0xdc10
mov dword [ebp - 0x1c], 0
jmp 0x10045adc
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
jge 0x10045af8
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x84]
call fcn.10014c48
mov dword [eax], 0xfffffffb
jmp 0x10045ad5
push 1
lea ecx, [ebp - 0x84]
call fcn.10014c48
cmp dword [eax], 1
jle 0x10045b13
mov dword [ebp - 0x64], 1
jmp 0x10045b17
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x84]
call fcn.10014c48
add esi, dword [eax]
je 0x10045bda
mov dword [ebp - 0x88], 0xbafc
or dword [ebp - 0xa4], 0xffffffff
or dword [ebp - 0xa0], 0xffffffff
or dword [ebp - 0x9c], 0xffffffff
or dword [ebp - 0x98], 0xffffffff
lea ecx, [ebp - 0x25]
call fcn.1000a0c3
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10014c57
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0xbc]
call fcn.10014c1d
mov byte [ebp - 4], 1
push 1
lea ecx, [ebp - 0x84]
call fcn.10014c48
mov eax, dword [eax]
mov dword [ebp - 0x88], eax
push 2
lea ecx, [ebp - 0x84]
call fcn.10014c48
mov esi, eax
push 3
lea ecx, [ebp - 0xbc]
call fcn.10014c48
mov ecx, dword [esi]
mov dword [eax], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.10014c43
jmp 0x10045cf9
mov dword [ebp - 0x3c], 0x7263b0a6
mov dword [ebp - 0x8c], 0x6a6c65b0
mov dword [ebp - 0x14], 0
jmp 0x10045bfb
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xd
jne 0x10045c1e
mov byte [ebp - 0x17], 0
movzx eax, byte [ebp - 0x17]
test eax, eax
je 0x10045c1c
push 0xb84
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x10045bf4
mov dword [ebp - 0x14], 0x15
jmp 0x10045c2e
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffe2
jle 0x10045cf9
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x90], 0x653e3f36
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], eax
jle 0x10045c5a
mov dword [ebp - 0x54], 1
jmp 0x10045c5e
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x54]
test eax, eax
je 0x10045c78
cmp dword [ebp - 0x3c], 0
je 0x10045c78
mov dword [ebp - 0x5c], 1
jmp 0x10045c7c
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x5c]
je 0x10045c96
cmp dword [ebp - 0x8c], 0
je 0x10045c96
mov dword [ebp - 0x6c], 1
jmp 0x10045c9a
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x6c]
jne 0x10045cb1
mov dword [ebp - 0x68], 1
jmp 0x10045cb5
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x68], eax
je 0x10045cc6
mov dword [ebp - 0x50], 1
jmp 0x10045cca
and dword [ebp - 0x50], 0
push 1
lea ecx, [ebp - 0x84]
call fcn.10014c48
mov ecx, dword [ebp - 0x50]
add ecx, dword [eax]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x10045cf4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x10045c27
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x10045d19
push 0
push 0x19e6
push 0x1e23
push 0
call dword [sym.imp.GDI32.dll_SetPaletteEntries]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.10014c43
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x24], 0xda0e60f9
mov dword [ebp - 0x20], 0
jmp 0x10045d46
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x10045d59
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x78], 0xdd688769
jmp 0x10045d3f
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 2
jmp 0x10045d76
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10045e59
mov dword [ebp - 0x30], 6
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x78]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x78]
cmp eax, dword [ebp - 0x30]
jne 0x10045da6
mov dword [ebp - 0x48], 1
jmp 0x10045daa
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x78]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x78]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ebp + ecx*4 - 0x78]
cmp dword [ebp + eax*4 - 0x78], ecx
jle 0x10045de3
cmp dword [ebp - 0x24], 0
je 0x10045de3
mov dword [ebp - 0x58], 1
jmp 0x10045de7
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x58]
je 0x10045df8
mov dword [ebp - 0x60], 1
jmp 0x10045dfc
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
sub eax, 0xffff
imul eax, eax, 0xfffffffa
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x48], eax
jle 0x10045e1b
mov dword [ebp - 0x4c], 1
jmp 0x10045e1f
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0x57736d0c
jl 0x10045e31
mov dword [ebp - 0x34], 1
jmp 0x10045e35
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0xfffffff6
jbe 0x10045e44
mov dword [ebp - 0x38], 1
jmp 0x10045e48
and dword [ebp - 0x38], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x38]
mov dword [ebp + eax - 0x78], ecx
jmp 0x10045d6f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret