Function at 0x4010e0
Capabilities:
Check if file exists
Create directory
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x405a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x408018]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x408018]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
push eax
call fcn.00401b40
xor eax, eax
mov dword [esp + 0x178], eax
mov dword [esp + 0x15c], eax
mov byte [esp + 0x14c], al
lea edi, [eax + 0xc]
mov eax, str.ArchiverLog_
lea esi, [esp + 0x14c]
mov dword [esp + 0x160], 0xf
call fcn.00402e10
lea ebx, [esp + 0x114]
mov byte [esp + 0x178], 1
call fcn.00401a60
push eax
lea ecx, [esp + 0xfc]
push ecx
mov byte [esp + 0x180], 2
call fcn.004032b0
add esp, 8
xor ebx, ebx
push ebx
push eax
or eax, 0xffffffff
mov byte [esp + 0x180], 3
call fcn.00402700
mov edi, 0x10
cmp dword [esp + 0x10c], edi
jb 0x4011c0
mov edx, dword [esp + 0xf8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [esp + 0x178], 1
mov dword [esp + 0x10c], 0xf
mov dword [esp + 0x108], ebx
mov byte [esp + 0xf8], bl
cmp dword [esp + 0x128], edi
jb 0x4011fb
mov eax, dword [esp + 0x114]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0xfc]
push edx
call fcn.00403370
add esp, 8
mov byte [esp + 0x178], 4
cmp dword [eax + 0x14], edi
jb 0x401222
mov eax, dword [eax]
push eax
lea esi, [esp + 0x3c]
call fcn.00402f90
push ebx
test eax, eax
jne 0x401246
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
push 2
lea ecx, [esp + ecx + 0x3c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x401258
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + 4]
push ebx
lea ecx, [esp + ecx + 0x3c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov byte [esp + 0x178], 1
cmp dword [esp + 0x10c], edi
jb 0x40127a
mov edx, dword [esp + 0xf8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push ecx
lea ecx, [esp + 0x154]
push ecx
push ecx
push str.C:UsersYu_PengDropboxArchive_
push edx
call fcn.00403430
add esp, 0xc
push eax
call fcn.00403680
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
nop
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 7
mov eax, str.Clients
mov dword [esp + 0x2c], esp
mov byte [esi], bl
call fcn.00402e10
lea edi, [esp + 0x30]
call fcn.00403c90
mov esi, esp
mov byte [esp + 0x194], 5
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 7
mov eax, str.Clients
mov dword [esp + 0x2c], esp
mov byte [esi], bl
call fcn.00402e10
lea edi, [esp + 0x40]
call fcn.00403bc0
add esp, 0x1c
mov byte [esp + 0x178], 6
mov edi, 0x20
mov eax, str.C:UsersYu_PengDropboxArchive
lea esi, [esp + 0x114]
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
call fcn.00402e10
mov byte [esp + 0x178], 7
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], ebx
je 0x401624
xor edi, edi
push 7
lea eax, [edi + esi]
push str.Clients
push eax
call fcn.00402870
mov ecx, dword [esp + 0x24]
add ecx, edi
push ecx
lea ebx, [eax + 7]
lea esi, [esp + 0xfc]
call fcn.00401b10
mov edx, esi
push edx
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0xe4]
push ecx
mov byte [esp + 0x184], 8
call fcn.004038b0
add esp, 0xc
mov byte [esp + 0x178], 9
mov eax, dword [esp + 0xdc]
mov ebx, 0x10
cmp dword [esp + 0xf0], ebx
jae 0x4013e7
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401426
test bl, al
je 0x401426
cmp dword [esp + 0xf0], ebx
jb 0x401411
mov edx, dword [esp + 0xdc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0xec], eax
mov byte [esp + 0xdc], al
jmp 0x4015c4
mov eax, dword [esp + 0xdc]
cmp dword [esp + 0xf0], ebx
jae 0x40143d
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
cmp dword [esp + 0x8c], 0
je 0x401597
lea ebx, [esp + 0x130]
call fcn.00401a60
mov byte [esp + 0x178], 0xa
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
push ecx
push str._Created_Folder:
push ecx
push eax
push ecx
push str.Time_
push edx
call fcn.00403430
add esp, 0xc
push eax
call fcn.00403680
add esp, 0xc
push eax
call fcn.00403430
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [esp + 0x178], 9
cmp dword [esp + 0x144], 0x10
jb 0x4014ca
mov eax, dword [esp + 0x130]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
push ecx
lea edx, [esp + 0x100]
push edx
push eax
call fcn.00403680
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ebx, [esp + 0x130]
call fcn.00401a60
mov byte [esp + 0x178], 0xb
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
push ecx
push eax
push ecx
lea edx, [esp + 0x44]
push str.Time_
push edx
call fcn.00403430
add esp, 0xc
push eax
call fcn.00403680
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [esp + 0x178], 9
cmp dword [esp + 0x144], 0x10
jb 0x401554
mov eax, dword [esp + 0x130]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0xe4]
push eax
push ecx
lea ecx, [esp + 0x44]
push str.Created_Folder_
push ecx
call fcn.00403430
add esp, 0xc
push eax
call fcn.00403680
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ebx, 0x10
cmp dword [esp + 0xf0], ebx
jb 0x4015b1
mov edx, dword [esp + 0xdc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0xec], 0
mov byte [esp + 0xdc], 0
mov byte [esp + 0x178], 7
mov dword [esp + 0xf0], 0xf
cmp dword [esp + 0x10c], ebx
jb 0x4015f1
mov eax, dword [esp + 0xf8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc ebx
add ecx, edx
add edi, 0x1c
mov dword [esp + 0x10], ebx
cmp ebx, ecx
jb 0x40137a
xor ebx, ebx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], ebx
je 0x4018e9
xor edi, edi
push 7
lea eax, [edi + esi]
push str.Clients
push eax
call fcn.00402870
mov ecx, dword [esp + 0x14]
add ecx, edi
push ecx
lea ebx, [eax + 7]
lea esi, [esp + 0xfc]
call fcn.00401b10
mov edx, esi
push edx
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0xe4]
push ecx
mov byte [esp + 0x184], 0xc
call fcn.004038b0
add esp, 0xc
push 7
push str.dropbox
mov edx, esi
push edx
mov byte [esp + 0x184], 0xd
call fcn.00402870
cmp eax, 0xffffffff
jne 0x40185a
push 7
push str.desktop
mov eax, esi
push eax
call fcn.00402870
cmp eax, 0xffffffff
jne 0x40185a
mov ecx, dword [esp + 0xdc]
mov esi, 0x10
cmp dword [esp + 0xf0], esi
jae 0x4016ea
lea ecx, [esp + 0xdc]
mov edx, dword [esp + 0x14]
cmp dword [edi + edx + 0x14], esi
lea eax, [edi + edx]
jb 0x4016f9
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_rename]
add esp, 8
cmp dword [esp + 0x8c], 0
je 0x40185f
lea ebx, [esp + 0x130]
call fcn.00401a60
mov byte [esp + 0x178], 0xe
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
push ecx
push str._Download_file:
push ecx
push eax
push ecx
push str.Time_
push edx
call fcn.00403430
add esp, 0xc
push eax
call fcn.00403680
add esp, 0xc
push eax
call fcn.00403430
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [esp + 0x178], 0xd
cmp dword [esp + 0x144], 0x10
jb 0x401787
mov eax, dword [esp + 0x130]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
mov edx, ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edx
lea eax, [esp + 0x100]
push eax
push ecx
call fcn.00403680
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ebx, [esp + 0x130]
call fcn.00401a60
mov byte [esp + 0x178], 0xf
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push edx
push ecx
push eax
push ecx
lea eax, [esp + 0x44]
push str.Time_
push eax
call fcn.00403430
add esp, 0xc
push eax
call fcn.00403680
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [esp + 0x178], 0xd
cmp dword [esp + 0x144], 0x10
jb 0x40181c
mov ecx, dword [esp + 0x130]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0xe4]
push ecx
push ecx
lea edx, [esp + 0x44]
push str.Download_
push edx
call fcn.00403430
add esp, 0xc
push eax
call fcn.00403680
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, 0x10
cmp dword [esp + 0xf0], esi
jb 0x401879
mov eax, dword [esp + 0xdc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov byte [esp + 0x178], 7
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], eax
mov byte [esp + 0xdc], al
cmp dword [esp + 0x10c], esi
jb 0x4018b6
mov ecx, dword [esp + 0xf8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x1c
mov dword [esp + 0x10], ebx
cmp ebx, eax
jb 0x40164d
xor ebx, ebx
push 0x186a0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x128], 0x10
jb 0x40190f
mov ecx, dword [esp + 0x114]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [esp + 0x24]
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
cmp esi, ebx
je 0x40196b
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x401961
cmp dword [esi + 0x14], 0x10
jb 0x40194a
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
add esi, 0x1c
cmp esi, edi
jne 0x401938
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [esp + 0x178], 1
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
cmp esi, ebx
je 0x4019c3
mov edi, dword [esp + 0x18]
cmp esi, edi
je 0x4019b9
nop
cmp dword [esi + 0x14], 0x10
jb 0x4019a2
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
add esi, 0x1c
cmp esi, edi
jne 0x401990
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jmp 0x4012b0