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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580e91
mov eax, dword fs:[0]
push eax
sub esp, 0x6b8
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]
mov dword [ebp - 0x444], eax
xor edi, edi
lea esi, [ebp - 0x458]
mov eax, 0x5f38c8
mov dword [ebp - 0x438], edi
call fcn.00405f50
mov dword [ebp - 4], edi
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
mov ebx, 1
mov dword [ebp - 0x438], ebx
cmp eax, edi
je 0x409377
lea esi, [ebp - 0x454]
mov eax, 0x5f38c8
call fcn.00405ff0
mov edx, dword [eax]
lea ebx, [edi + 3]
mov byte [ebp - 0x42d], 1
cmp dword [edx - 0xc], edi
jne 0x40937e
mov byte [ebp - 0x42d], 0
test bl, 2
je 0x4093ae
mov eax, dword [ebp - 0x454]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x438], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4093dc
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 0x4093dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x42d], 0
jne 0x409759
push 0xb
lea ecx, [ebp - 0x448]
push ecx
mov ecx, 0x5f38c8
call fcn.00432310
push 0x10
push str.softwareinfo.ini
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 1
call fcn.00405900
lea edi, [ebp - 0x6c4]
call fcn.00401eb0
push 0x5f399c
mov ebx, edi
mov byte [ebp - 4], 2
call fcn.00401000
mov edx, dword [0x5f3a98]
mov edi, dword [0x5f3a9c]
lea esi, [ebp - 0x5b4]
mov dword [ebp - 0x46c], edx
call fcn.004460c0
push 0
push ecx
mov bl, 3
mov byte [ebp - 4], bl
mov ecx, esp
mov dword [ebp - 0x458], esp
push 0x5b25a8
call fcn.00403320
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x444]
push edi
push 0
test eax, eax
je 0x40947b
mov eax, dword [eax + 0x20]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x454], esp
push eax
call fcn.00406020
lea ecx, [ebp - 0x6c4]
push ecx
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x43c], esp
push str.InstallNavigator
call fcn.00403320
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x448]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x438], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0x5b4]
mov byte [ebp - 4], bl
call fcn.00405db0
lea edx, [ebp - 0x440]
push edx
mov ecx, esi
call fcn.00447de0
lea esi, [ebp - 0x440]
mov byte [ebp - 4], 7
call fcn.00414b80
lea esi, [ebp - 0x458]
lea edi, [ebp - 0x5b4]
call fcn.00447eb0
push eax
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x45c]
push ecx
mov byte [ebp - 4], 8
call fcn.0040ab90
add esp, 0xc
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x458]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40954a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x454]
lea edi, [ebp - 0x5b4]
call fcn.00447f50
push eax
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x44c]
push edx
mov byte [ebp - 4], 0xb
call fcn.0040ab90
add esp, 0xc
mov bl, 0xd
mov byte [ebp - 4], bl
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 0x40959d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x440]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x43c], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x438], esp
push str.VERINFO.ESI
call fcn.00403320
lea ecx, [ebp - 0x464]
push ecx
mov byte [ebp - 4], bl
call fcn.00414330
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x44c]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x43c], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00405f80
mov eax, dword [ebp - 0x45c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x43c], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00405ee0
lea edi, [ebp - 0x63c]
call fcn.00401eb0
push 0x5f399c
mov ebx, edi
mov byte [ebp - 4], 0x10
call fcn.00401000
xor ebx, ebx
cmp dword [ebp - 0x5f4], ebx
je 0x409763
cmp dword [ebp - 0x608], 5
je 0x409763
push str.This_is_WebIns_Mode_Skip_Ryoga_download._r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 4
lea esi, [ebp - 0x63c]
call fcn.00401f50
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x464]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4096a8
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 - 0x44c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x45c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40971a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x5b4]
call fcn.00446160
lea esi, [ebp - 0x6c4]
call fcn.00401f50
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 0x409759
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x409dac
mov eax, dword [0x5f3a98]
mov ecx, dword [0x5f3a9c]
mov dword [ebp - 0x468], ecx
cmp eax, ebx
jne 0x409782
push str.This_is_OfflineMode_Skip_Ryoga_download._r_n
jmp 0x40966a
push 0xd
lea ecx, [ebp - 0x460]
push ecx
mov ecx, 0x5f38c8
call fcn.00432310
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x460]
cmp dword [eax - 0xc], ebx
je 0x4097c3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4097c3
test al, 0x10
je 0x4097c3
lea edx, [ebp - 0x460]
push edx
call fcn.004140a0
add esp, 4
lea ecx, [ebp - 0x50c]
call fcn.00455ee7
mov dword [ebp - method.CWnd.virtual_0], vtable.CDownloadCore.0
mov dword [ebp - 0x4ac], ebx
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x4b4], ebx
mov dword [ebp - 0x4a8], ebx
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x44c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x43c], esp
mov esi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x50c]
call fcn.00415330
cmp eax, ebx
je 0x409c72
xor eax, eax
push 0x418
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x480], eax
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x42c]
push ebx
push eax
call fcn.00553a60
add esp, 0xc
lea esi, [ebp - 0x43c]
lea edi, [ebp - 0x5b4]
mov dword [ebp - 0x424], 0x3d
call fcn.00447ff0
push ebx
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.00403670
push ebx
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x42c], eax
call fcn.00403670
lea ecx, [ebp - 0x42c]
lea edx, [ebp - 0x484]
mov edi, str.Home
lea esi, [ebp - 0x50c]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x480], 1
mov dword [ebp - 0x484], edi
mov dword [ebp - 0x47c], ecx
mov dword [ebp - 0x4b8], 8
mov dword [ebp - 0x4b4], edx
call fcn.004153c0
cmp eax, ebx
jne 0x409c39
lea ecx, [ebp - 0x438]
call fcn.004038b0
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x420]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x470], esp
push str.NewVersion
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x474], esp
push str.Common
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x414]
mov ecx, esp
mov dword [ebp - 0x468], esp
push edx
call fcn.00403320
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], 0x14
call fcn.00413730
add esp, 0x10
mov bl, 0x17
mov byte [ebp - 4], bl
mov ecx, dword [eax]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x468], esp
push str.DriverVer
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x18
mov ecx, esp
mov dword [ebp - 0x474], esp
push str.Version
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x428]
mov ecx, esp
mov dword [ebp - 0x470], esp
push edx
call fcn.00403320
lea eax, [ebp - 0x450]
push eax
mov byte [ebp - 4], bl
call fcn.00413730
add esp, 0x10
mov byte [ebp - 4], 0x1a
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x438]
push str.New_Ryoga_Exist._Inbox_is___s__Server_ver_is___s__bDownload_is___d__r_n
push edx
call fcn.00404130
add esp, 0x14
lea ecx, [ebp - 0x450]
call fcn.00403860
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 0x14
call fcn.00403860
cmp dword [0x5f3994], 0
jne 0x4099ef
call fcn.004117a0
test eax, eax
je 0x409a20
mov eax, dword [ebp - 0x438]
mov esi, dword [ebp - 0x444]
push 0x40004
push str.Doanload__
push eax
mov ecx, esi
call fcn.00456173
mov edx, dword [ebp - 0x47c]
xor ecx, ecx
cmp eax, 6
sete cl
mov dword [edx + 0xc], ecx
jmp 0x409a26
mov esi, dword [ebp - 0x444]
mov eax, dword [ebp - 0x47c]
cmp dword [eax + 0xc], 0
je 0x409c2a
xor eax, eax
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x494], ecx
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x498], eax
push eax
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x498], 1
mov dword [ebp - 0x49c], edi
call fcn.00403670
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x48c], 0x415400
test esi, esi
jne 0x409aa0
mov dword [ebp - 0x488], esi
jmp 0x409aa9
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x488], edx
lea eax, [ebp - 0x49c]
lea esi, [ebp - 0x50c]
mov dword [ebp - 0x4b8], 9
mov dword [ebp - 0x4b4], eax
call fcn.004153c0
test eax, eax
jne 0x409c17
mov ecx, dword [ebp - 0x47c]
cmp dword [ecx + 0xc], eax
je 0x409c2a
push ecx
mov ecx, esp
mov dword [ebp - 0x468], esp
push str.Installer
call fcn.00403320
push ecx
mov byte [ebp - 4], 0x1b
mov ecx, esp
mov dword [ebp - 0x474], esp
push str.Common
call fcn.00403320
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x47c]
push ecx
add edx, 0x18
mov ecx, esp
mov dword [ebp - 0x470], esp
push edx
call fcn.00403320
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], 0x14
call fcn.00413730
add esp, 0x10
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 0x1d
call fcn.00413db0
test eax, eax
je 0x409bfd
push ecx
lea edx, [ebp - 0x434]
mov ecx, esp
mov dword [ebp - 0x468], esp
push edx
call fcn.00403520
call fcn.00405ee0
push 0x5c
lea ecx, [ebp - 0x434]
call fcn.00404b50
push eax
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x434]
call fcn.0040ab10
push str.E_UPWJ01.dll
lea ecx, [ebp - 0x444]
push ecx
lea edx, [ebp - 0x450]
push edx
mov byte [ebp - 4], 0x1e
call fcn.004024e0
add esp, 8
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0x450]
mov ecx, esp
mov dword [ebp - 0x468], esp
push eax
call fcn.00403520
call fcn.00405f80
mov ecx, dword [ebp - 0x450]
mov edx, dword [ebp - 0x434]
push ecx
push edx
push str.Ryoga_Download_Success._r_n_tRyoga__s__r_n_tIdea__s__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 0xc
lea ecx, [ebp - 0x450]
call fcn.00403860
lea ecx, [ebp - 0x444]
call fcn.00403860
lea ecx, [ebp - 0x434]
call fcn.00403860
lea ecx, [ebp - 0x438]
call fcn.00403860
xor ebx, ebx
jmp 0x409c4c
push eax
push str.Ryoga_Download_Error.__d__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 8
lea ecx, [ebp - 0x438]
call fcn.00403860
xor ebx, ebx
jmp 0x409c4c
push eax
push str.Ryoga_Version_check_Error.__d__r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 8
mov byte [ebp - 4], 0x12
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 0x409c72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x4ac]
mov dword [ebp - method.CWnd.virtual_0], vtable.CDownloadCore.0
cmp eax, ebx
je 0x409c97
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x4ac], ebx
lea ecx, [ebp - 0x50c]
call fcn.00458513
mov byte [ebp - 4], 0x10
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 0x409cc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x63c]
call fcn.00401f50
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x464]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409cf9
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 - 0x44c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
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 0x409d45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
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 0x409d6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x5b4]
call fcn.00446160
lea esi, [ebp - 0x6c4]
call fcn.00401f50
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 0x409daa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, 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