Function at 0x447790
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491138
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403a40
xor bl, bl
mov byte [ebp - 0xd], bl
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x447ad8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x447ae2
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
cmp dword [eax - 0xc], ecx
jle 0x447a81
nop word [eax + eax]
test ecx, ecx
js 0x447aec
cmp ecx, dword [eax - 0xc]
jg 0x447aec
movzx ecx, word [eax + ecx*2]
mov eax, ecx
sub eax, 0x25
je 0x447963
sub eax, 0x36
je 0x447951
sub eax, 2
je 0x447910
mov eax, ecx
test bl, bl
je 0x4478ad
mov dword [ebp - 0x28], eax
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x24], eax
lea ebx, [eax + 1]
test ebx, ebx
js 0x447aec
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x447889
push ebx
lea ecx, [ebp - 0x14]
call fcn.00402210
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov word [esi + eax*2], cx
cmp ebx, dword [esi - 8]
jg 0x447aec
mov dword [esi - 0xc], ebx
xor eax, eax
mov word [esi + ebx*2], ax
mov bl, byte [ebp - 0xd]
jmp 0x447a6c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x28], eax
lea ebx, [eax + 1]
test ebx, ebx
js 0x447aec
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x4478e5
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.00402210
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov word [edx + eax*2], cx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp ebx, dword [eax - 8]
jg 0x447aec
mov dword [eax - 0xc], ebx
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax + ebx*2], cx
mov bl, byte [ebp - 0xd]
jmp 0x447a6c
lea eax, [ebp - 0x1c]
xor bl, bl
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0xd], bl
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call fcn.00430b40
mov edi, dword [ebp - 0x1c]
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jg 0x447ad3
mov eax, dword [edi - 0xc]
test eax, eax
je 0x447ad3
mov ecx, dword [ebp + 0xc]
push eax
push edi
call fcn.00402280
jmp 0x447a6c
mov bl, 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], bl
call fcn.00403a40
jmp 0x447a69
test bl, bl
je 0x447a5c
push 0x208
mov ebx, 0x104
call fcn.0046ce3d
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4479db
cmp eax, ebx
jb 0x4479fd
add ebx, ebx
mov byte [ebp - 4], 3
push 2
push dword [ebp - 0x18]
call fcn.0046ce54
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046ce3d
add esp, 0xc
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x447991
mov byte [ebp - 4], 3
push 2
push dword [ebp - 0x18]
call fcn.0046ce54
add esp, 8
mov dword [ebp - 0x18], 0
mov ebx, 0xcb
jmp 0x447a83
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x447a08
xor eax, eax
jmp 0x447a1f
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x447a10
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00403ae0
mov byte [ebp - 4], 3
push 2
push ebx
call fcn.0046ce54
mov edi, dword [ebp - 0x1c]
add esp, 8
xor ebx, ebx
mov dword [ebp - 0x18], 0
mov eax, dword [edi - 0xc]
test eax, eax
je 0x447a83
mov ecx, dword [ebp + 0xc]
push eax
push edi
call fcn.00402280
xor bl, bl
mov byte [ebp - 0xd], bl
jmp 0x447a6c
lea ecx, [ebp - 0x14]
call fcn.00403a40
mov bl, 1
mov byte [ebp - 0xd], bl
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
cmp ecx, dword [eax - 0xc]
jl 0x447820
xor ebx, ebx
mov byte [ebp - 4], 1
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x447aa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x447abd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 0x24]
jmp 0x447a83
push 0x80004005
call fcn.004023a0
push 0x80004005
call fcn.004023a0
push 0x80070057
call fcn.004023a0
int3