Function at 0x10053ca0
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f2c93
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x7c
mov eax, dword [0x1011b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp dword [eax + 4], 0
je 0x10053cf2
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 8], 0
jne 0x10053d07
mov dword [ebp - 0x60], str.connection_failed
push 0x1010887c
lea edx, [ebp - 0x60]
push edx
call sub.MSVCR120.dll__CxxThrowException
call fcn.1002cc50
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0xc], 0
jne 0x10053dde
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x10053d2d
mov dword [ebp - 0x48], 1
jmp 0x10053d34
mov dword [ebp - 0x48], 2
mov edx, dword [ebp + 8]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
jne 0x10053d49
mov dword [ebp - 0x4c], 0
jmp 0x10053dbc
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x3c]
mov al, byte [edx]
mov byte [ebp - 0x31], al
add dword [ebp - 0x3c], 1
cmp byte [ebp - 0x31], 0
jne 0x10053d58
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0x3fffffff
jle 0x10053d8e
mov dword [ebp - 0x50], 0
jmp 0x10053db6
mov eax, dword [ebp - 0x40]
shl eax, 1
call fcn.100ed140
mov dword [ebp - 0x80], esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x80]
push eax
call fcn.100492f0
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], ecx
push 0
mov edx, dword [ebp - 0x48]
push edx
push 0x40000000
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WININET.dll_FtpOpenFileW]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0xc], 0
je 0x10053df4
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0xc], 0xffffffff
jne 0x10053e8f
call fcn.1002e8a0
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
call sym.COMMON.dll_public:_int___thiscall_CppSQLite3Exception::ErrorCode_void_const
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jg 0x10053e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::IntToWString_int_
add esp, 8
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 1
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x84], esp
mov ecx, dword [ebp - 0x58]
push ecx
push str.PutFile__FtpOpenFile2_Failed:
push eax
call fcn.100346d0
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], edx
mov byte [ebp - 4], 2
call fcn.1002e8a0
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
call fcn.1002e660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1000a1c0
mov dword [ebp - 0x6c], 0x100fbec8
push 0x1010887c
lea eax, [ebp - 0x6c]
push eax
call sub.MSVCR120.dll__CxxThrowException
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x10053eb2
cmp dword [ebp - 0x38], 0
ja 0x10053ec9
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], 0
jmp 0x10053f49
mov dword [ebp - 4], 0xffffffff
jmp 0x10053f5b
jmp 0x10053f64
mov eax, dword [ebp - 0x38]
lea esp, [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ec36e
mov esp, ebp
pop ebp
ret 0x10