Function at 0x40d4c0
Capabilities:
Check if file exists
Copy file
Create process on windows
Move file
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf618
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4f7458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x164], ecx
push str.EstEspecialConfig.ini
mov eax, dword [ebp - 0x164]
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
push ecx
push 0
push str.tpylogger
push str.JIANGUANG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x75], al
mov edx, dword [ebp - 0x7c]
sub edx, 0x10
mov dword [ebp - 0xa4], edx
mov ecx, dword [ebp - 0xa4]
call fcn.00403de0
movzx eax, byte [ebp - 0x75]
test eax, eax
je 0x40d577
push str.tpylogger_not_set..
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.004028d0
add esp, 8
xor eax, eax
jmp 0x40db7a
push str.TisFileLogFilterTiSFileLogFilter.inf
mov edx, dword [ebp - 0x164]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 4], 0
push str.TisFileLogFilterTiSFileLogFilter.sys
mov ecx, dword [ebp - 0x164]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0040f970
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x4f89c8
call fcn.0042d1d0
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x16c], ecx
mov byte [ebp - 4], 2
push str.TiSFileLogFilter.sys
mov edx, dword [ebp - 0x16c]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0040f970
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x80]
sub ecx, 0x10
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0xa8]
call fcn.00403de0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d632
push 0x80
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, 0x4f89c8
call fcn.00434fb0
test eax, eax
je 0x40d67d
push 0
call fcn.00435150
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40d669
push str.DoUpdate_WowFsRedirection__FALSE__Succeed.
mov edx, dword [ebp - 0x164]
push edx
call fcn.004028d0
add esp, 8
jmp 0x40d67d
push str.DoUpdate_WowFsRedirection__FALSE__Fail.
mov eax, dword [ebp - 0x164]
push eax
call fcn.004028d0
add esp, 8
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d8b3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xb8], ecx
push 0
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40d6ef
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push str.UpdateDrivers_Copy_Driver_File_ToClient_Succeed__s_____s.
mov eax, dword [ebp - 0x164]
push eax
call fcn.004028d0
add esp, 0x10
jmp 0x40d8b3
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateDrivers_Copy_Driver_File_Fail___LastError___d___s_____s__will_RenameCopy
mov eax, dword [ebp - 0x164]
push eax
call fcn.004028d0
add esp, 0x14
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x164]
call fcn.004040d0
test eax, eax
jne 0x40d8ac
push str..tmp
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0040f970
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc0], eax
push 0
mov ecx, dword [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40d7dd
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateDrivers_Copy_Client_File_Fail__MoveFileEx___LastError___d___s_____s.
mov edx, dword [ebp - 0x164]
push edx
call fcn.004028d0
add esp, 0x14
mov dword [ebp - 0x84], 5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.00402470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402470
mov eax, dword [ebp - 0x84]
jmp 0x40db7a
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateDrivers_Copy_Driver_File_Fail___LastError___d___s_____s__will_RebootCopy
mov edx, dword [ebp - 0x164]
push edx
call fcn.004028d0
add esp, 0x14
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xd8], ecx
push 5
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40d897
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateDrivers_Move_Driver_File_Fail__MoveFileEx___LastError___d___s_____s.
mov eax, dword [ebp - 0x164]
push eax
call fcn.004028d0
add esp, 0x14
mov dword [ebp - 0x88], 5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.00402470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402470
mov eax, dword [ebp - 0x88]
jmp 0x40db7a
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.00402470
jmp 0x40d8b3
mov dword [ebp - 0x1c], 1
mov ecx, 0x4f89c8
call fcn.00434fb0
test eax, eax
je 0x40d8fe
push 1
call fcn.00435150
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40d8ea
push str.DoUpdate_WowFsRedirection__TRUE__Succeed.
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.004028d0
add esp, 8
jmp 0x40d8fe
push str.DoUpdate_WowFsRedirection__TRUE__Fail.
mov edx, dword [ebp - 0x164]
push edx
call fcn.004028d0
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40db43
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0xf4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40db43
lea ecx, [ebp - 0x74]
call fcn.004023d0
mov byte [ebp - 4], 6
cmp dword [ebp + 8], 0
je 0x40d993
mov ecx, str.DefaultInstall
test ecx, ecx
jne 0x40d961
mov dword [ebp - 0x104], 0
jmp 0x40d974
push str.DefaultInstall
call fcn.0048bb5c
add esp, 4
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0x104]
push edx
push str.DefaultInstall
lea ecx, [ebp - 0x74]
call fcn.00411b20
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], eax
jmp 0x40d9d8
mov ecx, str.DefaultUninstall
test ecx, ecx
jne 0x40d9a8
mov dword [ebp - 0x108], 0
jmp 0x40d9bb
push str.DefaultUninstall
call fcn.0048bb5c
add esp, 4
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
push edx
push str.DefaultUninstall
lea ecx, [ebp - 0x74]
call fcn.00411b20
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x6c]
call fcn.004023d0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x74]
push edx
push str.setupapi_InstallHinfSection__s_132__s
lea eax, [ebp - 0x6c]
push eax
call fcn.004024b0
add esp, 0x10
push str.C:WINDOWSSystem32_rundll32.exe
lea ecx, [ebp - 0x70]
call fcn.00411290
mov dword [ebp - 0x68], 0
push 0x38
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.0048ac80
add esp, 0xc
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], 0x440
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40daba
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x70]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c]
call fcn.00402470
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.00402470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402470
mov eax, dword [ebp - 0x90]
jmp 0x40db7a
mov dword [ebp - 0x2c], 0xffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x2c], 0
sete al
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x70]
call fcn.00402470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c]
call fcn.00402470
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.00402470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402470
mov eax, dword [ebp - 0x94]
jmp 0x40db7a
mov dword [ebp - 0x98], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402470
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4