Function at 0x40b4a0
Capabilities:
Copy file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x200
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x40b6bf
mov ebp, dword [esp + 0x21c]
mov ecx, 0x40
lea edi, [esp + 0x10]
push ebp
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
push eax
mov eax, dword [ebx + 0xa8]
push eax
push 0x101d0
push str.ICONLIB.DLL
call fcn.00401b90
add esp, 0x14
lea ecx, [esp + 0x10]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40b542
push 0x44a3f8
mov ecx, 0x4501e8
call fcn.004054a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret 0xc
mov edi, 0x44a288
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40b5c2
push 0x44a3f8
mov ecx, 0x4501e8
call fcn.004054a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret 0xc
or ecx, 0xffffffff
mov edi, str.UNIDRV.DLL
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.Sysbckup_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.UNIDRV.DLL
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
lea eax, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40b6ab
lea ecx, [esp + 0x10]
push 1
lea edx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40b724
push ebp
push eax
mov eax, dword [ebx + 0xa8]
push eax
push 0x101d0
push str.UNIDRV.DLL
call fcn.00401b90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret 0xc
cmp eax, 2
jl 0x40b724
mov eax, dword [esp + 0x218]
test eax, eax
je 0x40b724
mov esi, dword [esp + 0x21c]
mov ecx, dword [ebx + 0xa8]
push esi
push 0
push ecx
push 0x101d0
push str.TTFSUB.GPD
call fcn.00401b90
mov edx, dword [ebx + 0xa8]
push esi
push 0
push edx
push 0x101d0
push str.STDNAMES.GPD
call fcn.00401b90
mov eax, dword [ebx + 0xa8]
push esi
push 0
push eax
push 0x101d0
push str.UNIRES.DLL
call fcn.00401b90
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret 0xc