Function at 0x10002940
Capabilities:
Copy file
Delete file
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4a87
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1148
call fcn.100b3c30
mov eax, dword [0x1011b92c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x1138], edi
mov dword [ebp - 0x1140], eax
mov dword [ebp - 0x113c], 0x80070057
cmp dword [0x1011b96c], ebx
jne 0x10002a41
lea ecx, [ebp - 0x1134]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x1134]
push str.7347baa5_ddad_428a_bbed_3a95b53237f7
push ecx
mov dword [ebp - 4], ebx
call fcn.10002580
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 8
test al, al
jne 0x100029d4
push str.PWH:Unable_to_get_npdf.dll_path
call esi
lea ecx, [ebp - 0x1134]
call dword [sym.imp.mfc100u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1011b96c], eax
cmp eax, ebx
jne 0x10002a0d
push str.PWH:Unable_to_load_npdf.dll
call esi
lea ecx, [ebp - 0x1134]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 0x80070057
jmp 0x10002dec
push eax
call fcn.1000e280
add esp, 4
test eax, eax
je 0x10002b3e
mov edx, dword [0x1011b96c]
push edx
call fcn.1000e1c0
add esp, 4
test eax, eax
je 0x10002b3e
lea ecx, [ebp - 0x1134]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [edi + 0x24]
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
mov dword [edi + 0x30], ebx
cmp eax, ebx
je 0x10002a6b
mov ecx, dword [0x1011b990]
mov edx, dword [ecx + 0x11c]
push eax
call edx
add esp, 4
mov dword [edi + 0x24], ebx
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x10002a83
push eax
mov eax, dword [0x1011b980]
mov ecx, dword [eax + 0x74]
call ecx
add esp, 4
mov dword [edi + 0x28], ebx
lea esi, [edi + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
push ebx
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x20]
cmp ecx, ebx
je 0x10002ab3
mov eax, dword [edi + 0x24]
push eax
call fcn.1000d8f0
push 0x208
lea ecx, [ebp - 0x21c]
push ebx
mov dword [ebp - 4], 5
push ecx
mov byte [ebp - 4], 6
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x112c]
mov byte [ebp - 0x112d], bl
call fcn.1000f720
push ebx
lea ecx, [ebp - 0x112c]
mov byte [ebp - 4], 7
call fcn.1000f7c0
cmp al, bl
jne 0x10002c45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x814]
push str.PWH:GetTempPath_failed_with_error_:__d
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x112c]
mov byte [ebp - 4], 6
call fcn.1000f4b0
mov eax, 0x80070057
jmp 0x10002dec
mov eax, dword [0x1011b96c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1011b96c], ebx
push str.PWH:Unable_to_initialize_npdf.dll
jmp 0x100029f5
lea ecx, [ebp - 0x112c]
call fcn.1000f590
mov ecx, eax
lea edx, [ebp - 0x21c]
jmp 0x10002c60
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x10002c60
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push 0x100b81d8
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10002cee
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x10002caf
push str.PWH:No_write_permissions
mov byte [ebp - 0x112d], 1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10002d51
call esi
push eax
lea eax, [ebp - 0x814]
push str.PWH:GetTempFileName_failed_with_error_:__d
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x112c]
mov byte [ebp - 4], 6
call fcn.1000f4b0
mov eax, dword [ebp - 0x113c]
jmp 0x10002dec
cmp byte [ebp - 0x112d], bl
jne 0x10002d51
mov eax, dword [ebp - 0x1140]
push ebx
lea edx, [ebp - 0x21c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10002d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x814]
push str.PWH:CopyFile_failed_with_error_:__d
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x814]
push edx
jmp 0x10002cce
lea ecx, [ebp - 0x21c]
lea edx, [edi + 0x34]
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x10002d40
mov ecx, dword [ebp - 0x1140]
lea edx, [edi + 0x23c]
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x10002d60
lea eax, [edi + 0x23c]
cmp byte [ebp - 0x112d], bl
jne 0x10002d82
lea eax, [edi + 0x34]
push ebx
push 0x80
push 3
push ebx
push 5
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10002cd4
lea esi, [edi + 0x28]
push esi
push ebx
push eax
mov eax, dword [0x1011b980]
mov ecx, dword [eax + 0xc8]
call ecx
mov eax, dword [0x1011b990]
add esp, 0xc
mov byte [0x1011704f], bl
mov edx, dword [esi]
mov ecx, dword [eax + 0x428]
push 1
push 0x100030f0
push edx
call ecx
add esp, 0xc
lea ecx, [ebp - 0x112c]
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 6
call fcn.1000f4b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b3ac1
mov esp, ebp
pop ebp
ret 0xc