Function at 0x401570
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44a798
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b030]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
xor edi, edi
cmp ebp, edi
je 0x4015a9
lea ecx, [ebp + 0x2c]
jmp 0x4015ab
xor ecx, ecx
lea esi, [ebp + 0x120]
mov ebx, 3
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push edi
push edi
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push edi
push edi
mov ecx, esi
call edx
xor eax, eax
mov ecx, 0x4600d8
call fcn.00404680
cmp ebp, edi
je 0x40160c
lea ecx, [ebp + 0x2c]
jmp 0x40160e
xor ecx, ecx
lea esi, [ebp + 0x150]
mov dword [esi + 4], ebx
mov eax, 0x1e
mov ebx, 5
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ebx
push 0x1e
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push edi
push edi
mov ecx, esi
call edx
push 0x44ffe8
push esi
call fcn.00403c10
cmp ebp, edi
je 0x401674
lea ecx, [ebp + 0x2c]
jmp 0x401676
xor ecx, ecx
lea esi, [ebp + 0x2f8]
mov eax, 0xaa
mov ebx, 0xe4
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 4], 3
mov dword [esi + 8], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0xaa
push ebx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push edi
push edi
mov ecx, esi
call edx
mov dword [esi + 0x38], 0x45fff8
call fcn.00403120
lea eax, [esi + 0x2c]
push 0x4503f0
mov ebx, 2
call fcn.004038a0
call fcn.00403120
cmp ebp, edi
je 0x4016ff
lea ecx, [ebp + 0x2c]
jmp 0x401701
xor ecx, ecx
lea esi, [ebp + 0x340]
mov dword [esi + 8], ebx
mov eax, 0xaa
mov ebx, 0x135
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 4], 3
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0xaa
push ebx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push edi
push edi
mov ecx, esi
call edx
mov dword [esi + 0x38], 0x45fff8
call fcn.00403120
lea eax, [esi + 0x2c]
push 0x4503f8
mov ebx, 2
call fcn.004038a0
call fcn.00403120
cmp ebp, edi
je 0x401786
lea ecx, [ebp + 0x2c]
jmp 0x401788
xor ecx, ecx
lea esi, [ebp + 0x388]
mov dword [esi + 4], ebx
mov eax, 0x28
mov ebx, 0x23
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
mov dword [esp + 0x2c], esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0x28
push ebx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push edi
push edi
mov ecx, esi
call edx
push str.color0xBB
push esi
call fcn.00403c10
cmp ebp, edi
je 0x4017f2
lea ecx, [ebp + 0x2c]
jmp 0x4017f4
xor ecx, ecx
lea esi, [ebp + 0x1a4]
mov eax, 0xf
mov ebx, 0x3e
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 4], 3
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ebx
push 0xf
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push edi
push edi
mov ecx, esi
call edx
lea eax, [ebx - 0x3a]
mov ecx, 0x460360
call fcn.00404680
cmp ebp, edi
je 0x401860
lea ecx, [ebp + 0x2c]
jmp 0x401862
xor ecx, ecx
lea esi, [ebp + 0x1d4]
mov eax, 0xf
mov edx, 0x28
mov dword [esi + 0x10], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 4], 2
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
mov dword [esp + 0x30], esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0x28
push 0xf
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push edi
push edi
mov ecx, esi
call edx
mov eax, 8
mov ecx, 0x460360
call fcn.00404680
mov dword [esp + 0x1c], edi
cmp dword [0x45fef4], edi
je 0x40190e
lea esi, [esp + 0x54]
call fcn.004030f0
mov dword [esp + 0x84], edi
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push str.OptionsSetDownloadFolder
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, esi
mov dword [esp + 0x84], 0xffffffff
call fcn.00411b90
mov edx, dword [0x45e5d0]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e5d0
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x84], 1
cmp dword [esp + 0x1c], edi
push 0x7e4
lea edi, [esp + 0x1c]
jne 0x401946
push 0x450088
jmp 0x40194b
push 0x4500e0
call fcn.004030d0
xor edi, edi
add esp, 8
cmp ebp, edi
je 0x40195e
lea ecx, [ebp + 0x2c]
jmp 0x401960
xor ecx, ecx
lea esi, [ebp + 0x204]
mov eax, 0x23
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 4], 3
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov edx, dword [ecx]
mov eax, dword [edx]
push esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push ebx
push 0x23
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
push edi
push edi
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
push ecx
push esi
call fcn.00403c10
mov edx, dword [0x45e584]
push edi
push edx
push edi
lea eax, [ebp + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [eax]
push eax
push 0xf
push 0x117
push 0x5a
push 0x29
push 0x40000080
push edi
push str.EDIT
lea esi, [ebp + 0x2ac]
push edi
mov dword [esp + 0x74], 0x29
mov dword [esp + 0x78], 0x5a
mov dword [esp + 0x7c], 0x140
mov dword [esp + 0x80], 0x69
mov dword [esp + 0x50], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
mov eax, dword [0x45ff00]
mov ecx, dword [esi]
push 1
push eax
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
push 0x20
push eax
call dword [sym.imp.SHLWAPI.dll_SHAutoComplete]
mov edi, 0x45fff8
lea ebx, [ebp + 0x2c]
call fcn.0040c470
mov ecx, dword [0x460008]
mov dword [esp + 0x8c], ecx
call fcn.0040c470
mov edi, dword [0x460008]
lea esi, [ebp + 0x2b0]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x8c]
add eax, 0x56
lea edx, [edi + 0x14c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 4], 1
mov dword [esi + 8], 0x7e6
mov dword [esi + 0xc], 0x14c
mov dword [esi + 0x10], 0x56
mov dword [esi + 0x14], edx
mov edx, dword [ebx]
mov eax, dword [edx]
push esi
mov ecx, ebx
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push 0x56
push 0x14c
mov ecx, esi
call eax
mov eax, dword [esp + 0x8c]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push eax
push edi
mov ecx, esi
call edx
mov dword [esi + 0x34], 9
mov dword [esi + 0x30], 0x460360
call fcn.00403120
mov dword [esi + 0x38], 0x45fff8
call fcn.00403120
lea esi, [ebp + 0x258]
xor edi, edi
mov eax, 0x76
mov ebp, 0x23
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 4], 3
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], eax
mov eax, dword [ebx]
mov edx, dword [eax]
push esi
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0x76
push ebp
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push edi
push edi
mov ecx, esi
call edx
push str.12.5M
push 0x7e5
push 0x450140
lea edi, [esp + 0x24]
call fcn.004030d0
add esp, 0xc
mov ebp, dword [esp + 0x18]
push ebp
push esi
call fcn.00403c10
xor edi, edi
cmp dword [0x45fef4], edi
je 0x401c31
mov dword [esp + 0x8c], edi
lea esi, [esp + 0x64]
call fcn.004030f0
mov byte [esp + 0x84], 3
mov esi, dword [eax]
mov eax, dword [esp + 0x8c]
cmp eax, edi
je 0x401bc1
mov dword [esp + 0x8c], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], edi
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0x45019c
push esi
call edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x84], 2
call fcn.00411b90
mov eax, dword [esp + 0x8c]
cmp eax, edi
je 0x401c03
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
jmp 0x401c08
mov eax, 0x4502f8
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x8c]
cmp eax, edi
je 0x401c31
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edx, dword [0x45e5d0]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e5d0
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x20]
lea esi, [esp + 0x24]
mov byte [esp + 0x84], 4
call fcn.00402fd0
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401cd0
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x401cd0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
mov ecx, eax
and ecx, 1
cmp ecx, 5
je 0x401ca4
mov ecx, dword [edx + 0x1c]
or eax, 1
mov dword [edx + 4], eax
test ecx, ecx
je 0x401ca4
mov eax, dword [ecx]
push 0
push 1
push 0
push edx
mov edx, dword [eax + 0x28]
call edx
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov ecx, eax
and ecx, 1
cmp ecx, 5
je 0x401cd0
mov ecx, dword [edx + 0x1c]
or eax, 1
mov dword [edx + 4], eax
test ecx, ecx
je 0x401cd0
mov eax, dword [ecx]
push 0
push 1
push 0
push edx
mov edx, dword [eax + 0x28]
call edx
mov esi, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi]
push 0xffffffffffffffec
push eax
mov dword [esp + 0x44], 0x17c
mov dword [esp + 0x48], 0xc8
call edi
mov ecx, dword [esi]
push eax
push 0
push 0xfffffffffffffff0
push ecx
call edi
push eax
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
push 6
push eax
mov eax, dword [esi]
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call fcn.00402e20
lea eax, [ebx - 0x10]
mov byte [esp + 0x84], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x84], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 4