Function at 0x437dac
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x48c]
sub esp, 0x504
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp + 0x488], eax
mov eax, dword [ebp + 0x494]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ebx
call fcn.0042042d
mov ecx, edi
call fcn.0042f244
test eax, eax
jne 0x437e07
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x488]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047099a
add ebp, 0x48c
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.RICHED20.DLL
mov dword [edi + 0x128], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, edi
call fcn.004347a6
push ebx
push ecx
mov eax, esp
push ebx
push ebx
push ebx
mov dword [eax], ebx
push ecx
mov eax, esp
mov dword [eax], ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
lea ecx, [edi + 8]
call fcn.0040f70b
push ebx
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [edi + 0x90]
push eax
call fcn.0043d374
mov ecx, eax
call fcn.0043d642
test al, al
je 0x437dea
call fcn.0043d374
mov ecx, eax
call fcn.0043d18c
push str.InstallResource.zip
lea ecx, [ebp + 0x40]
call fcn.004018f6
lea eax, [ebp + 0x40]
push eax
call fcn.0043d374
mov ecx, eax
call fcn.0043d741
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
xor eax, eax
push 0x206
mov word [ebp + 0x280], ax
lea eax, [ebp + 0x282]
push ebx
push eax
call fcn.00470920
push 0x208
lea eax, [ebp + 0x280]
push ebx
push eax
call fcn.00470920
add esp, 0x18
call fcn.0043d374
mov ecx, eax
call fcn.0043d157
cmp dword [eax + 0x18], 8
jb 0x437ee0
mov eax, dword [eax + 4]
jmp 0x437ee3
add eax, 4
push str.InstallConfig.xml
push eax
lea eax, [ebp + 0x280]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x280]
push eax
call fcn.00402a9d
mov ecx, eax
call fcn.00402c4e
test eax, eax
je 0x437f14
mov eax, esi
jmp 0x437ded
mov ecx, edi
call fcn.0043489a
lea ecx, [edi + 0x74]
lea eax, [edi + 0x58]
push ecx
push eax
call fcn.0043fe99
mov ecx, eax
call fcn.0043fa4a
lea eax, [edi + 0x58]
push eax
call fcn.0043d374
mov ecx, eax
call fcn.0043d157
push eax
call fcn.004389cc
mov ecx, eax
call fcn.00439159
mov ecx, edi
call fcn.004342e4
lea eax, [ebp - 0x1d]
push eax
mov byte [ebp - 0x1d], bl
call fcn.00403d28
mov ecx, eax
call fcn.00403e24
cmp byte [ebp - 0x1d], bl
je 0x437fc0
xor eax, eax
push 0x206
mov word [ebp + 0x78], ax
lea eax, [ebp + 0x7a]
push ebx
push eax
call fcn.00470920
add esp, 0xc
push 0x104
lea eax, [ebp + 0x78]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [edi + 0xc]
lea eax, [ebp + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp + 0x40]
call fcn.004018f6
push eax
call fcn.00448cc1
mov ecx, eax
call fcn.0044925b
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
lea eax, [ebp - 0x16]
push eax
mov byte [ebp - 0x16], bl
call fcn.00403d28
mov ecx, eax
call fcn.00403de2
cmp byte [ebp - 0x16], bl
jne 0x4380f4
push ebx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], 7
call fcn.00401cdf
lea eax, [ebp + 0x24]
push eax
call fcn.004366db
mov ecx, eax
call fcn.00434697
push str._InstallInfo
lea ecx, [ebp + 0x24]
call fcn.0040197d
push ebx
sub esp, 0x1c
lea eax, [ebp + 0x24]
mov ecx, esp
push eax
call fcn.00401918
mov ecx, edi
call fcn.00436704
push 0x4acb48
lea ecx, [ebp + 0x24]
call fcn.0040bee4
test eax, eax
je 0x438045
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x43803c
lea eax, [ebp + 0x28]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + 0x40]
push eax
call fcn.0044e0dc
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x24]
call fcn.004019a1
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
push str.tp_InstallInfo_tp_
lea ecx, [ebp + 0x24]
call fcn.0040197d
push esi
sub esp, 0x1c
lea eax, [ebp + 0x24]
mov ecx, esp
push eax
call fcn.00401918
mov ecx, edi
call fcn.00436704
push 0x4acb48
lea ecx, [ebp + 0x24]
call fcn.0040bee4
test eax, eax
je 0x4380ea
lea eax, [ebp + 0x5c]
push str.tp_InstallInfo
push eax
call fcn.0044e0dc
pop ecx
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.00410e7f
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x24]
call fcn.004019a1
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x4380e1
lea eax, [ebp + 0x28]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00401a58
call fcn.0043d374
mov ecx, eax
call fcn.0043ec0e
call fcn.0043d374
mov ecx, eax
call fcn.0043e05d
call fcn.0042f20d
mov ecx, eax
call fcn.0042f0d9
lea ecx, [ebp - 0x4c]
call fcn.004361f6
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x24]
mov ecx, edi
call fcn.004362b7
lea eax, [ebp - 0x17]
push eax
mov byte [ebp - 0x17], bl
call fcn.00403d28
mov ecx, eax
call fcn.00403e24
push 0x4ad964
lea ecx, [ebp + 0x5c]
call fcn.004018f6
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], esi
call fcn.0043f3dc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00433aa3
mov ecx, eax
call fcn.0044d002
test al, al
je 0x4381c5
push str.Silent
lea ecx, [ebp + 0x40]
call fcn.004018f6
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 3
call fcn.0043f3dc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00433aa3
mov ecx, eax
call fcn.0044d002
mov byte [ebp - 0x15], 1
test al, al
jne 0x4381c8
mov byte [ebp - 0x15], bl
test byte [ebp - 0x1c], 2
je 0x4381dc
and dword [ebp - 0x1c], 0xfffffffd
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
test byte [ebp - 0x1c], 1
je 0x4381f0
and dword [ebp - 0x1c], 0xfffffffe
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
cmp byte [ebp - 0x15], bl
je 0x4383b2
cmp byte [ebp - 0x17], bl
je 0x4383cd
cmp byte [ebp - 0x16], bl
je 0x4383cd
push ebx
lea ecx, [ebp + 0x5c]
mov dword [edi + 0x164], esi
mov dword [ebp + 0x74], 7
call fcn.00401cdf
lea eax, [ebp + 0x5c]
push eax
call fcn.00403053
pop ecx
test eax, eax
je 0x438350
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp + 4], 7
call fcn.00401cdf
push ebx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x58], 7
call fcn.00401cdf
push ebx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], 7
call fcn.00401cdf
push 0x4a1034
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00410e7f
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.004019a1
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.00401a58
push str.BHOBHOInstall.exe
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00410e7f
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x40]
call fcn.004019a1
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.00401a58
push 0x49f84c
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00410e7f
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x24]
call fcn.004019a1
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.00401a58
cmp dword [ebp + 4], 8
mov eax, dword [ebp - 0x10]
jae 0x4382f0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43831f
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x438307
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43831f
mov dword [edi + 0x144], esi
push 0x25e
jmp 0x438324
push 0x25f
call fcn.0043fe99
mov ecx, eax
call fcn.00440139
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp - 0x14]
call fcn.00401a58
jmp 0x438361
push 0x25f
call fcn.0043fe99
mov ecx, eax
call fcn.00440139
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], 7
call fcn.00401cdf
lea eax, [ebp + 8]
push eax
call fcn.00403119
pop ecx
test eax, eax
je 0x43839c
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x43838b
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43839c
mov dword [edi + 0x160], esi
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
jmp 0x4383cd
cmp byte [ebp - 0x17], bl
je 0x4383cd
cmp byte [ebp - 0x16], bl
je 0x4383cd
push 0x25f
call fcn.0043fe99
mov ecx, eax
call fcn.00440139
call fcn.0040c287
mov ecx, eax
call fcn.0040c354
test eax, eax
jne 0x438412
lea eax, [ebp - 0x70]
push eax
call fcn.0040c287
mov ecx, eax
call fcn.0040c388
cmp dword [eax + 0x18], 8
jb 0x4383f8
mov eax, dword [eax + 4]
jmp 0x4383fb
add eax, 4
push eax
call fcn.0040c287
mov ecx, eax
call fcn.0040c300
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.00401a58
push str.InstallPath
lea ecx, [ebp + 0x40]
call fcn.004018f6
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.0043f3dc
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00433aa3
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0044d002
neg al
sbb al, al
push ebx
inc al
push esi
lea ecx, [ebp + 0x40]
mov byte [ebp - 0x15], al
call fcn.00401a58
cmp byte [ebp - 0x15], bl
je 0x43848f
push str.InstallPath
lea ecx, [ebp + 0x40]
call fcn.004018f6
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00436210
push eax
lea ecx, [ebp + 0x5c]
call fcn.00401918
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
jmp 0x4384aa
push ebx
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x74], 7
call fcn.00401cdf
lea eax, [ebp + 0x5c]
push eax
mov ecx, edi
call fcn.00434697
cmp dword [ebp + 0x74], 8
mov eax, dword [ebp + 0x60]
jae 0x4384b6
lea eax, [ebp + 0x60]
push eax
call fcn.00403d28
mov ecx, eax
call fcn.00403d69
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
push str.LiveUpdate
lea ecx, [ebp + 0x40]
call fcn.004018f6
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.0043f3dc
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00433aa3
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0044d002
neg al
sbb al, al
push ebx
inc al
push esi
lea ecx, [ebp + 0x40]
mov byte [ebp - 0x15], al
call fcn.00401a58
xor eax, eax
cmp byte [ebp - 0x15], bl
mov byte [ebp - 0x2c], 1
setne al
mov dword [edi + 0x48], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403d28
mov ecx, eax
call fcn.00403de2
cmp dword [edi + 0xa8], 8
jb 0x438547
mov eax, dword [edi + 0x94]
jmp 0x43854d
lea eax, [edi + 0x94]
push dword [ebp - 0x2c]
push eax
call fcn.0040d45c
mov ecx, eax
call fcn.0040d487
push 0x4ad964
lea ecx, [ebp + 0x5c]
call fcn.004018f6
or dword [ebp - 0x1c], 4
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.0043f3dc
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00433aa3
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0044d002
test al, al
je 0x4385de
push str.Silent
lea ecx, [ebp + 0x40]
call fcn.004018f6
or dword [ebp - 0x1c], 8
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.0043f3dc
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00433aa3
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0044d002
mov byte [ebp - 0x15], bl
test al, al
jne 0x4385e2
mov byte [ebp - 0x15], 1
test byte [ebp - 0x1c], 8
je 0x4385f6
and dword [ebp - 0x1c], 0xfffffff7
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
test byte [ebp - 0x1c], 4
je 0x438606
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
cmp byte [ebp - 0x15], bl
je 0x43864c
cmp byte [ebp - 0x2c], bl
je 0x438617
push 0x2de
jmp 0x43861c
push 0x2da
call fcn.0043fe99
mov ecx, eax
call fcn.0044073e
push edi
mov dword [edi + 0x44], esi
call fcn.0040d45c
mov ecx, eax
call fcn.0040d4d0
push edi
mov ecx, edi
call fcn.00435c27
mov ecx, edi
call fcn.00437325
jmp 0x4387cd
push 0xffffffffffffffff
push ebx
push esi
call fcn.0043fe99
mov ecx, eax
call fcn.0044025e
mov ecx, 0x4ca978
mov dword [edi + 0x44], ebx
call fcn.00417c78
cmp byte [ebp - 0x2c], bl
je 0x438749
push 0x4acb48
lea ecx, [ebp + 0x40]
call fcn.004018f6
lea eax, [ebp + 0x40]
push eax
call fcn.00403d28
mov ecx, eax
call fcn.00403d7a
push 0x4acb48
lea ecx, [ebp + 0x5c]
call fcn.004018f6
lea eax, [ebp + 0x5c]
push eax
call fcn.00402a9d
mov ecx, eax
call fcn.00402d11
cmp dword [ebp + 0x70], ebx
jne 0x4386db
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
lea ecx, [ebp - 0x4c]
call fcn.00435af0
push dword [ebp - 0x4c]
call fcn.00470471
pop ecx
jmp 0x437f0d
push str.TurnPlay_online.zip
lea ecx, [ebp + 8]
call fcn.004018f6
push 0x230
call fcn.004709c4
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x438720
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x90]
push eax
lea eax, [ebp + 0x5c]
push eax
call fcn.0043d374
mov ecx, eax
call fcn.0043d157
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00449942
jmp 0x438722
xor eax, eax
push ebx
push ebx
mov ecx, eax
call fcn.00435a8c
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp + 0x5c]
call fcn.00401a58
push ebx
push esi
lea ecx, [ebp + 0x40]
call fcn.00401a58
mov esi, 0x1388
push esi
call fcn.004389cc
mov ecx, eax
call fcn.0043886a
cmp byte [ebp - 0x17], bl
je 0x438790
cmp byte [ebp - 0x2c], bl
je 0x438790
call fcn.00448cc1
mov ecx, eax
call fcn.00448a70
cmp eax, ebx
je 0x438790
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x438790
call fcn.00448cc1
mov ecx, eax
call fcn.00448a46
call fcn.0043d374
mov ecx, eax
call fcn.0043d157
cmp dword [eax + 0x18], 8
jb 0x4387a7
mov eax, dword [eax + 4]
jmp 0x4387aa
add eax, 4
push ebx
push 0x2000000
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
call fcn.00435e9e
xor esi, esi
jmp 0x4386c5