Function at 0x10146670
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 - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.1011e8d0
add esp, 0xc
mov byte [ebp - 0x220], 0
push 0x103
push 0
lea ecx, [ebp - 0x21f]
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 0x10146705
cmp dword [ebp + 0xc], 0
je 0x10146705
cmp dword [ebp + 0x10], 0
jne 0x1014670f
mov eax, 0xfffffffb
jmp 0x10146ae8
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x1014672d
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x1014672d
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10146737
mov eax, 0xfffffffb
jmp 0x10146ae8
cmp dword [0x101d98c8], 0
jne 0x10146754
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 0x1014678e
mov dword [ebp - 0x230], 0xfffffffe
jmp 0x10146a93
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 0x101467b5
mov dword [ebp - 0x230], 0xfffffff7
jmp 0x10146a93
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0x101c3780
lea eax, [ebp - 0x118]
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 0x10146801
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x10146801
push 0x101c378c
push 0x104
lea edx, [ebp - 0x118]
push edx
call fcn.1011a6f4
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call fcn.1011a6f4
add esp, 0xc
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
push 0x101c3790
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [ebp + 0x20], 0
je 0x1014687e
push 0x81
push 0x101c3798
push 0x101c37ac
push 8
call fcn.1014adb0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1014686d
mov dword [ebp - 0x230], 0xfffffffc
jmp 0x10146a93
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 0x101468a1
mov dword [ebp - 0x230], 0xffffffff
jmp 0x10146a93
lea eax, [ebp - 0x118]
push eax
push 0x2712
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.1002cf30
add esp, 0xc
lea edx, [ebp - 0x220]
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
cmp dword [ebp - 8], 0
je 0x10146992
push 0
push 0x2b
mov edx, dword [ebp - 0x224]
push edx
call fcn.1002cf30
add esp, 0xc
push 0x101460a0
push 0x4e58
mov eax, dword [ebp - 0x224]
push eax
call fcn.1002cf30
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push 0x2749
mov edx, dword [ebp - 0x224]
push edx
call fcn.1002cf30
add esp, 0xc
jmp 0x101469a5
push 1
push 0x2b
mov eax, dword [ebp - 0x224]
push eax
call fcn.1002cf30
add esp, 0xc
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.10029320
add esp, 4
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x101469d2
mov dword [ebp - 0x230], 0
jmp 0x10146a93
cmp dword [ebp - 0x228], 7
jne 0x10146a29
push 0x101c37c4
push 0xae
push 0x101c37e8
push 0x101c37fc
push 1
call fcn.1014edc0
add esp, 0x14
push str._FTP__ftp_server_cannot_connect.
push 0xae
push 0x101c3838
push 0x101c384c
push 1
call fcn.1014f750
add esp, 0x14
xor edx, edx
jne 0x101469db
mov dword [ebp - 0x230], 0xfffffff6
jmp 0x10146a93
mov eax, dword [ebp - 0x228]
push eax
call fcn.10029380
add esp, 4
push eax
push 0x101c3864
push 0xb4
push 0x101c3890
push 0x101c38a4
push 1
call fcn.1014edc0
add esp, 0x18
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.10029380
add esp, 4
push eax
push str._FTP__put_File:_s_LastTime_fail._err___s
push 0xb4
push 0x101c38e8
push 0x101c38fc
push 1
call fcn.1014f750
add esp, 0x18
xor edx, edx
jne 0x10146a29
mov dword [ebp - 0x230], 0xffffffff
cmp dword [ebp - 8], 0
je 0x10146ab4
push 0xbd
push str.cutil_upload_ftpA
push 0x101c3928
mov eax, dword [ebp - 8]
push eax
call fcn.1014acc0
add esp, 0x10
cmp dword [ebp - 0x22c], 0
je 0x10146aca
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x224], 0
je 0x10146ae2
mov edx, dword [ebp - 0x224]
push edx
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