Function at 0x410094
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c7af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1360
call fcn.0045b2d0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1300], ecx
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
push 0x4767fc
mov ecx, dword [ebp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x1300]
mov ecx, dword [eax + 0xe8]
mov edx, dword [ecx + 0x18]
push edx
push 0x46f770
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x128c]
push edx
mov ecx, dword [ebp - 0x1300]
call fcn.004135ec
mov dword [ebp - 0x1304], eax
mov eax, dword [ebp - 0x1304]
mov dword [ebp - 0x1308], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1308]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x128c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
push edx
push str.CSyncEngine::DownloadOneFileFromServer__Download_File_URL___s
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
mov dword [ebp - 0x48], 0x46f7b8
mov dword [ebp - 0x44], 0x46f7c4
mov dword [ebp - 0x40], 0x46f7d4
mov dword [ebp - 0x3c], 0x46f7e0
mov dword [ebp - 0x38], 0x46f7ec
mov dword [ebp - 0x34], 0x46f80c
mov dword [ebp - 0x30], 0x46f828
mov dword [ebp - 0x2c], 0x46f848
mov dword [ebp - 0x28], 0x46f85c
mov dword [ebp - 0x24], 0
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________1.
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
mov dword [ebp - 0x68], 0xa0400000
mov edx, dword [ebp - 0x1300]
mov eax, dword [edx + 0xe8]
cmp dword [eax + 0x24], 0
jle 0x410261
push str.CSyncEngine::DownloadOneFileFromServer____set_cert_flag_1
push 2
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
mov edx, dword [ebp - 0x68]
or edx, 0x800000
mov dword [ebp - 0x68], edx
cmp dword [ebp + 0x14], 1
je 0x410239
mov eax, dword [ebp - 0x1300]
mov ecx, dword [eax + 0xe8]
cmp dword [ecx + 0x24], 1
jne 0x410261
mov edx, dword [ebp - 0x68]
or dh, 0x10
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
or ah, 0x20
mov dword [ebp - 0x68], eax
push str.CSyncEngine::DownloadOneFileFromServer____set_cert_ignore_flag_2
push 2
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________2.
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004020c0
mov dword [ebp - 0x130c], eax
mov eax, dword [ebp - 0x68]
push eax
push 0x46f990
lea ecx, [ebp - 0x48]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x130c]
push edx
push 0x46f99c
mov eax, dword [ebp - 0x1300]
mov ecx, dword [eax + 0xe4]
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov dword [ebp - 0x1310], eax
mov ecx, dword [ebp - 0x1310]
mov dword [ebp - 0x14], ecx
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________3.
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x410323
push str.CSyncEngine::DownloadOneFileFromServer__OpenRequest___Return_NULL
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0xc
mov dword [ebp - 0x1290], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1290]
jmp 0x410ea4
mov ecx, dword [ebp - 0x1300]
mov edx, dword [ecx + 0xe8]
cmp dword [edx + 0x24], 0
jle 0x4103a9
cmp dword [ebp + 0x14], 1
je 0x41034d
mov eax, dword [ebp - 0x1300]
mov ecx, dword [eax + 0xe8]
cmp dword [ecx + 0x24], 1
jne 0x4103a9
mov dword [ebp - 0x74], 0
push str.CSyncEngine::DownloadOneFileFromServer__Try_to_SetOption_____set_cert_ignore_flag_3
push 2
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
mov eax, dword [ebp - 0x74]
or ah, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
or cl, 0x80
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
or dh, 0x20
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
or ah, 0x10
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
or ch, 2
mov dword [ebp - 0x74], ecx
push 0
push 4
lea edx, [ebp - 0x74]
push edx
push 0x1f
mov ecx, dword [ebp - 0x14]
call sub.MFC42.DLL_CInternetFile::SetOption
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________4.
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0xc
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
call sub.MFC42.DLL_CHttpFile::SendRequest
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________5.
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x14]
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
mov dword [ebp - 0x1314], eax
mov eax, dword [ebp - 0x1314]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x410412
cmp dword [ebp - 0x58], 0xc8
je 0x4104c0
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push str.CSyncEngine::DownloadOneFileFromServer__QueryInfoStatusCode__s__Return___d
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x14
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
call dword [eax + 0x54]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1298], ecx
mov edx, dword [ebp - 0x1298]
mov dword [ebp - 0x1294], edx
cmp dword [ebp - 0x1294], 0
je 0x41047f
push 1
mov ecx, dword [ebp - 0x1294]
mov eax, dword [ebp - 0x1294]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x1318], eax
mov eax, dword [ebp - 0x1318]
mov dword [ebp - 0x131c], eax
jmp 0x410489
mov dword [ebp - 0x131c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x129c], 0xfffffffe
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x129c]
jmp 0x410ea4
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________6.
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
push str._s___d
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x14
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
mov edx, esp
mov dword [ebp - 0x12a0], esp
push ecx
mov ecx, edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x1320], eax
call fcn.00401967
add esp, 8
mov dword [ebp - 0x1324], eax
mov eax, dword [ebp - 0x1324]
mov dword [ebp - 0x70], eax
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________6.1
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
cmp dword [ebp - 0x70], 1
je 0x4105f1
cmp dword [ebp - 0x70], 0xfffffffe
jne 0x41057b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
push str.CSyncEngine::DownloadOneFileFromServer___s____Directory_path_unknown.
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
jmp 0x4105c1
cmp dword [ebp - 0x70], 0xfffffffd
jne 0x4105a0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
push str.CSyncEngine::DownloadOneFileFromServer___s____Invalid_directory_path.
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
jmp 0x4105c1
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
push str.CSyncEngine::DownloadOneFileFromServer___s____Directory_creation_or_exists__failed.__GetLastError___is__d_
push 4
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x14
mov dword [ebp - 0x12a4], 0xfffffff8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x12a4]
jmp 0x410ea4
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________7.
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0xc
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1300]
call fcn.00411274
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.004020c0
mov dword [ebp - 0x1328], eax
mov edx, dword [ebp - 0x1328]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.004020c0
mov dword [ebp - 0x132c], eax
push 0x46fd9c
mov eax, dword [ebp - 0x132c]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x410725
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
push str.CSyncEngine::DownloadOneFileFromServer__Local_File_Open__s__Fail
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
mov ecx, dword [0x476a9c]
call fcn.004092d8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
call dword [eax + 0x54]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x12ac], ecx
mov edx, dword [ebp - 0x12ac]
mov dword [ebp - 0x12a8], edx
cmp dword [ebp - 0x12a8], 0
je 0x4106e4
push 1
mov ecx, dword [ebp - 0x12a8]
mov eax, dword [ebp - 0x12a8]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x1330], eax
mov eax, dword [ebp - 0x1330]
mov dword [ebp - 0x1334], eax
jmp 0x4106ee
mov dword [ebp - 0x1334], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x12b0], 0xfffffffd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x12b0]
jmp 0x410ea4
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________8.
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x410770
mov dword [ebp - 0x54], 0xa000
push str.CSyncEngine::DownloadOneFileFromServer__Write_transfer_encoded_chunked_file._So_the_total_size_of_the_file_is_unknown.
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0xc
jmp 0x410794
mov ecx, dword [ebp + 8]
add ecx, 0x2c
call fcn.004020c0
mov dword [ebp - 0x1338], eax
mov ecx, dword [ebp - 0x1338]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x50], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
jne 0x4107b7
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x54]
jge 0x410ab0
mov byte [ebp - 0x1078], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1077]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1000
lea ecx, [ebp - 0x1078]
push ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
call dword [eax + 0x3c]
mov dword [ebp - 0x133c], eax
mov ecx, dword [ebp - 0x133c]
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 0
jg 0x4108c3
cmp dword [ebp - 0x60], 0
je 0x4108be
push str.CSyncEngine::DownloadOneFileFromServer__pHttpFile__Read_pBuf__sizeof_pBuf_____No_data.
push 4
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
call dword [eax + 0x54]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x12b8], ecx
mov edx, dword [ebp - 0x12b8]
mov dword [ebp - 0x12b4], edx
cmp dword [ebp - 0x12b4], 0
je 0x41087d
push 1
mov ecx, dword [ebp - 0x12b4]
mov eax, dword [ebp - 0x12b4]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x1340], eax
mov eax, dword [ebp - 0x1340]
mov dword [ebp - 0x1344], eax
jmp 0x410887
mov dword [ebp - 0x1344], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x12bc], 0xfffffff6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x12bc]
jmp 0x410ea4
jmp 0x410ab0
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x78]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x78]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
push 1
lea edx, [ebp - 0x1078]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x107c], eax
mov eax, dword [ebp - 0x107c]
cmp eax, dword [ebp - 0x78]
je 0x4109c6
mov ecx, dword [ebp - 0x107c]
push ecx
push str.CSyncEngine::DownloadOneFileFromServer__fwrite___Fail__RetVal___d
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
call dword [eax + 0x54]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x12c4], ecx
mov edx, dword [ebp - 0x12c4]
mov dword [ebp - 0x12c0], edx
cmp dword [ebp - 0x12c0], 0
je 0x410985
push 1
mov ecx, dword [ebp - 0x12c0]
mov eax, dword [ebp - 0x12c0]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x1348], eax
mov eax, dword [ebp - 0x1348]
mov dword [ebp - 0x134c], eax
jmp 0x41098f
mov dword [ebp - 0x134c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x12c8], 0xfffffff7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x12c8]
jmp 0x410ea4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x4109de
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp - 0x54]
jl 0x4109de
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x1300]
cmp dword [eax + 0x18], 0
je 0x410aab
mov ecx, dword [ebp - 0x1300]
mov edx, dword [ecx + 0x18]
push edx
push str.CSyncEngine::DownloadOneFileFromServer__m_nRequestStopFlag___d
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
call dword [eax + 0x54]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x12d0], ecx
mov edx, dword [ebp - 0x12d0]
mov dword [ebp - 0x12cc], edx
cmp dword [ebp - 0x12cc], 0
je 0x410a6a
push 1
mov ecx, dword [ebp - 0x12cc]
mov eax, dword [ebp - 0x12cc]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x1350], eax
mov eax, dword [ebp - 0x1350]
mov dword [ebp - 0x1354], eax
jmp 0x410a74
mov dword [ebp - 0x1354], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x12d4], 0xfffffff9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x12d4]
jmp 0x410ea4
jmp 0x4107a2
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________9.
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0xffffffff
jne 0x410b61
lea ecx, [ebp - 0x1080]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x1358], eax
mov byte [ebp - 4], 4
push 0
lea ecx, [ebp - 0x1080]
push ecx
push 0x1d
mov ecx, dword [ebp - 0x14]
call sub.MFC42.DLL_CHttpFile::QueryInfo
push 0x46ffe8
lea ecx, [ebp - 0x1080]
call fcn.00415ee0
mov dword [ebp - 0x135c], eax
cmp dword [ebp - 0x135c], 0
jne 0x410b48
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 1
push str.CSyncEngine::DownloadOneFileFromServer__Content_encoding_GZIP.
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0xc
jmp 0x410b52
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1080]
call sub.MFC42.DLL_CString::CString
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________10.
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x54]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x12dc], eax
mov ecx, dword [ebp - 0x12dc]
mov dword [ebp - 0x12d8], ecx
cmp dword [ebp - 0x12d8], 0
je 0x410bc7
push 1
mov ecx, dword [ebp - 0x12d8]
mov edx, dword [ebp - 0x12d8]
mov eax, dword [edx]
call dword [eax + 4]
mov dword [ebp - 0x1360], eax
mov ecx, dword [ebp - 0x1360]
mov dword [ebp - 0x1364], ecx
jmp 0x410bd1
mov dword [ebp - 0x1364], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 1
jne 0x410c93
lea eax, [ebp - 0x1084]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x1300]
call fcn.0041571c
mov dword [ebp - 0x1368], eax
cmp dword [ebp - 0x1368], 0
jne 0x410c5a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
push str.CSyncEngine::DownloadOneFileFromServer__UnCompressGzipFile__s__Failed.
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov dword [ebp - 0x12e0], 0xfffffffa
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x12e0]
jmp 0x410ea4
mov edx, dword [ebp - 0x1084]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
push str.CSyncEngine::DownloadOneFileFromServer__UnCompressGzipFile__s__Success._nCurrentServerReadSize_d_dwUnCompressSize_d
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x18
cmp dword [ebp - 0x1084], 0
jbe 0x410c93
mov ecx, dword [ebp - 0x1084]
mov dword [ebp - 0x50], ecx
push str.CSyncEngine::DownloadOneFileFromServer____________________________________________11_end_.
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x410d08
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp - 0x54]
je 0x410d08
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x54]
push eax
push str.CSyncEngine::DownloadOneFileFromServer__Server_File_Size___d__Write_File_Size___d
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x14
mov dword [ebp - 0x12e4], 0xfffffffc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x12e4]
jmp 0x410ea4
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1300]
call fcn.00411251
mov dword [ebp - 0x136c], eax
mov eax, dword [ebp - 0x136c]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x410d76
mov ecx, dword [ebp - 0x4c]
push ecx
push str.CSyncEngine::DownloadOneFileFromServer__SetDownFileModifyDate___Fail__RetVal___d
push 4
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
mov dword [ebp - 0x12e8], 0xfffffffb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x12e8]
jmp 0x410ea4
mov dword [ebp - 0x12ec], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x12ec]
jmp 0x410ea4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18