Function at 0x40b7e0
Capabilities:
Copy file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44020d
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x454688]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], ecx
lea ecx, [ebp - 0x240]
call fcn.004050e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.004050e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.004050e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.004050e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004050e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.004050e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.004050e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
call fcn.004050e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x234]
call fcn.004050e0
mov byte [ebp - 4], 8
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0x4473dc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x40b8be
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004051c0
push 0
push 0x4473e8
lea ecx, [ebp - 0x18]
call fcn.004052c0
test eax, eax
jle 0x40b929
push 0
push 0x4473ec
lea ecx, [ebp - 0x18]
call fcn.004052c0
sub eax, 1
push eax
lea edx, [ebp - 0x244]
push edx
lea ecx, [ebp - 0x18]
call fcn.004053d0
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004051a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x244]
call fcn.00401130
jmp 0x40b935
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.004051a0
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax + 0x80]
call fcn.00406800
push eax
lea ecx, [ebp - 0x20]
call fcn.004051c0
push 0x4473f0
lea ecx, [ebp - 0x20]
call fcn.00405200
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004051a0
push str._setup.chm
lea ecx, [ebp - 0x238]
call fcn.00405200
push 0
lea ecx, [ebp - 0x238]
call fcn.004054b0
push eax
lea ecx, [ebp - 0x20]
call fcn.004054b0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.mk:_MSITStore:
lea ecx, [ebp - 0x23c]
call fcn.004051c0
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x23c]
call fcn.004051e0
push str._::_arcgis_explorer__choosing_the_installation_type.htm
lea ecx, [ebp - 0x23c]
call fcn.00405200
push str.hh.exe
lea ecx, [ebp - 0x230]
call fcn.004051c0
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x248], esp
lea eax, [ebp - 0x23c]
push eax
call fcn.00405100
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x24c], esp
lea edx, [ebp - 0x230]
push edx
call fcn.00405100
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax + 0x80]
call fcn.00407180
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x234]
call fcn.00401130
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
call fcn.00401130
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00401130
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00401130
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00401130
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.00401130
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00401130
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.00401130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00401130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004296c6
mov esp, ebp
pop ebp
ret