Function at 0x12e29ea0
Capabilities:
Get common file path
Get file size

Disassembly:
sub esp, 0x35c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x36c]
cmp esi, 0xffffffff
push edi
je 0x12e2a250
mov eax, dword [esp + 0x374]
test eax, eax
je 0x12e2a250
mov ebx, dword [esp + 0x378]
test ebx, ebx
je 0x12e2a250
cmp eax, 2
jne 0x12e29ef5
lea eax, [ebx + 0x14]
push eax
call fcn.12f03130
mov ecx, eax
call fcn.12f02730
test eax, eax
jne 0x12e2a250
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
push esi
mov word [esp + 0x34], 2
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x2e]
mov edx, dword [esp + 0x2d]
stosb byte es:[edi], al
mov eax, dword [esp + 0x2f]
lea ebp, [ebx + 0x14]
and eax, 0xff
push ebp
push eax
mov eax, dword [esp + 0x34]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
push eax
push str.ftp:___u._u._u._u_s
lea ecx, [esp + 0x50]
push 0x12b
push ecx
mov dword [esp + 0x30], ebp
call fcn.12f5d93f
mov ecx, 0x4b
xor eax, eax
mov edi, ebp
add esp, 0x20
rep stosd dword es:[edi], eax
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x38]
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [ebx + 0x144], 0x5c
mov esi, dword [0x13196dcc]
je 0x12e2a093
cmp dword [esp + 0x374], 2
jne 0x12e2a08b
push str.ftp.exe
call fcn.12f5c51d
push eax
push str.ftp.exe
push esi
call fcn.12f5e383
add esp, 0x10
test eax, eax
jne 0x12e2a08b
mov ecx, 0x81
lea edi, [esp + 0x166]
mov word [esp + 0x164], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x164]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x164]
push 0x130c4ed0
push ecx
call fcn.12f5c935
lea edi, [ebx + 0x140]
lea edx, [esp + 0x16c]
push edi
push edx
call fcn.12f5c935
mov ecx, 0x82
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x174]
push eax
call fcn.12f5c51d
add esp, 0x14
test eax, eax
jbe 0x12e2a067
mov ecx, eax
lea esi, [esp + 0x164]
lea edi, [ebx + 0x140]
shr ecx, 1
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov eax, dword [0x13199068]
test eax, eax
je 0x12e2a08b
lea eax, [ebx + 0x140]
push eax
push str.CFtp::Log_LocalPath:__s_
push str.UdMatch
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
cmp word [ebx + 0x144], 0x5c
mov esi, dword [esp + 0x37c]
jne 0x12e2a185
test esi, esi
jne 0x12e2a185
push esi
push 0x80
push 3
push esi
lea edi, [ebx + 0x140]
push 3
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x12e2a141
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x12e2a0eb
xor eax, eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov dword [ebx + 4], eax
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push ecx
push eax
push eax
push esi
mov dword [ebx + 8], edx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
jne 0x12e2a13a
xor edx, edx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edx
push eax
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.12f03ad0
mov esi, eax
add esp, 4
test esi, esi
je 0x12e2a250
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
lea ecx, [ebx + 0xc]
push ecx
mov ecx, dword [esp + 0x378]
push edx
push eax
push esi
push edi
push ecx
push 2
call fcn.12e74930
push esi
call fcn.12f5c050
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x35c
ret
push 0x35c
call fcn.12f5c05b
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x12e2a250
mov edx, dword [esp + 0x370]
mov dword [ebp + 0x10], 2
mov dword [ebp + 8], 0
mov dword [ebp + 4], esi
mov dword [ebp], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x374]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebx + 8]
mov dword [ebp + 0x1c], ecx
mov edx, dword [ebx + 4]
mov dword [ebp + 0x18], edx
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0x20], eax
mov ecx, dword [ebx + 0x10]
lea esi, [ebp + 0x154]
mov dword [ebp + 0x24], ecx
mov ecx, 0x82
xor eax, eax
mov edi, esi
add ebx, 0x140
rep stosd dword es:[edi], eax
push ebx
call fcn.12f5c51d
add esp, 4
mov ecx, ebx
test eax, eax
jbe 0x12e2a217
sub esi, ebx
mov dx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
dec eax
jne 0x12e2a20a
lea edx, [ebp + 0x28]
mov esi, dword [esp + 0x10]
mov ecx, 0x4b
xor eax, eax
mov edi, edx
push ebp
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.12f03130
mov ecx, eax
call fcn.12f027f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x35c
ret