Function at 0x10146180
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101c1b88]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x220], 0
push 0x103
push 0
lea eax, [ebp - 0x21f]
push eax
call fcn.1011e8d0
add esp, 0xc
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea ecx, [ebp - 0x117]
push ecx
call fcn.1011e8d0
add esp, 0xc
mov dword [ebp - 0x22c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x230], 0
cmp dword [ebp + 8], 0
je 0x10146215
cmp dword [ebp + 0xc], 0
je 0x10146215
cmp dword [ebp + 0x10], 0
jne 0x1014621f
mov eax, 0xfffffffb
jmp 0x10146660
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x1014623d
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x1014623d
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10146247
mov eax, 0xfffffffb
jmp 0x10146660
cmp dword [0x101d98c8], 0
jne 0x10146264
push 3
call fcn.10029130
add esp, 4
mov dword [0x101d98c8], 1
push 0
push 0x80
push 4
push 0
push 7
push closesocket
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0xffffffff
jne 0x1014629e
mov dword [ebp - 0x230], 0xfffffffe
jmp 0x1014660b
push 0
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x101462c5
mov dword [ebp - 0x230], 0xfffffff7
jmp 0x1014660b
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.ftp:___s:_d
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
cmp edx, 0x2f
je 0x10146311
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x10146311
push 0x101c3b04
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.1011a6f4
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call fcn.1011a6f4
add esp, 0xc
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
push 0x101c3b08
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [ebp + 0x20], 0
je 0x1014638e
push 0x177
push 0x101c3b10
push 0x101c3b24
push 8
call fcn.1014adb0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1014637d
mov dword [ebp - 0x230], 0xfffffffc
jmp 0x1014660b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x20]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x24]
mov dword [ecx + 4], edx
call fcn.10029150
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x101463b1
mov dword [ebp - 0x230], 0xffffffff
jmp 0x1014660b
push 0
push 0x40
mov eax, dword [ebp - 0x224]
push eax
call fcn.1002cf30
add esp, 0xc
push 0
push 0x51
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.1002cf30
add esp, 0xc
push 3
push 0x77
mov edx, dword [ebp - 0x224]
push edx
call fcn.1002cf30
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x2712
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.1002cf30
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
push 0x2715
mov eax, dword [ebp - 0x224]
push eax
call fcn.1002cf30
add esp, 0xc
push 1
push 0x2e
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.1002cf30
add esp, 0xc
mov edx, dword [ebp - 0x22c]
push edx
push 0x2719
mov eax, dword [ebp - 0x224]
push eax
call fcn.1002cf30
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 0xe
mov edx, dword [ebp - 0x224]
push edx
call fcn.1002cf30
add esp, 0xc
push 0x10146140
push 0x4e2c
mov eax, dword [ebp - 0x224]
push eax
call fcn.1002cf30
add esp, 0xc
push 1
push 0x6e
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.1002cf30
add esp, 0xc
push 0x1e
push 0x4e
mov edx, dword [ebp - 0x224]
push edx
call fcn.1002cf30
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x101464ee
push 0
push 0x2b
mov eax, dword [ebp - 0x224]
push eax
call fcn.1002cf30
add esp, 0xc
push 0x101460a0
push 0x4e58
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.1002cf30
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
push 0x2749
mov eax, dword [ebp - 0x224]
push eax
call fcn.1002cf30
add esp, 0xc
jmp 0x10146501
push 1
push 0x2b
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.1002cf30
add esp, 0xc
mov edx, dword [ebp - 0x224]
push edx
call fcn.10029320
add esp, 4
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x1014652e
mov dword [ebp - 0x230], 0
jmp 0x1014660b
cmp dword [ebp - 0x228], 7
jne 0x1014658b
push 0x101c3b3c
push 0x1ab
push 0x101c3b60
push 0x101c3b74
push 1
call fcn.1014edc0
add esp, 0x14
push str._FTPS__ftps_server_cannot_connect.
push 0x1ab
push 0x101c3bb0
push 0x101c3bc4
push 1
call fcn.1014f750
add esp, 0x14
xor eax, eax
jne 0x10146537
mov dword [ebp - 0x230], 0xfffffff6
jmp 0x1014660b
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.10029380
add esp, 4
push eax
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x101c3bdc
push 0x1b2
push 0x101c3c10
push 0x101c3c24
push 1
call fcn.1014edc0
add esp, 0x20
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.10029380
add esp, 4
push eax
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
push eax
push str._FTPS__put_File:_s_LastTime_fail._err____d___s_
push 0x1b2
push 0x101c3c70
push 0x101c3c84
push 1
call fcn.1014f750
add esp, 0x20
xor ecx, ecx
jne 0x1014658b
mov dword [ebp - 0x230], 0xffffffff
cmp dword [ebp - 8], 0
je 0x1014662c
push 0x1bb
push str.cutil_upload_ftpsA
push 0x101c3cb0
mov edx, dword [ebp - 8]
push edx
call fcn.1014acc0
add esp, 0x10
cmp dword [ebp - 0x22c], 0
je 0x10146642
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x224], 0
je 0x1014665a
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.10029340
add esp, 4
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1011a380
mov esp, ebp
pop ebp
ret