Function at 0x408700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5843fd
mov eax, dword fs:[0]
push eax
sub esp, 0x6e0
mov eax, dword [0x5eb6e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xb
lea ecx, [ebp - 0x448]
push ecx
mov ecx, 0x5f38c8
mov dword [ebp - 0x43c], eax
call fcn.00432310
push 0x10
push str.softwareinfo.ini
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 0
call fcn.00405900
lea edi, [ebp - 0x59c]
call fcn.00401eb0
push 0x5f399c
mov ebx, edi
mov byte [ebp - 4], 1
call fcn.00401000
mov edx, dword [0x5f3a98]
mov edi, dword [0x5f3a9c]
lea esi, [ebp - 0x644]
mov dword [ebp - 0x488], edx
call fcn.004460c0
push 0
push ecx
mov bl, 2
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x430], esp
push 0x5b25a8
call fcn.00403320
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x43c]
push edi
push 0
test eax, eax
je 0x4087c9
mov eax, dword [eax + 0x20]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x458], esp
push eax
call fcn.00406020
lea ecx, [ebp - 0x59c]
push ecx
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x434], esp
push str.Oshirase
call fcn.00403320
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x448]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x444], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0x644]
mov byte [ebp - 4], bl
call fcn.00405db0
lea esi, [ebp - 0x6ec]
call fcn.004460c0
xor ebx, ebx
push ebx
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x430], esp
push 0x5b25a8
call fcn.00403320
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x43c]
push edi
push ebx
cmp eax, ebx
jne 0x408862
xor eax, eax
jmp 0x408865
mov eax, dword [eax + 0x20]
push eax
push ecx
mov edx, esp
mov dword [ebp - 0x458], esp
push edx
call fcn.00406020
lea eax, [ebp - 0x59c]
push eax
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x434], esp
push str.InstallNavigator
call fcn.00403320
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x448]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x444], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0x6ec]
mov byte [ebp - 4], 6
call fcn.00405db0
lea ecx, [ebp - 0x45c]
push ecx
mov ecx, esi
call fcn.00447de0
lea esi, [ebp - 0x45c]
mov byte [ebp - 4], 0xa
call fcn.00414b80
lea esi, [ebp - 0x458]
lea edi, [ebp - 0x6ec]
call fcn.00447f50
push eax
lea edx, [ebp - 0x45c]
push edx
lea eax, [ebp - 0x47c]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040ab90
add esp, 0xc
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x458]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408935
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00453e50
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40894f
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0xe
call fcn.00453e50
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40897f
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x454], eax
lea ecx, [ebp - 0x430]
push ecx
lea edx, [ebp - 0x454]
push edx
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 0xf
call fcn.00446240
lea esi, [ebp - 0x460]
lea edi, [ebp - 0x644]
call fcn.00447ff0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x460]
cmp dword [eax - 0xc], ebx
jne 0x408a6b
mov esi, dword [ebp - 0x454]
push ebx
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x430], esp
mov edi, esp
push esi
call fcn.00403760
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x11
mov edi, dword [ebp - 0x444]
add edi, 0xfffffff0
mov dword [ebp - 0x434], esp
mov ebx, esp
push edi
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov byte [ebp - 4], 0x10
call fcn.00436af0
test eax, eax
je 0x409131
push 0
push ecx
mov dword [ebp - 0x430], esp
mov ebx, esp
push esi
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x434], esp
mov esi, esp
push edi
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 0x10
call fcn.00411bf0
add esp, 0xc
jmp 0x409131
lea ecx, [ebp - 0x514]
call fcn.00455ee7
mov dword [ebp - method.CWnd.virtual_0], vtable.CDownloadCore.0
mov dword [ebp - 0x4b4], ebx
mov dword [ebp - 0x4c0], ebx
mov dword [ebp - 0x4bc], ebx
mov dword [ebp - 0x4b0], ebx
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x47c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x430], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x514]
call fcn.00415330
cmp eax, ebx
je 0x409101
xor eax, eax
push 0x418
lea ecx, [ebp - 0x42c]
push ebx
push ecx
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], eax
call fcn.00553a60
mov eax, dword [ebp - 0x460]
add eax, 0xfffffff0
add esp, 0xc
push eax
mov dword [ebp - 0x424], 0x3d
call fcn.00403760
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x450], edi
mov byte [ebp - 4], 0x14
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x408b48
push ebx
lea ecx, [ebp - 0x450]
call fcn.00403620
mov edi, dword [ebp - 0x450]
lea eax, [ebp - 0x478]
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp - 0x4b4]
lea edx, [ebp - 0x42c]
or esi, 0xffffffff
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x474], 1
mov dword [ebp - 0x478], str.WorldWide
mov dword [ebp - 0x470], edx
mov dword [ebp - 0x4c0], 8
cmp eax, ebx
je 0x40929f
push str.Download
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40929f
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [ebp - 0x4c0]
push ecx
push edx
call eax
mov esi, eax
mov dword [ebp - 0x4b8], esi
cmp esi, ebx
jne 0x40929f
call fcn.00453e50
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408be9
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x468], eax
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x420]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x430], esp
push str.NewVersion
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x438], esp
push str.Common
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x414]
mov ecx, esp
mov dword [ebp - 0x464], esp
push edx
call fcn.00403320
lea eax, [ebp - 0x440]
push eax
mov byte [ebp - 4], 0x15
call fcn.00413730
add esp, 0x10
mov bl, 0x18
mov byte [ebp - 4], bl
mov ecx, dword [eax]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x464], esp
push str.CurrentVersion
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x19
mov ecx, esp
mov dword [ebp - 0x430], esp
push str.Common
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x1a
lea edx, [ebp - 0x414]
mov ecx, esp
mov dword [ebp - 0x438], esp
push edx
call fcn.00403320
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], bl
call fcn.00413730
add esp, 0x10
mov byte [ebp - 4], 0x1b
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x468]
push str.Inbox_Oshirase_version_checked._Inboxed_is___s__Server_ver_is___s__bDownload_is___d__r_n
push edx
call fcn.00404130
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
cmp dword [0x5f3994], esi
jne 0x408d32
call fcn.004117a0
test eax, eax
je 0x408d63
mov ecx, dword [ebp - 0x468]
mov edi, dword [ebp - 0x43c]
push 0x40004
push str.Doanload__
push ecx
mov ecx, edi
call fcn.00456173
xor edx, edx
cmp eax, 6
mov eax, dword [ebp - 0x470]
sete dl
mov dword [eax + 0xc], edx
jmp 0x408d69
mov edi, dword [ebp - 0x43c]
push 0xd
lea ecx, [ebp - 0x43c]
push ecx
mov ecx, 0x5f38c8
call fcn.00432310
push str.DNOSHIRASE_
push eax
lea edx, [ebp - 0x44c]
push edx
mov byte [ebp - 4], 0x1c
call fcn.004024e0
add esp, 0xc
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x44c]
cmp dword [eax - 0xc], esi
je 0x408de5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408de5
test al, 0x10
je 0x408de5
lea ecx, [ebp - 0x44c]
push ecx
call fcn.004140a0
add esp, 4
mov edx, dword [ebp - 0x470]
cmp dword [edx + 0xc], esi
je 0x40908d
lea ecx, [ebp - 0x430]
call fcn.004038b0
xor eax, eax
mov bl, 0x1f
mov byte [ebp - 4], bl
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x48c], eax
lea eax, [ebp - 0x42c]
push esi
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x49c], 1
mov dword [ebp - 0x4a0], str.WorldWide
mov dword [ebp - 0x498], eax
call fcn.00403670
mov dword [ebp - 0x490], esi
mov dword [ebp - 0x48c], esi
lea ecx, [ebp - 0x4a0]
lea esi, [ebp - 0x514]
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x4c0], 9
mov dword [ebp - 0x4bc], ecx
call fcn.004153c0
test eax, eax
jne 0x409054
mov edx, dword [ebp - 0x470]
cmp dword [edx + 0xc], eax
je 0x409067
push ecx
mov ecx, esp
mov dword [ebp - 0x464], esp
push str.Installer
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x20
mov ecx, esp
mov dword [ebp - 0x434], esp
push str.Common
call fcn.00403320
mov byte [ebp - 4], 0x21
mov eax, dword [ebp - 0x470]
push ecx
add eax, 0x18
mov ecx, esp
mov dword [ebp - 0x440], esp
push eax
call fcn.00403320
lea ecx, [ebp - 0x438]
push ecx
mov byte [ebp - 4], bl
call fcn.00413730
add esp, 0x10
mov bl, 0x22
lea eax, [ebp - 0x438]
mov byte [ebp - 4], bl
call fcn.00413db0
test eax, eax
je 0x409047
mov edx, dword [ebp - 0x438]
push edx
push str.Oshirase_Download_Success._r_n_tRyoga__s__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 4
mov ecx, esp
mov dword [ebp - 0x464], esp
push str.SilentInstallEx
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x23
mov ecx, esp
mov dword [ebp - 0x480], esp
push str.Common
call fcn.00403320
mov byte [ebp - 4], 0x24
mov eax, dword [ebp - 0x470]
push ecx
add eax, 0x18
mov ecx, esp
mov dword [ebp - 0x484], esp
push eax
call fcn.00403320
lea ecx, [ebp - 0x434]
push ecx
mov byte [ebp - 4], bl
call fcn.00413730
add esp, 0xc
mov byte [ebp - 4], 0x25
lea edx, [ebp - 0x434]
mov ecx, esp
mov dword [ebp - 0x484], esp
push edx
call fcn.00403520
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x644]
push ecx
call fcn.004470a0
mov bl, 0x26
mov byte [ebp - 4], bl
test edi, edi
jne 0x408fb8
xor eax, eax
jmp 0x408fbb
mov eax, dword [edi + 0x20]
push eax
push ecx
lea edx, [ebp - 0x440]
mov ecx, esp
mov dword [ebp - 0x484], esp
push edx
call fcn.00403520
push ecx
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0x438]
mov ecx, esp
mov dword [ebp - 0x480], esp
push eax
call fcn.00403520
mov byte [ebp - 4], bl
call fcn.00436af0
test eax, eax
je 0x409031
push 0
push ecx
lea edx, [ebp - 0x440]
mov ecx, esp
mov dword [ebp - 0x484], esp
push edx
call fcn.00403520
push ecx
mov byte [ebp - 4], 0x28
lea eax, [ebp - 0x438]
mov ecx, esp
mov dword [ebp - 0x480], esp
push eax
call fcn.00403520
mov byte [ebp - 4], bl
call fcn.00411bf0
add esp, 0xc
lea ecx, [ebp - 0x440]
call fcn.00403860
lea ecx, [ebp - 0x434]
call fcn.00403860
lea ecx, [ebp - 0x438]
call fcn.00403860
jmp 0x409067
push eax
push str.Oshirase_Download_Error.__s__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 8
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40908d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4090b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x468]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4090d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x450]
xor ebx, ebx
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0x13
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409101
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - method.CWnd.virtual_0], vtable.CDownloadCore.0
cmp eax, ebx
je 0x409126
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x4b4], ebx
lea ecx, [ebp - 0x514]
call fcn.00458513
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x460]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409157
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x454]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40917d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x444]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x45c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x6ec]
call fcn.00446160
lea eax, [ebp - 0x644]
call fcn.00446160
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x518]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40922b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x51c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40924d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x578]
call fcn.00401fa0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409281
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055064f
mov esp, ebp
pop ebp
ret 4
push esi
push str.Oshirase_Version_check_Error.__d__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 8
cmp dword [0x5f3994], ebx
jne 0x4092c7
call fcn.004117a0
test eax, eax
je 0x4090e1
mov ecx, dword [ebp - 0x43c]
push ebx
push str.Error
push str.Oshirase_Version_Check_Error
call fcn.00456173
jmp 0x4090e1