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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036c6b
mov eax, dword fs:[0]
push eax
sub esp, 0xc20
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc24], eax
lea eax, [ebp - 0xc10]
push 0x400
mov dword [ebp - 0xc2c], edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc1c], edi
mov dword [ebp - 0xc20], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0xc10]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1002df10
mov eax, dword [str._rundll32.exe]
mov dword [ecx], eax
mov eax, dword [0x1003b500]
mov dword [ecx + 4], eax
mov eax, dword [0x1003b504]
mov dword [ecx + 8], eax
mov ax, word [0x1003b508]
mov word [ecx + 0xc], ax
call sub.mfc140.dll_Ordinal_2241
push 0x400
lea ecx, [ebp - 0x810]
push ecx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x810]
push 0x5c
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
mov ecx, dword [ebp + 0x14]
add esp, 8
mov byte [eax + 1], 0
test ecx, ecx
jne 0x1002df8a
mov al, byte [ebp + ecx - 0x810]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x411], al
test al, al
jne 0x1002df73
jmp 0x1002dfc9
lea edx, [ebp - 0x410]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1002df92
lea ecx, [ebp - 0x410]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1002dfa6
mov eax, dword [str..temp_]
mov dword [ecx], eax
mov ax, word [0x1003b5d8]
mov word [ecx + 4], ax
mov al, byte [0x1003b5da]
mov byte [ecx + 6], al
lea ecx, [ebp - 0x810]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1002dfd0
mov eax, dword [0x1003b5dc]
mov dword [ecx], eax
mov eax, dword [0x1003b5e0]
mov dword [ecx + 4], eax
mov eax, dword [0x1003b5e4]
mov dword [ecx + 8], eax
mov al, byte [0x1003b5e8]
mov byte [ecx + 0xc], al
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xc18]
call dword [sym.imp.mfc140.dll_Ordinal_310]
lea ecx, [ebp - 0x410]
mov dword [ebp - 4], 1
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1002e020
mov eax, dword [str.rsrcutil.dll]
xor ebx, ebx
mov dword [ecx], eax
mov eax, dword [0x1003b5f0]
mov dword [ecx + 4], eax
mov eax, dword [0x1003b5f4]
mov dword [ecx + 8], eax
mov ax, word [0x1003b5f8]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x410]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x1002e11f
nop word [eax + eax]
lea ecx, [ebp - 0xc18]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
lea edx, [ebp - 0x410]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x1002e084
lea ecx, [ebp - 0xc14]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push ebx
lea eax, [ebp - 0xc14]
mov byte [ebp - 4], 2
push str.rsrcutil_d.dll
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0xc
lea ecx, [ebp - 0xc14]
inc ebx
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov edx, eax
mov esi, eax
mov al, byte [edx]
inc edx
test al, al
jne 0x1002e0c8
lea edi, [ebp - 0x410]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002e0d8
mov ecx, edx
mov byte [ebp - 4], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xc14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea eax, [ebp - 0x410]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x1002e070
mov edi, dword [ebp - 0xc1c]
push 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x810]
push eax
call esi
lea eax, [ebp - 0x410]
push eax
call esi
mov ecx, edi
call dword [sym.imp.mfc140.dll_Ordinal_316]
push dword [ebp - 0xc24]
lea eax, [ebp - 0x410]
mov dword [ebp - 0xc20], 1
push dword [ebp - 0xc28]
push eax
lea eax, [ebp - 0xc10]
push eax
push str._s___s__RSRCUtil__s__s
push edi
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0x18
lea ecx, [ebp - 0xc18]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret 0x10