Function at 0x49f2a0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x549d29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov eax, dword [0x5b8cb0]
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [0x5b8cb4]
push esi
push edi
push 0x5b89d8
lea edi, [ecx + 0x38]
lea ecx, [esp + 0x2c]
lea ebx, [eax + 0x38]
call fcn.00512659
lea edx, [esp + 0x28]
mov dword [esp + 0xe8], 0
push edx
call fcn.0041f9c0
add esp, 4
lea ecx, [esp + 0x10]
push str.MSSP232.DLL
call fcn.00512952
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
mov byte [esp + 0xec], 1
call fcn.0049f260
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xe8], 0
call fcn.005128e4
test esi, esi
je 0x49f55e
test byte [esi + 0xb8], 0x30
je 0x49f55e
lea ecx, [esp + 0x88]
call fcn.00459ce0
push 0xa
lea ecx, [esp + 0x48]
mov byte [esp + 0xec], 2
call fcn.00510deb
mov ecx, dword [0x5ab980]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x64]
mov byte [esp + 0xe8], 4
push edx
push str.1.63.5626.0
call fcn.00422fb0
mov eax, dword [esi + 0x64]
mov ecx, dword [esp + 0x70]
add esi, 0x60
add esp, 8
cmp eax, ecx
ja 0x49f528
jb 0x49f3a7
mov ecx, dword [esi]
mov eax, dword [esp + 0x64]
cmp ecx, eax
jae 0x49f528
mov edx, dword [0x5ab980]
mov dword [esp + 0x14], edx
push str.CommonFilesDirEx
lea ecx, [esp + 0x14]
mov byte [esp + 0xec], 5
call fcn.00512952
mov edx, dword [0x5b8cb4]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [edx + 0x10]
mov byte [esp + 0xf0], 6
call fcn.00495ca0
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], 5
call fcn.005128e4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49f517
lea ecx, [esp + 0x14]
push str.Microsoft_SharedProof_
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00512b79
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 7
call fcn.00512a1d
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], 5
call fcn.005128e4
lea eax, [esp + 0x44]
lea ecx, [esp + 0x30]
push eax
push ecx
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.00512659
call fcn.004201f0
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push str.00004.dat
push eax
push ecx
call fcn.00512b79
lea edx, [esp + 0x18]
lea ecx, [esp + 0x88]
push edx
push eax
mov byte [esp + 0xf0], 8
call fcn.00459fa0
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xe8], 5
call fcn.005128e4
test esi, esi
jg 0x49f4dd
push str.____TECH0102a_r_n
lea ecx, [esp + 0x14]
call fcn.00512952
lea eax, [esp + 0x10]
mov ecx, 0x5bc81c
push eax
push 6
push 5
mov byte [esp + 0xf4], 9
call fcn.004bf410
mov byte [esp + 0xe8], 5
lea ecx, [esp + 0x10]
jmp 0x49f512
push str._x__TECH0102a_r_n
lea ecx, [esp + 0x14]
call fcn.00512952
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], 0xa
push ecx
push 6
push 5
mov ecx, 0x5bc81c
call fcn.004bf410
mov byte [esp + 0xe8], 5
lea ecx, [esp + 0x10]
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8], 4
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0xe8], 3
call fcn.005128e4
lea ecx, [esp + 0x44]
mov byte [esp + 0xe8], 2
call fcn.00510e5f
lea ecx, [esp + 0x88]
mov byte [esp + 0xe8], 0
call fcn.00459d20
mov ecx, dword [edi + 0x10]
mov eax, 2
cmp ecx, eax
jne 0x49fb99
cmp dword [ebx + 0x10], eax
je 0x49fb99
push str.OUTLOOK.EXE
lea ecx, [esp + 0x14]
call fcn.00512952
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
mov byte [esp + 0xec], 0xb
call fcn.0049f260
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xe8], 0
call fcn.005128e4
test esi, esi
je 0x49fb99
test byte [esi + 0xb8], 0x30
je 0x49fb99
mov eax, dword [esi + 0x60]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x64]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x88]
call fcn.00459ce0
push 0xa
lea ecx, [esp + 0x48]
mov byte [esp + 0xec], 0xc
call fcn.00510deb
mov eax, dword [0x5ab980]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x3c]
mov byte [esp + 0xe8], 0xe
mov ecx, edx
shr ecx, 0x10
cmp cx, 0xa
jne 0x49f7f5
push 1
push str.InstalledOnWin2k
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice10.0CommonGeneral
call fcn.0041e5a0
mov edx, dword [0x5ab980]
add esp, 0xc
mov dword [esp + 0x14], edx
mov bl, 0xf
push str.CommonFilesDirEx
lea ecx, [esp + 0x14]
mov byte [esp + 0xec], bl
call fcn.00512952
mov edx, dword [0x5b8cb4]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [edx + 0x10]
mov byte [esp + 0xf0], 0x10
call fcn.00495ca0
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], bl
call fcn.005128e4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49f7e4
lea ecx, [esp + 0x38]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00407140
add esp, 8
mov esi, eax
lea eax, [esp + 0x14]
push str.systemmapi_
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0xf4], 0x11
call fcn.00512b79
push esi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0xf4], 0x12
call fcn.00512b13
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 0x13
call fcn.00512a1d
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], 0x12
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0xe8], 0x11
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe8], bl
call fcn.005128e4
lea eax, [esp + 0x44]
lea ecx, [esp + 0x20]
push eax
push ecx
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00512659
call fcn.004201f0
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push str.00050.dat
push eax
push ecx
call fcn.00512b79
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x88]
push edx
push eax
mov byte [esp + 0xf0], 0x14
call fcn.00459fa0
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xe8], bl
call fcn.005128e4
test esi, esi
jg 0x49f7ab
push str.____TECH0050_r_n
lea ecx, [esp + 0x14]
call fcn.00512952
lea eax, [esp + 0x10]
mov ecx, 0x5bc81c
push eax
push 6
push 5
mov byte [esp + 0xf4], 0x15
call fcn.004bf410
mov byte [esp + 0xe8], bl
lea ecx, [esp + 0x10]
jmp 0x49f7df
push str._x__TECH0050_r_n
lea ecx, [esp + 0x14]
call fcn.00512952
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], 0x16
push ecx
push 6
push 5
mov ecx, 0x5bc81c
call fcn.004bf410
mov byte [esp + 0xe8], bl
lea ecx, [esp + 0x10]
call fcn.005128e4
mov byte [esp + 0xe8], 0xe
lea ecx, [esp + 0x14]
jmp 0x49fb5e
cmp cx, 9
jne 0x49f9c8
mov dword [esp + 0x14], eax
mov bl, 0x17
push str.CommonFilesDirEx
lea ecx, [esp + 0x14]
mov byte [esp + 0xec], bl
call fcn.00512952
mov ecx, dword [0x5b8cb4]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
add ecx, 0x10
mov byte [esp + 0xf0], 0x18
call fcn.00495ca0
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], bl
call fcn.005128e4
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x49f9b7
lea eax, [esp + 0x38]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00407140
add esp, 8
mov esi, eax
lea edx, [esp + 0x14]
push str.systemmapi_
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0xf4], 0x19
call fcn.00512b79
push esi
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0xf4], 0x1a
call fcn.00512b13
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 0x1b
call fcn.00512a1d
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], 0x1a
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0xe8], 0x19
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe8], bl
call fcn.005128e4
lea edx, [esp + 0x44]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00512659
call fcn.004201f0
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push str.00000.dat
push eax
push ecx
call fcn.00512b79
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x88]
push edx
push eax
mov byte [esp + 0xf0], 0x1c
call fcn.00459fa0
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xe8], bl
call fcn.005128e4
test esi, esi
jg 0x49f97e
push str.____TECH0100_r_n
lea ecx, [esp + 0x14]
call fcn.00512952
lea eax, [esp + 0x10]
mov ecx, 0x5bc81c
push eax
push 6
push 5
mov byte [esp + 0xf4], 0x1d
call fcn.004bf410
mov byte [esp + 0xe8], bl
lea ecx, [esp + 0x10]
jmp 0x49f9b2
push str._x__TECH0100_r_n
lea ecx, [esp + 0x14]
call fcn.00512952
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], 0x1e
push ecx
push 6
push 5
mov ecx, 0x5bc81c
call fcn.004bf410
mov byte [esp + 0xe8], bl
lea ecx, [esp + 0x10]
call fcn.005128e4
mov byte [esp + 0xe8], 0xe
lea ecx, [esp + 0x14]
jmp 0x49fb5e
cmp cx, 8
jne 0x49faf3
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov bl, 0x20
cmp dx, 4
mov byte [esp + 0xe8], bl
jb 0x49fa1c
lea edx, [esp + 0x28]
push str.00003.dat
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00512b79
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0x21
call fcn.00512a1d
mov byte [esp + 0xe8], bl
lea ecx, [esp + 0x10]
jmp 0x49fa4d
lea ecx, [esp + 0x28]
push str.00002.dat
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00512b79
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0x22
call fcn.00512a1d
mov byte [esp + 0xe8], bl
lea ecx, [esp + 0x10]
call fcn.005128e4
mov eax, dword [0x5b8cb4]
lea ecx, [esp + 0x1c]
add eax, 0xf4
push eax
call fcn.00512a1d
lea ecx, [esp + 0x44]
lea edx, [esp + 0x20]
push ecx
push edx
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00512659
call fcn.004201f0
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x90]
call fcn.00459fa0
test eax, eax
mov eax, dword [esp + 0x18]
push eax
jg 0x49faaf
push str._____s_TECH0102_r_n
jmp 0x49fab4
push str._x___s_TECH0102_r_n
lea ecx, [esp + 0x1c]
push ecx
call fcn.0050e6c7
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, 0x5bc81c
push edx
push 6
push 5
call fcn.004bf410
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8], 0x1f
call fcn.005128e4
mov byte [esp + 0xe8], 0xe
lea ecx, [esp + 0x18]
jmp 0x49fb5e
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
mov bl, 0x23
push eax
push ecx
mov byte [esp + 0xf0], bl
call fcn.00423090
add esp, 8
mov edx, dword [eax]
lea eax, [esp + 0x14]
push edx
push str.TECH0000____s_r_n
push eax
mov byte [esp + 0xf4], 0x24
call fcn.0050e6c7
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], bl
call fcn.005128e4
lea ecx, [esp + 0x14]
push ecx
push 6
push 5
mov ecx, 0x5bc81c
call fcn.004bf410
mov byte [esp + 0xe8], 0xe
lea ecx, [esp + 0x14]
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe8], 0xd
call fcn.005128e4
lea ecx, [esp + 0x44]
mov byte [esp + 0xe8], 0xc
call fcn.00510e5f
lea ecx, [esp + 0x88]
mov byte [esp + 0xe8], 0
call fcn.00459d20
lea ecx, [esp + 0x70]
call fcn.00466340
lea edx, [esp + 0x70]
mov ecx, 0x5bc868
push edx
push str.OFFICEPROD.MSO_2000
mov byte [esp + 0xf0], 0x25
call fcn.0046c290
lea ecx, [esp + 0x70]
call fcn.004676a0
test eax, eax
je 0x49ffea
mov eax, dword [0x5bc5b8]
test eax, eax
jne 0x49ffea
push str.WINWORD.EXE
lea ecx, [esp + 0x14]
call fcn.00512952
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
mov byte [esp + 0xec], 0x26
call fcn.0049f260
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xe8], 0x25
call fcn.005128e4
test esi, esi
jne 0x49fc8b
push str.EXCEL.EXE
lea ecx, [esp + 0x24]
call fcn.00512952
lea ecx, [esp + 0x20]
mov byte [esp + 0xe8], 0x27
push ecx
mov ecx, ebp
call fcn.0049f260
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0xe8], 0x25
call fcn.005128e4
test esi, esi
jne 0x49fc8b
push str.POWERPNT.EXE
lea ecx, [esp + 0x28]
call fcn.00512952
lea edx, [esp + 0x24]
mov ecx, ebp
push edx
mov byte [esp + 0xec], 0x28
call fcn.0049f260
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0xe8], 0x25
call fcn.005128e4
test esi, esi
je 0x49ffea
mov eax, dword [esi + 0x64]
shr eax, 0x10
cmp eax, 9
jae 0x49ffea
mov eax, dword [0x5ab980]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
push 1
push ecx
push 0
push str.HKEY_CURRENT_USERSoftwareMicrosoftOffice8.0CommonFileNewLocalTemplates
mov byte [esp + 0xf8], 0x2c
call fcn.0041efa0
mov edx, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [edx - 8]
test eax, eax
je 0x49ffa6
lea eax, [esp + 0x18]
push eax
call fcn.0041f9c0
lea ecx, [esp + 0x18]
push 1
push ecx
push str.AppData
push str.HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.0041efa0
mov edx, dword [esp + 0x28]
add esp, 0x14
mov eax, dword [edx - 8]
test eax, eax
je 0x49ffa6
lea eax, [esp + 0x14]
push eax
call fcn.0041f9c0
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push str.MicrosoftTemplates_
push ecx
push edx
call fcn.00512b79
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xec], 0x2d
call fcn.00512a1d
lea ecx, [esp + 0x20]
mov byte [esp + 0xe8], 0x2c
call fcn.005128e4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call fcn.00512a1d
push 0xa
lea ecx, [esp + 0xc8]
call fcn.00510deb
lea ecx, [esp + 0xc4]
lea edx, [esp + 0x64]
push ecx
push edx
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0xf8], 0x2e
call fcn.00512659
call fcn.004201f0
add esp, 0xc
test eax, eax
je 0x49ff92
lea ecx, [esp + 0x44]
call fcn.004f0e65
mov eax, dword [0x5ab980]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
push 0x5966e4
lea edx, [esp + 0x38]
mov bl, 0x31
push ecx
push edx
mov byte [esp + 0xf4], bl
xor ebp, ebp
xor edi, edi
call fcn.00512b79
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0xf0], 0x32
call fcn.004f0f28
lea ecx, [esp + 0x34]
mov esi, eax
mov byte [esp + 0xe8], bl
call fcn.005128e4
test esi, esi
je 0x49ff17
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x44]
call fcn.004f1148
lea ecx, [esp + 0x44]
mov dword [esp + 0x30], eax
call fcn.004f110f
test eax, eax
jne 0x49ff0b
mov eax, dword [esp + 0x44]
push 0x10
lea ecx, [esp + 0x48]
call dword [eax + 0x38]
test eax, eax
jne 0x49ff0b
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x48]
call fcn.004f1340
push eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0xf4], 0x33
call fcn.00512b13
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xec], 0x34
call fcn.00512a1d
lea ecx, [esp + 0x34]
mov byte [esp + 0xe8], 0x33
call fcn.005128e4
lea ecx, [esp + 0x60]
mov byte [esp + 0xe8], bl
call fcn.005128e4
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x48]
call fcn.004f1340
push eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x70]
push edx
push eax
mov byte [esp + 0xf4], 0x35
call fcn.00512b13
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xec], 0x36
call fcn.00512a1d
lea ecx, [esp + 0x6c]
mov byte [esp + 0xe8], 0x35
call fcn.005128e4
lea ecx, [esp + 0x40]
mov byte [esp + 0xe8], bl
call fcn.005128e4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
call esi
test eax, eax
je 0x49ff0a
inc ebp
jmp 0x49ff0b
inc edi
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x49fe10
mov eax, dword [0x5ab980]
mov dword [esp + 0x2c], eax
push edi
push ebp
lea ecx, [esp + 0x34]
push str._x__MSO97_Templates:__i___i_r_n
push ecx
mov byte [esp + 0xf8], 0x37
call fcn.0050e6c7
add esp, 0x10
lea edx, [esp + 0x2c]
mov ecx, 0x5bc81c
push edx
push 6
push 5
call fcn.004bf410
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe8], bl
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0xe8], 0x30
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0xe8], 0x2f
call fcn.005128e4
lea ecx, [esp + 0x44]
mov byte [esp + 0xe8], 0x2e
call fcn.004f0ea2
lea ecx, [esp + 0xc4]
mov byte [esp + 0xe8], 0x2c
call fcn.00510e5f
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe8], 0x2b
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], 0x2a
call fcn.005128e4
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8], 0x29
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0xe8], 0x25
call fcn.005128e4
lea ecx, [esp + 0x70]
mov byte [esp + 0xe8], 0
call fcn.004663b0
lea ecx, [esp + 0x28]
mov dword [esp + 0xe8], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xdc
ret