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

Disassembly:
push 0x4b8
mov eax, 0x437666
call fcn.00435021
mov eax, dword [ebp + 8]
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x4c4]
xor edi, edi
push eax
mov dword [ebp - 0x434], edi
call fcn.0042abc6
mov dword [ebp - 4], edi
mov eax, dword [0x44b724]
mov ecx, 0x44b724
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x430], ebx
mov esi, 0x206
push esi
lea eax, [ebp - 0x21a]
push edi
push eax
mov word [ebp - 0x21c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x440], 0x104
mov dword [ebp - 0x438], edi
push esi
lea eax, [ebp - 0x422]
push edi
mov byte [ebp - 4], 2
push eax
mov word [ebp - 0x424], di
call sub.MSVCR80.dll_memset
add esp, 0xc
call fcn.0041ed0a
movsx ax, al
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x424]
push str.:downloads
push eax
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00402b38
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 0x43c]
mov byte [ebp - 4], 3
call fcn.0041a0f6
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
call fcn.00401a71
lea eax, [ebp - 0x428]
push eax
push 0x20019
push edi
push str.SoftwareBitComet
push 0x80000001
mov dword [ebp - 0x428], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4211c8
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x438], eax
push edi
lea eax, [ebp - 0x438]
push eax
lea esi, [ebp - 0x440]
lea edi, [ebp - 0x21c]
call fcn.00411e86
xor edi, edi
cmp eax, edi
jne 0x4211b4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.BitComet.xml
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call esi
cmp eax, 0xffffffff
je 0x4211b4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x45c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [ebp - 0x45c]
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 4
call fcn.00430b79
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x421037
mov eax, dword [eax + 4]
jmp 0x42103a
add eax, 4
push eax
lea ecx, [ebp - 0x4c4]
call fcn.0042ac13
neg al
sbb al, al
inc al
lea ecx, [ebp - 0x478]
mov byte [ebp - 0x429], al
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [ebp - 0x429], 0
jne 0x4211b4
push str.BitComet
lea eax, [ebp - 0x4c4]
call fcn.0042a775
cmp eax, edi
je 0x4211b4
push str.Settings
lea eax, [ebp - 0x4c4]
call fcn.0042a775
cmp eax, edi
je 0x4211b4
push str.DefaultDownloadPath
lea eax, [ebp - 0x4c4]
call fcn.0042a775
cmp eax, edi
je 0x4211b4
call fcn.0042abac
cmp eax, edi
je 0x4211b4
push eax
lea ecx, [ebp - 0x45c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [ebp - 0x45c]
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 6
call fcn.00430c63
mov byte [ebp - 4], 7
cmp dword [eax + 0x18], 8
jb 0x421105
mov eax, dword [eax + 4]
jmp 0x421108
add eax, 4
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.00402c06
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebx, dword [ebp - 0x430]
push ebx
call esi
cmp eax, 0xffffffff
je 0x4211aa
cmp dword [ebx - 0xc], edi
jge 0x421152
push 0x80070057
call fcn.00402877
movzx esi, word [ebx]
call fcn.0041ed0a
movsx eax, al
movzx ecx, si
cmp ecx, eax
je 0x421198
cmp dword [ebx - 0xc], edi
jl 0x421148
movzx esi, word [ebx]
call fcn.0041ed0a
movsx eax, al
movzx ecx, si
sub eax, 0x20
cmp ecx, eax
je 0x421198
cmp dword [ebx - 0xc], edi
jl 0x421148
movzx esi, word [ebx]
call fcn.0041ed0a
movsx eax, al
movzx ecx, si
add eax, 0x20
cmp ecx, eax
jne 0x4211b4
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 0x43c]
call fcn.0041a0f6
mov dword [ebp - 0x434], 1
cmp dword [ebp - 0x428], edi
je 0x4211c8
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 0xfffffff0
mov eax, ebx
call fcn.00401a71
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c4]
call fcn.00402022
mov eax, dword [ebp - 0x434]
call fcn.004350a4
ret