Function at 0x40317a
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Get file size
Move file
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
push esi
push edi
mov dword [ebp - 0x4b8], ecx
mov ecx, 5
mov esi, str.TASAntiPhishing.dll
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 6
mov esi, str.TASAntiPhishing__d.dll
lea edi, [ebp - 0x4ac]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x44c0b0]
mov dword [ebp - 0x270], eax
mov ecx, dword [0x44c0b4]
mov dword [ebp - 0x26c], ecx
mov dl, byte [0x44c0b8]
mov byte [ebp - 0x268], dl
mov byte [ebp - 0x258], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x257]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x480], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x47f]
rep stosd dword es:[edi], eax
mov eax, dword [str.TAPToggleOn]
mov dword [ebp - 0x494], eax
mov ecx, dword [0x44c0c0]
mov dword [ebp - 0x490], ecx
mov edx, dword [0x44c0c4]
mov dword [ebp - 0x48c], edx
mov dword [ebp - 0x488], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x484], 0xffffffff
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x120], 0xffffffff
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x264], 0
mov byte [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov byte [ebp - 0x11c], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x378], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x377]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x144], 0
push 0x6c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x124], 0
push 0x104
lea edx, [ebp - 0x378]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403312
jmp 0x4037c2
xor eax, eax
test eax, eax
jne 0x4032f5
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x378]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
jne 0x403343
jmp 0x4037c0
xor eax, eax
test eax, eax
jne 0x403335
cmp dword [ebp - 0x144], 0
je 0x40335b
mov ecx, dword [ebp - 0x144]
mov byte [ecx], 0
lea edx, [ebp - 0x378]
push edx
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x258]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x378]
push eax
lea ecx, [ebp - 0x480]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x4ac]
push edx
lea eax, [ebp - 0x480]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
cmp dword [0x456d24], 0
je 0x4033c1
jmp 0x4037be
xor ecx, ecx
test ecx, ecx
jne 0x4033b3
push 0
push 0x80
push 3
push 0
push 1
push connect
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0xffffffff
je 0x403516
push 0
mov eax, dword [ebp - 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
jbe 0x4034b6
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
je 0x4034b6
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x4034b6
cmp dword [ebp - 0x140], 0
je 0x4034b6
mov ecx, dword [ebp - 0x140]
call fcn.0040102c
mov eax, dword [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
mov ecx, dword [ebp - 0x140]
call fcn.00401079
push 0x10
mov ecx, dword [ebp - 0x140]
call fcn.00401000
push eax
lea edx, [ebp - 0x14]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x148], 1
cmp dword [ebp - 0x14c], 0
je 0x4034d6
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x14c], 0
cmp dword [ebp - 0x25c], 0
je 0x4034f6
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x25c], 0
cmp dword [ebp - 0x484], 0
je 0x403516
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x484], 0xffffffff
mov eax, dword [ebp - 0x150]
add eax, 1
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
push ecx
lea edx, [ebp - 0x480]
push edx
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
cmp dword [ebp - 0x264], 0
jne 0x4036c5
cmp dword [ebp - 0x148], 0
je 0x4036c5
push 0
push 0x80
push 3
push 0
push 1
push connect
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0xffffffff
je 0x403665
push 0
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
jbe 0x403665
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
je 0x403665
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x403665
cmp dword [ebp - 0x140], 0
je 0x403665
mov ecx, dword [ebp - 0x140]
call fcn.0040102c
mov edx, dword [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x140]
call fcn.00401079
push 0x10
mov ecx, dword [ebp - 0x140]
call fcn.00401000
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x403665
mov dword [ebp - 0x264], 1
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x120], edx
cmp dword [ebp - 0x14c], 0
je 0x403685
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x14c], 0
cmp dword [ebp - 0x25c], 0
je 0x4036a5
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x25c], 0
cmp dword [ebp - 0x484], 0
je 0x4036c5
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x484], 0xffffffff
push 4
push 0
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403516
cmp dword [ebp - 0x264], 0
je 0x40371e
mov edx, dword [ebp - 0x120]
push edx
lea eax, [ebp - 0x480]
push eax
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
jmp 0x403734
push 0
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x456d24], eax
cmp dword [0x456d24], 0
jne 0x403751
jmp 0x4037bc
xor edx, edx
test edx, edx
jne 0x403746
lea eax, [ebp - 0x494]
push eax
mov ecx, dword [0x456d24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x403790
mov edx, dword [0x456d24]
push edx
call dword [ebp - 0x124]
add esp, 4
mov dword [ebp - 0x488], eax
cmp dword [ebp - 0x140], 0
je 0x4037b4
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x4b4], eax
mov ecx, dword [ebp - 0x4b4]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x488]
jmp 0x4037c4
jmp 0x403790
jmp 0x403790
jmp 0x403790
jmp 0x403790
pop edi
pop esi
mov esp, ebp
pop ebp
ret