Function at 0x403020
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a109b
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push ebp
push esi
mov esi, dword [esp + 0xe8]
push edi
mov edi, ecx
test esi, esi
jne 0x403053
xor eax, eax
jmp 0x40341f
lea ebx, [edi + 0x30]
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00486c44
mov eax, dword [edi + 4]
test eax, eax
mov eax, dword [edi + 0x2c]
jne 0x403444
test eax, eax
je 0x40343a
lea ebp, [edi + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.00436db0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0xe4], 0
mov eax, dword [eax - 8]
push eax
call fcn.004384f0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx - 8]
lea esi, [ecx + ecx]
lea ecx, [esp + 0x5c]
push esi
push eax
push str.ocularv3
call fcn.00461480
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
shr esi, 1
push esi
push edx
call fcn.004372c0
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
mov byte [esp + 0xe8], 1
call fcn.004379e0
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004385d0
mov esi, dword [esp + 0xec]
push esi
call fcn.0040e790
push esi
call fcn.0040f130
add esp, 8
lea ecx, [esp + 0x18]
push esi
call fcn.004884a7
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe8], 2
call fcn.00484d9a
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00484cce
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe8], 3
call fcn.0048857a
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 2
call fcn.00488433
lea ecx, [esp + 0x2c]
call fcn.00489022
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe4], 4
call fcn.00488adc
mov edx, dword [0x4c1960]
mov dword [esp + 0x4c], edx
push 0
lea ecx, [esp + 0x50]
mov byte [esp + 0xe8], 6
mov dword [esp + 0x40], vtable.CFileException.0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xffffffff
call fcn.004885ca
mov eax, dword [0x4c1960]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x10]
push str._Y_m_d_H_M_S
lea edx, [esp + 0x54]
push ecx
push edx
mov byte [esp + 0xf0], 8
call fcn.00413c68
mov ecx, eax
call fcn.0041450b
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x2c]
push str._sIPG_s1.tmp
push edx
mov byte [esp + 0xf4], 9
call fcn.004850f3
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 8
call fcn.00488433
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, ebx
call fcn.00486e86
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push 0x1042
push eax
lea ecx, [esp + 0x38]
call fcn.004891d4
test eax, eax
jne 0x403244
lea ecx, [esp + 0x10]
push 0x4b2208
push ecx
mov dword [esp + 0x18], 0xef18
call fcn.0041ec39
mov ebp, dword [ebp]
lea ecx, [esp + 0x2c]
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push ebp
mov dword [esp + 0x24], eax
call fcn.0048932b
lea edx, [esp + 0x1c]
push 4
push edx
lea ecx, [esp + 0x34]
call fcn.0048932b
lea eax, [esp + 0x1c]
push 4
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 4
call fcn.0048932b
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00402270
lea ecx, [esp + 0x2c]
call fcn.004893ef
mov edx, dword [0x4c1960]
mov dword [esp + 0x20], edx
lea eax, [esp + 0x10]
push str._Y_m_d_H_M_S
lea ecx, [esp + 0x54]
push eax
push ecx
mov byte [esp + 0xf0], 0xa
call fcn.00413c68
mov ecx, eax
call fcn.0041450b
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x28]
push str._sIPG_s2.tmp
push ecx
mov byte [esp + 0xf4], 0xb
call fcn.004850f3
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0xa
call fcn.00488433
mov eax, dword [ebx + 8]
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, ebx
call fcn.00486e86
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xf0]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x403345
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push 0x4b2208
push eax
mov dword [esp + 0x18], 0xef23
call fcn.0041ec39
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0xffff
push 0x83
push str.RT_SECONDPACK
push ecx
push edx
mov ecx, edi
call fcn.00402ed0
mov eax, dword [esp + 0x20]
push esi
push eax
mov ecx, edi
call 0x403590
test eax, eax
jne 0x403398
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push 0x4b2208
push edx
mov dword [esp + 0x18], 0xef24
call fcn.0041ec39
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 8
call fcn.00488433
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 7
call fcn.00488433
mov dword [esp + 0x3c], vtable.CFileException.0
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe4], 0xc
call fcn.00488433
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 2
call fcn.00489117
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 1
call fcn.00488433
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0
call fcn.00437830
mov dword [esp + 0xe4], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00437830
mov eax, 1
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret 8
push esi
mov ecx, edi
call fcn.00402110
jmp 0x40341a
test eax, eax
je 0x403577
lea ebx, [edi + 0x28]
lea ecx, [esp + 0x14]
push ebx
call fcn.00436db0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0xe4], 0xd
mov eax, dword [eax - 8]
push eax
call fcn.004384f0
mov ecx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x5c]
lea esi, [eax + eax]
push esi
push ebp
push str.ocularv3
call fcn.00461480
shr esi, 1
push esi
push ebp
lea ecx, [esp + 0x30]
call fcn.004372c0
lea edx, [esp + 0x28]
mov ecx, ebx
push edx
mov byte [esp + 0xe8], 0xe
call fcn.004379e0
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004385d0
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
push eax
push ecx
mov ecx, edi
call fcn.00403650
mov eax, dword [edi + 8]
test eax, eax
je 0x403552
mov edx, dword [0x4aefac]
mov dword [esp + 0x18], edx
mov bl, 0xf
push 0
push 0xef28
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], bl
call fcn.0043b920
mov eax, dword [0x4c1960]
mov dword [esp + 0x1c], eax
push 0xef2a
lea ecx, [esp + 0x20]
mov byte [esp + 0xe8], 0x10
call fcn.00489b3a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], bl
call fcn.00488433
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 0xe
call fcn.00437830
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0xd
call fcn.00437830
mov dword [esp + 0xe4], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x403415
lea eax, [esp + 0x10]
push 0x4b2208
push eax
mov dword [esp + 0x18], 0xef26
call fcn.0041ec39
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a10b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x10], esp
push eax
push esi
mov dword [ebp - 4], 0
call fcn.00489e62
test eax, eax
je 0x403638
mov bl, byte [ebp - 0x220]
lea ecx, [ebp - 0x230]
push ecx
push esi
mov byte [ebp - 0x220], 0x80
call fcn.00489fc8
mov edi, dword [ebp + 0xc]
push edi
push esi
call fcn.00489500
lea edx, [ebp - 0x230]
mov byte [ebp - 0x220], bl
push edx
push edi
call fcn.00489fc8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8