Function at 0x408630
Capabilities:
Copy file

Disassembly:
sub esp, 0x2d8
xor eax, eax
push ebx
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 8], eax
mov dword [esp + 0x3c], eax
push esi
lea eax, [esp + 0x14c]
push edi
push eax
mov dword [esp + 0x154], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x104
push 0x40
call esi
push 0x104
push 0x40
mov dword [esp + 0x28], eax
call esi
mov ebp, eax
push 0x104
push 0x40
mov dword [esp + 0x48], ebp
call esi
push 0x104
push 0x40
mov ebx, eax
call esi
push 0x104
push 0x40
mov dword [esp + 0x20], eax
call esi
push 0x104
push 0x40
mov dword [esp + 0x2c], eax
call esi
push 0x104
push 0x40
mov dword [esp + 0x30], eax
call esi
push 0x104
push 0x40
mov dword [esp + 0x1c], eax
call esi
or ecx, 0xffffffff
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x2c], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
add edi, 0x10b
push edi
push 0x40
call esi
push edi
push 0x40
mov dword [esp + 0x38], eax
call esi
push edi
push 0x40
mov dword [esp + 0x3c], eax
call esi
test ebp, ebp
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
je 0x408d22
test edi, edi
je 0x408d22
mov eax, dword [esp + 0x28]
test eax, eax
je 0x408d22
mov eax, dword [esp + 0x20]
test eax, eax
je 0x408d22
mov esi, dword [esp + 0x14]
test esi, esi
je 0x408d22
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x408d22
test ebx, ebx
je 0x408d22
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x408d22
cmp dword [esp + 0x30], 0
je 0x408d22
cmp dword [esp + 0x34], 0
je 0x408d22
cmp dword [esp + 0x1c], 0
je 0x408d22
mov byte [ecx], 0
mov ecx, dword [esp + 0x28]
mov byte [eax], 0
mov byte [esi], 0
mov byte [edx], 0
mov byte [ebp], 0
mov byte [edi], 0
push 4
mov byte [ecx], 0
call fcn.00408dbb
add esp, 4
test eax, eax
je 0x4087ad
mov ecx, eax
call fcn.00407260
jmp 0x4087af
xor eax, eax
push str.EPSTP32U.CAB
push 0x81
push 0
mov dword [0x415d00], eax
call fcn.00407b50
push 0x104
push ebx
call fcn.00407a80
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x30c]
push eax
push ecx
push edx
call fcn.00407f00
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 0x24
mov dword [esp + 0x38], eax
push 0x104
push ebx
push 0
call ebp
push 0x5c
push ebx
call fcn.00409331
inc eax
push str.epinstus.exe
push eax
call fcn.0040e820
add esp, 0x10
test eax, eax
jne 0x40882b
mov dword [esp + 0x10], 1
jmp 0x4088b9
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4088b9
push 0x104
push ebx
push 0
call ebp
push 0x2e
push ebx
call fcn.00409331
mov edx, eax
mov edi, 0x4123c0
or ecx, 0xffffffff
xor eax, eax
inc edx
push 0x104
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00407a80
mov edi, str.EPSTP32U.DAT
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, dword [esp + 0x1c]
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 eax, dword [esp + 0x1c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x104
push ebx
call fcn.00407a80
mov eax, dword [0x4122e8]
add esp, 8
test eax, eax
je 0x4088f8
call fcn.00408540
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x48], eax
jne 0x4088f8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408a2e
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408a2e
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x4c]
push ecx
push 0x104
push edx
push ebx
push str.EPSTP32U.CAB
push 0
call fcn.004085e0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
add esp, 0x18
lea eax, [esp + 0x4c]
push 2
push 0
push eax
call esi
mov edi, eax
test edi, edi
je 0x408a2e
push str.EPSETUP.CAB
push 0x6f
push edi
call fcn.00407b50
add esp, 0xc
test eax, eax
je 0x408a27
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x4c]
push ecx
push 0x104
push edx
push ebx
push str.EPSETUP.CAB
push 1
call fcn.004085e0
add esp, 0x18
lea eax, [esp + 0x4c]
push 2
push 0
push eax
call esi
lea edx, [esp + 0x4c]
mov esi, eax
mov ecx, dword [esp + 0x14]
push ecx
push 0x104
push edx
push ebx
push str.EPSETUP.CAB
push 5
call fcn.004085e0
add esp, 0x18
test esi, esi
je 0x408a27
push str.EPPRTDRV.CAB
push 0x81
push esi
call fcn.00407b50
add esp, 0xc
test eax, eax
je 0x408a20
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x4c]
push eax
push 0x104
push ecx
push ebx
push str.EPPRTDRV.CAB
push 2
call fcn.004085e0
mov eax, dword [esp + 0x28]
add esp, 0x18
test eax, eax
je 0x408a20
cmp dword [esp + 0x160], 2
je 0x408a20
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x4c]
push edx
push 0x104
push eax
push ebx
push str.EPPRTDRV.CAB
push 3
call fcn.004085e0
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x64]
push ecx
push 0x104
push edx
push ebx
push str.EPPRTDRV.CAB
push 4
call fcn.004085e0
add esp, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1e4]
push 0x104
push eax
push 0
call ebp
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408aaa
mov ecx, dword [0x4122e8]
test ecx, ecx
je 0x408aaa
mov ebp, dword [esp + 0x34]
cmp byte [ebp], 0
je 0x408aaa
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
push ecx
xor esi, esi
push edi
push ebp
push esi
call fcn.004082f0
add esp, 0x10
test eax, eax
je 0x408b4f
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1e4]
push edx
push eax
push ecx
call fcn.00408090
mov edx, dword [esp + 0x28]
inc esi
push edx
push edi
push ebp
push esi
call fcn.004082f0
add esp, 0x1c
test eax, eax
jne 0x408a79
jmp 0x408b4f
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x408aba
test eax, eax
jne 0x408b4f
mov edi, dword [esp + 0x2f4]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408b35
mov ecx, dword [esp + 0x14]
push 0x104
push ecx
call fcn.00407a80
mov edi, dword [0x4122e4]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x408b39
mov eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0x1e8]
push eax
push ebp
call fcn.00408090
add esp, 0xc
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
je 0x408b61
push eax
call fcn.00407d40
add esp, 4
mov eax, dword [esp + 0x2c]
cmp byte [eax], 0
je 0x408b73
push eax
call fcn.00407d40
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408b83
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408b99
mov eax, dword [esp + 0x40]
cmp byte [eax], 0
je 0x408b99
push eax
call fcn.00407d40
add esp, 4
mov esi, eax
jmp 0x408b9d
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x408baf
push eax
call fcn.00407d40
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408bf9
mov eax, dword [esp + 0x38]
test eax, eax
je 0x408bf9
test esi, esi
je 0x408bf9
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x408bd5
push eax
call fcn.00407d40
add esp, 4
mov eax, dword [esp + 0x28]
cmp byte [eax], 0
je 0x408be7
push eax
call fcn.00407d40
add esp, 4
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x408bf9
push eax
call fcn.00407d40
add esp, 4
lea ecx, [esp + 0x4c]
push 0x104
push ecx
call fcn.00407a80
lea edi, [esp + 0x54]
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, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.EPSTP32U.CAB
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x54]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407d40
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.EPSETUP.CAB
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407d40
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.EPPRTDRV.CAB
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x5c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407d40
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x38]
add esp, 0x14
jmp 0x408d2a
mov dword [esp + 0x3c], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebp, ebp
je 0x408d37
push ebp
call esi
test edi, edi
je 0x408d3e
push edi
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x408d49
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x408d54
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408d5f
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x408d6a
push eax
call esi
test ebx, ebx
je 0x408d71
push ebx
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408d7c
push eax
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x408d87
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x408d92
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408d9d
push eax
call esi
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d8
ret 0x10