Function at 0x4096f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc962
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x5293c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
push dword [edi + 4]
lea ecx, [edi + 0x4bc]
call sym.GameDownloader.exe_public:_void___thiscall_CWndShadow::Create_struct_HWND____
push 0
push 0
lea ecx, [edi + 0x4bc]
call sym.GameDownloader.exe_public:_bool___thiscall_CWndShadow::SetPosition_int__int_
push 3
lea ecx, [edi + 0x4bc]
call sym.GameDownloader.exe_public:_bool___thiscall_CWndShadow::SetSize_int_
push 0x4e1bac
lea ecx, [edi + 0x2c]
call sym.GameDownloader.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
push 0x4e1bb8
lea ecx, [edi + 0x2c]
mov dword [edi + 0x500], eax
call sym.GameDownloader.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
push str.browse
lea ecx, [edi + 0x2c]
mov dword [edi + 0x504], eax
call sym.GameDownloader.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
push str.download
lea ecx, [edi + 0x2c]
mov dword [edi + 0x508], eax
call sym.GameDownloader.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
push str.pro_text
lea ecx, [edi + 0x2c]
mov dword [edi + 0x50c], eax
call sym.GameDownloader.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
push str.progress
lea ecx, [edi + 0x2c]
mov dword [edi + 0x510], eax
call sym.GameDownloader.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const
mov dword [edi + 0x514], eax
mov eax, dword [0x52ae64]
test eax, eax
jne 0x40980b
push 0xf4
call fcn.004b5cee
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4097fd
push 0xf4
push 0
push esi
call fcn.004b7c40
add esp, 0xc
mov ecx, esi
call fcn.0040bb90
jmp 0x4097ff
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x52ae64], eax
mov ecx, eax
call fcn.0040c2c0
mov edi, eax
cmp edi, 0xffffffff
jne 0x4098bd
call fcn.0040a850
mov ecx, eax
call fcn.0040c2d0
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4098bd
call fcn.0040a850
mov ecx, eax
call fcn.0040c2d0
mov ecx, dword [eax + 8]
mov esi, dword [eax + 4]
sub ecx, esi
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409b98
mov ecx, dword [esi + 0x24]
mov eax, 0x30c30c31
sub ecx, dword [esi + 0x20]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4098bd
push 0
call fcn.0040a850
mov ecx, eax
call fcn.0040c2d0
lea ecx, [eax + 4]
call fcn.0040ad70
mov ecx, dword [eax + 0x24]
mov edi, dword [eax + 0x20]
sub ecx, edi
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409b9d
mov edi, dword [edi]
mov esi, dword [ebp - 0x2c]
cmp dword [esi + 0x500], 0
je 0x409995
call fcn.0040a850
mov ecx, eax
call fcn.0040c2d0
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x30], eax
cmp esi, eax
je 0x409992
nop word [eax + eax]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
cmp eax, ecx
je 0x409986
nop
cmp edi, dword [eax]
je 0x40990d
add eax, 0x54
cmp eax, ecx
jne 0x409900
jmp 0x409986
add eax, 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x409918
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00401950
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 7
mov dword [ebp - 4], 1
jbe 0x409936
mov edx, dword [edx]
mov eax, dword [ebp - 0x2c]
push edx
mov ecx, dword [eax + 0x500]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x409986
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40997c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ba2
push ecx
push edx
call fcn.004b5d1e
add esp, 8
add esi, 0x2c
cmp esi, dword [ebp - 0x30]
jne 0x4098f0
mov esi, dword [ebp - 0x2c]
mov ecx, dword [esi + 0x504]
test ecx, ecx
je 0x409b55
mov eax, dword [ecx]
push 0
call dword [eax + 0xec]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
push 0x4e1c10
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4099e5
mov ecx, 0x4e1c14
jmp 0x4099ff
push 0x4e1c1c
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov ecx, 0x4e1c20
mov edx, 0x5040c4
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.00408930
cmp dword [ebp - 0x18], 0
je 0x409b04
push 8
push 0x4e1c28
lea ecx, [ebp - 0x28]
call fcn.0040abe0
push 1
push 0x4e1ba8
lea ecx, [ebp - 0x28]
call fcn.0040abe0
mov ecx, dword [esi + 0x500]
test ecx, ecx
je 0x409a8a
mov eax, dword [ecx]
lea edx, [ebp - 0xfc]
push edx
mov eax, dword [eax + 0x38]
call eax
mov ecx, eax
mov byte [ebp - 4], 3
call sym.GameDownloader.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edx, eax
lea edi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x409a60
sub edx, edi
lea ecx, [ebp - 0x28]
sar edx, 1
push edx
push eax
call fcn.0040abe0
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 2
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x409ade
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00401550
add esp, 8
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 4
jbe 0x409aa3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401950
add esp, 8
cmp dword [eax + 0x14], 7
mov ecx, eax
mov byte [ebp - 4], 5
jbe 0x409abe
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040abe0
lea ecx, [ebp - 0x60]
call fcn.00402d40
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00402da0
push 1
push 0x4e1ba8
lea ecx, [ebp - 0x28]
call fcn.0040abe0
mov ecx, dword [esi + 0x504]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
cmova edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x409b41
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409b37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ba2
push ecx
push edx
call fcn.004b5d1e
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [esi + 0x510]
test ecx, ecx
je 0x409b69
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [esi + 0x514]
test ecx, ecx
je 0x409b7d
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5d2c
mov esp, ebp
pop ebp
ret
call fcn.0040abd0
call fcn.0040abd0
call fcn.004ba13f
int3