Function at 0x40a3e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4c6af0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x168], ecx
mov eax, dword [str.D:PHISON_Log]
mov dword [ebp - 0x140], eax
mov ecx, dword [0x4ae6e4]
mov dword [ebp - 0x13c], ecx
mov edx, dword [0x4ae6e8]
mov dword [ebp - 0x138], edx
mov ax, word [0x4ae6ec]
mov word [ebp - 0x134], ax
mov ecx, dword [str.Datalog]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x4ae6f4]
mov dword [ebp - 0xc], edx
mov al, byte [0x4ae6f8]
mov byte [ebp - 8], al
mov ecx, dword [str.ExtFtp]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x4ae700]
mov dword [ebp - 0x14], edx
mov eax, dword [str.MPlog]
mov dword [ebp - 0x130], eax
mov cx, word [0x4ae708]
mov word [ebp - 0x12c], cx
mov dl, byte [0x4ae70a]
mov byte [ebp - 0x12a], dl
mov eax, dword [0x4ae70c]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x4ae710]
mov dword [ebp - 0x20], ecx
mov dl, byte [0x4ae714]
mov byte [ebp - 0x1c], dl
mov byte [ebp - 0x25], 0
cmp dword [ebp + 8], 0
jne 0x40a4fb
push 0x517210
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
je 0x40a4c3
mov eax, dword [ebp - 0x144]
and eax, 0x10
jne 0x40a4f6
push 0x517210
push 0x4ae718
lea ecx, [ebp - 0x128]
push ecx
call fcn.0044fc6a
add esp, 0xc
push 0
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a66d
push 8
push 0
lea eax, [ebp - 0x14c]
push eax
call fcn.0044fbf0
add esp, 0xc
mov ecx, dword [ebp + 8]
and ecx, 1
je 0x40a5d6
push 0
lea edx, [ebp - 0x154]
push edx
lea eax, [ebp - 0x150]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x160]
push ecx
push 0
push 0
call sub.NETAPI32.dll_NetWkstaTransportEnum
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x164], 1
jmp 0x40a569
mov eax, dword [ebp - 0x164]
add eax, 1
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
cmp ecx, dword [ebp - 0x150]
jae 0x40a5c4
lea edx, [ebp - 0x147]
push edx
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x149]
push ecx
lea edx, [ebp - 0x14a]
push edx
lea eax, [ebp - 0x14b]
push eax
lea ecx, [ebp - 0x14c]
push ecx
push str._2hx_2hx_2hx_2hx_2hx_2hx
mov edx, dword [ebp - 0x164]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + edx + 0xc]
push ecx
call fcn.0045175c
add esp, 0x20
jmp 0x40a55a
mov edx, dword [ebp - 0x160]
push edx
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - 0x15c], eax
movzx eax, byte [ebp - 0x147]
push eax
movzx ecx, byte [ebp - 0x148]
push ecx
push str._02X_02X
push 0x51660c
call fcn.0044fc6a
add esp, 0x10
lea edx, [ebp - 0x140]
push edx
push 0x4ae75c
lea eax, [ebp - 0x128]
push eax
call fcn.0044fc6a
add esp, 0xc
push 0
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x140]
push eax
push 0x4ae760
lea ecx, [ebp - 0x128]
push ecx
call fcn.0044fc6a
add esp, 0x10
push 0
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x140]
push ecx
push str._s_s_
push 0x516788
call fcn.0044fc6a
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e8ae
mov esp, ebp
pop ebp
ret 4