Function at 0x486250
Capabilities:
Check if file exists
Get file attributes
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a47fa
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4c9144]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push edi
mov eax, dword [0x4c9144]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [eax], 1
call fcn.00469860
cmp eax, 0xffffffff
jne 0x4862d6
cmp byte [esi + 0x152], 0
je 0x4862c4
cmp byte [esi + 0x151], 0
jne 0x4862c4
mov byte [esi + 0x152], 0
mov byte [esi + 0x118], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push 1
push 2
mov ecx, esi
call edx
jmp 0x4867a8
push ecx
mov dword [esp + 0x10], esp
push esp
mov ecx, str.ChkSponsorAccept
call fcn.0041be20
lea ebx, [esp + 0x10]
mov edi, esi
call fcn.00471aa0
mov eax, dword [eax]
test eax, eax
je 0x486773
push ecx
mov dword [esp + 0x10], esp
push esp
mov ecx, str.EdtLicense
call fcn.0041be20
lea ebx, [esp + 0x10]
call fcn.00471aa0
cmp dword [eax], 0
je 0x486773
mov edi, dword [esi + 0x3bc]
push 0x7f02
xor ebx, ebx
push ebx
mov byte [esp + 0x38], 1
mov dword [esp + 0x3c], edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f02
push ebx
mov dword [edi + 0xfc], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc], bl
mov eax, dword [esp + 0xc]
push eax
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
mov dword [esp + 0x24], ebx
call fcn.0041c410
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 1
mov eax, dword [0x4d2910]
push ecx
mov dword [esp + 0x10], ebx
push str.Files
lea ebx, [esp + 0x14]
mov edx, str.File_SpoPackage
call fcn.0041dae0
test al, al
je 0x48645f
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x48645f
lea edx, [esp + 0xc]
push edx
call fcn.0041b8b0
mov byte [esp + 0xd0], 2
mov eax, dword [0x4d2da8]
push eax
push str._sSpData.dat
lea edi, [esp + 0x14]
call fcn.00417250
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
push ebx
push ecx
call fcn.004179d0
add esp, 0x10
test al, al
je 0x486446
mov ecx, dword [esp + 0xc]
mov al, 0x70
lea edx, [esp + 0xb4]
push edx
mov byte [esp + 0xba], al
mov eax, dword [0x4d2da8]
push eax
push ecx
xor edx, edx
mov ecx, str._Sponsor_Agreement.rtf_
mov word [esp + 0xc0], 0x7073
mov dword [esp + 0xc3], 0x616b6361
mov word [esp + 0xc7], 0x6567
mov byte [esp + 0xc9], 0
call fcn.0041c550
add esp, 0xc
mov bl, 1
test al, al
jne 0x48644a
mov bl, byte [esp + 0x13]
lea eax, [esp + 0xc]
mov byte [esp + 0xd0], 1
call fcn.0041b950
test bl, bl
jne 0x48648d
mov ecx, esi
call fcn.004732d0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea eax, [esp + 0x1c]
mov byte [esp + 0xd0], 0
call fcn.00440440
lea eax, [esp + 0x30]
call fcn.004826d0
jmp 0x4867a8
lea edx, [esp + 0x14]
push edx
call fcn.0041b8b0
push str.LanguageId
push str.FileInfo
lea eax, [esp + 0x14]
mov byte [esp + 0xd8], 3
mov ebx, dword [0x4d2918]
push eax
call fcn.0041b1b0
mov byte [esp + 0xd0], 4
mov eax, dword [eax]
mov ecx, dword [0x4d2da8]
push eax
push ecx
push str._sSponsor_Agreement___s_.rtf
lea edi, [esp + 0x20]
call fcn.00417250
mov byte [esp + 0xdc], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x486504
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48652c
mov edx, dword [0x4d2da8]
push edx
push str._sSponsor_Agreement.rtf
lea edi, [esp + 0x1c]
call fcn.00417250
add esp, 8
xor eax, eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
push 0x80
push 3
lea eax, [esp + 0xbc]
mov byte [esp + 0xd8], 5
mov edx, dword [esp + 0x1c]
push eax
mov eax, 3
mov ecx, SysReAllocString
call fcn.00418030
test eax, eax
js 0x48660a
push ecx
mov dword [esp + 0x10], esp
push esp
mov ecx, str.EdtLicense
call fcn.0041be20
lea ebx, [esp + 0x10]
mov edi, esi
call fcn.00471aa0
push 0x74
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.0048bb40
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
push 0
push 0x43a
push edi
mov dword [esp + 0x4c], 0x74
mov dword [esp + 0x50], 0xe0000000
call ebx
lea ecx, [esp + 0x24]
push ecx
xor eax, eax
push 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xbc]
push 0x449
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 0x4867d0
call ebx
lea edx, [esp + 0x3c]
push edx
push 4
push 0x444
push edi
mov dword [esp + 0x50], 0xe0000000
call ebx
mov eax, dword [esi + 0x388]
mov ebx, dword [0x4d2918]
push str.LblText1
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041b1b0
mov edx, str.__CiD_
lea eax, [esp + 0x18]
mov byte [esp + 0xd0], 6
call fcn.00418b00
push ecx
mov dword [esp + 0x10], esp
push esp
mov ecx, str.Text1
call fcn.0041be20
lea ebx, [esp + 0x10]
mov edi, esi
call fcn.00471aa0
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [esi + 0x3c0], 0
push ecx
mov dword [esp + 0x10], esp
mov ecx, str.ChkSponsorAccept
push esp
jne 0x4866b6
call fcn.0041be20
lea ebx, [esp + 0x10]
call fcn.00471aa0
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ecx
mov dword [esp + 0x10], esp
push esp
mov ecx, 0x4b2864
call fcn.0041be20
lea ebx, [esp + 0x10]
call fcn.00471aa0
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4866f3
call fcn.0041be20
lea ebx, [esp + 0x10]
mov edi, esi
call fcn.00471aa0
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
push ecx
mov dword [esp + 0x10], esp
push esp
mov ecx, 0x4b2864
call fcn.0041be20
lea ebx, [esp + 0x3c]
call fcn.00471aa0
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov byte [esp + 0xd0], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48671b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x48672d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xd0], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486755
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x1c]
mov byte [esp + 0xd0], 0
call fcn.00440440
lea eax, [esp + 0x30]
call fcn.004826d0
xor eax, eax
jmp 0x4867ab
cmp byte [esi + 0x152], 0
je 0x486793
cmp byte [esi + 0x151], 0
jne 0x486793
mov byte [esi + 0x152], 0
mov byte [esi + 0x118], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push 1
push 2
mov ecx, esi
call eax
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
or eax, 0xffffffff
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00487efe
mov esp, ebp
pop ebp
ret 4