Function at 0x10038dfb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061626
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xac
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1003909e
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
test eax, eax
je 0x1003908b
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x2c], 0x56a
mov dword [ebp - 0x4c], 0x10008a40
cmp dword [ebp - 0x2c], 0x58d
jle 0x10038f94
and dword [ebp - 0x1c], 0
jmp 0x10038f01
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4e4c
jge 0x10038f88
and dword [ebp - 0x20], 0
jmp 0x10038f17
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x6bd6
jge 0x10038f83
and dword [ebp - 0x24], 0
jmp 0x10038f2d
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x58c9
jge 0x10038f81
and dword [ebp - 0x18], 0
jmp 0x10038f43
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x7eac
jge 0x10038f7f
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, cl
cdq
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], edx
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
mov ecx, 0x10607b78
call fcn.10013775
jmp 0x10038f3c
jmp 0x10038f26
jmp 0x10038f10
jmp 0x10038efa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x58], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x28a
jge 0x10038fb7
mov edx, dword [ebp - 0x4c]
mov ecx, 0x10607b78
call fcn.10016475
jmp 0x10038fd3
or dword [ebp - 4], 0xffffffff
jmp 0x10038fdd
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
push 0
mov ecx, dword [ebp - 0x60]
call fcn.10013b14
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
cmp dword [ebp - 0x40], 1
jl 0x1003900c
mov dword [ebp - 0x38], 1
jmp 0x10039010
and dword [ebp - 0x38], 0
push 1
mov ecx, dword [ebp - 0x3c]
call fcn.10013b14
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x68]
mov dword [eax], 0x8c83
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0x8c83
jl 0x10039042
mov dword [ebp - 0x30], 1
jmp 0x10039046
and dword [ebp - 0x30], 0
push 0
mov ecx, dword [ebp - 0x70]
call fcn.10013b14
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
je 0x10039060
mov dword [ebp - 0x34], 1
jmp 0x10039064
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0xdf7dc239
jne 0x10039076
mov dword [ebp - 0x44], 1
jmp 0x1003907a
and dword [ebp - 0x44], 0
push 2
mov ecx, dword [ebp - 0x3c]
call fcn.10013b14
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
jmp 0x1003909c
mov byte [ebp - 0x11], 0
push 0
lea eax, [ebp - 0x11]
push eax
call fcn.1003bd3b
pop ecx
pop ecx
jmp 0x10039114
lea eax, [ebp + 0x30]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax]
test eax, eax
je 0x100390e7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
push 0
mov ecx, dword [ebp - 0x90]
call fcn.10013b14
mov dword [eax], 1
jmp 0x10039114
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
movzx eax, byte [eax]
test eax, eax
je 0x10039114
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret