Function at 0x409530
Capabilities:
Hide graphical window
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x45bcee
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x4751f0]
xor eax, esp
mov dword [esp + 0x50c], eax
push ebx
push esi
push edi
mov eax, dword [0x4751f0]
xor eax, esp
push eax
lea eax, [esp + 0x520]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x514]
add eax, dword [esi + 0x510]
xor ecx, ecx
ja 0x40967a
jb 0x40958d
cmp eax, 0x500000
ja 0x40967a
lea eax, [esp + 0x34]
push 0xf
push eax
call fcn.00419370
lea ecx, [esp + 0x20]
push 0x19
push ecx
mov dword [esp + 0x538], 0
call fcn.00419370
add esp, 0x10
mov eax, dword [esp + 0x38]
mov ebx, 8
mov byte [esp + 0x528], 1
push 0x65
cmp dword [esp + 0x50], ebx
jae 0x4095d0
lea eax, [esp + 0x3c]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x9c], esp
push 0xffffffffffffffff
push eax
call fcn.0041a58e
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x5b0], 2
cmp dword [esp + 0xb8], ebx
jae 0x409606
lea eax, [esp + 0xa4]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x11c], esp
push 0xffffffffffffffff
push eax
call fcn.0041a58e
mov edx, dword [esi + 4]
push edx
mov byte [esp + 0x638], 1
call fcn.004012f0
add esp, 0x110
cmp dword [esp + 0x30], ebx
jb 0x409647
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044475c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
cmp dword [esp + 0x4c], ebx
jb 0x409b89
mov edx, dword [esp + 0x38]
push edx
call fcn.0044475c
add esp, 4
jmp 0x409b89
mov ecx, dword [esi + 0x4ec]
call fcn.0041fd7d
test al, al
je 0x4096a1
cmp byte [0x4765e9], 1
jne 0x4096a1
push 0x400
call fcn.0040d660
mov byte [0x4765e8], al
cmp dword [esi + 0x504], 0
jne 0x409770
mov eax, 1
push 0x208
mov dword [0x4742ec], eax
mov dword [0x4742f0], eax
mov dword [0x4742f4], eax
lea eax, [esp + 0x318]
push 0
push eax
mov dword [0x4766e0], 0
call fcn.004449b0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x318]
push ecx
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.ADSafe3
lea edx, [esp + 0x318]
push edx
mov eax, edx
push 0x45f83c
push eax
call fcn.00401040
lea eax, [esp + 0x324]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409722
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x318]
push ecx
mov ecx, 0x47448c
call fcn.00403400
mov edx, dword [esi + 4]
push 0x10010
push 0x1f4
push edx
call dword [sym.imp.USER32.dll_AnimateWindow]
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00408720
jmp 0x409b89
mov ecx, dword [esi + 0x4d8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x88]
push eax
call edx
push 0x208
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x534], 3
call fcn.004449b0
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0xc
push 0x208
lea ecx, [esp + 0x110]
push ecx
push str.PROGRAMFILES
call edi
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x8c]
call fcn.0041a5d2
test al, al
jne 0x4098f5
push 0x208
lea eax, [esp + 0x110]
push 0
push eax
call fcn.004449b0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x110]
push ecx
push str.WINDIR
call edi
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x8c]
call fcn.0041a5d2
test al, al
jne 0x4098f5
push 0x208
lea eax, [esp + 0x110]
push 0
push eax
call fcn.004449b0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x110]
push ecx
push str.SYSTEMDRIVE
call edi
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x8c]
call fcn.0041a5d2
test al, al
jne 0x4098f5
push 0x208
lea eax, [esp + 0x110]
push 0
push eax
call fcn.004449b0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x110]
push ecx
push str.HOMEPATH
call edi
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x8c]
call fcn.0041a5d2
test al, al
jne 0x4098f5
push 0x208
lea eax, [esp + 0x110]
push 0
push eax
call fcn.004449b0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x110]
push ecx
push str.COMMONPROGRAMFILES
call edi
lea edx, [esp + 0x10c]
push edx
lea ecx, [esp + 0x8c]
call fcn.0041a5d2
test al, al
je 0x4099ab
lea eax, [esp + 0x18]
push 0xf
push eax
call fcn.00419370
lea ecx, [esp + 0x3c]
push 0x10
push ecx
mov byte [esp + 0x538], 4
call fcn.00419370
add esp, 0x10
mov eax, dword [esp + 0x1c]
mov ebx, 8
mov byte [esp + 0x528], 5
push 0x65
cmp dword [esp + 0x34], ebx
jae 0x409935
lea eax, [esp + 0x20]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push eax
call fcn.0041a58e
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x5b0], 6
cmp dword [esp + 0xd4], ebx
jae 0x40996b
lea eax, [esp + 0xc0]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x120], esp
push 0xffffffffffffffff
push eax
call fcn.0041a58e
mov edx, dword [esi + 4]
push edx
mov byte [esp + 0x638], 5
call fcn.004012f0
add esp, 0x110
lea ecx, [esp + 0x34]
call fcn.00402300
lea ecx, [esp + 0x18]
jmp 0x409b6d
push 0
push 0x2f
lea ecx, [esp + 0x90]
call fcn.0041a42b
test eax, eax
jge 0x409abb
lea ecx, [esp + 0x88]
call fcn.0041a22e
dec eax
push eax
lea ecx, [esp + 0x8c]
call fcn.0041a370
mov ecx, 0x5c
cmp cx, ax
je 0x409abb
lea ecx, [esp + 0x88]
call fcn.0041a237
push eax
call fcn.004189e0
add esp, 4
test eax, eax
je 0x409abb
lea ecx, [esp + 0x88]
call fcn.0041a237
push eax
mov ecx, 0x47448c
call fcn.004041c0
push 0x208
lea edx, [esp + 0x318]
push 0
push edx
call fcn.004449b0
mov eax, dword [0x474490]
add esp, 0xc
cmp dword [0x4744a4], 8
jae 0x409a49
mov eax, 0x474490
push eax
lea eax, [esp + 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x312], 0x5c
lea eax, [esp + eax*2 + 0x312]
jne 0x409a7d
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x314]
push eax
mov ecx, 0x47448c
call fcn.004041c0
mov ecx, dword [esi + 4]
push 0x10010
push 0x1f4
push ecx
call dword [sym.imp.USER32.dll_AnimateWindow]
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00408720
jmp 0x409b72
lea eax, [esp + 0x6c]
push 0xf
push eax
call fcn.00419370
lea ecx, [esp + 0x58]
push 0x11
push ecx
mov byte [esp + 0x538], 7
call fcn.00419370
add esp, 0x10
mov eax, dword [esp + 0x70]
mov ebx, 8
mov byte [esp + 0x528], bl
push 0x65
cmp dword [esp + 0x88], ebx
jae 0x409afd
lea eax, [esp + 0x74]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x98], esp
push 0xffffffffffffffff
push eax
call fcn.0041a58e
mov eax, dword [esp + 0xdc]
mov byte [esp + 0x5b0], 9
cmp dword [esp + 0xf0], ebx
jae 0x409b33
lea eax, [esp + 0xdc]
sub esp, 0x84
mov ecx, esp
mov dword [esp + 0x120], esp
push 0xffffffffffffffff
push eax
call fcn.0041a58e
mov edx, dword [esi + 4]
push edx
mov byte [esp + 0x638], bl
call fcn.004012f0
add esp, 0x110
lea ecx, [esp + 0x50]
call fcn.00402300
lea ecx, [esp + 0x6c]
call fcn.00402300
lea ecx, [esp + 0x88]
mov dword [esp + 0x528], 0xffffffff
call fcn.0041a21d
mov ecx, dword [esp + 0x520]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50c]
xor ecx, esp
call fcn.00444b03
add esp, 0x51c
ret