Function at 0x403020
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49d98b
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.004834fe
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.00437de0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0xe4], 0
mov eax, dword [eax - 8]
push eax
call fcn.00439520
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.00460520
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
shr esi, 1
push esi
push edx
call fcn.004382f0
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
mov byte [esp + 0xe8], 1
call fcn.00438a10
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00439600
mov esi, dword [esp + 0xec]
push esi
call fcn.0040e410
push esi
call fcn.0040edb0
add esp, 8
lea ecx, [esp + 0x18]
push esi
call fcn.00484d61
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe8], 2
call fcn.0048160a
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0048153e
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe8], 3
call fcn.00484e34
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 2
call fcn.00484ced
lea ecx, [esp + 0x2c]
call fcn.004858dc
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe4], 4
call fcn.00485396
mov edx, dword [0x4be930]
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.00484e84
mov eax, dword [0x4be930]
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.0041393b
mov ecx, eax
call fcn.0041417e
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.004819a0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 8
call fcn.00484ced
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, ebx
call fcn.00483740
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push 0x1042
push eax
lea ecx, [esp + 0x38]
call fcn.00485a8e
test eax, eax
jne 0x403244
lea ecx, [esp + 0x10]
push 0x4af3d0
push ecx
mov dword [esp + 0x18], 0xef18
call fcn.0041e909
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.00485be5
lea edx, [esp + 0x1c]
push 4
push edx
lea ecx, [esp + 0x34]
call fcn.00485be5
lea eax, [esp + 0x1c]
push 4
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 4
call fcn.00485be5
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00402270
lea ecx, [esp + 0x2c]
call fcn.00485ca9
mov edx, dword [0x4be930]
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.0041393b
mov ecx, eax
call fcn.0041417e
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.004819a0
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0xa
call fcn.00484ced
mov eax, dword [ebx + 8]
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, ebx
call fcn.00483740
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 0x4af3d0
push eax
mov dword [esp + 0x18], 0xef23
call fcn.0041e909
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 0x4af3d0
push edx
mov dword [esp + 0x18], 0xef24
call fcn.0041e909
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 8
call fcn.00484ced
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 7
call fcn.00484ced
mov dword [esp + 0x3c], vtable.CFileException.0
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe4], 0xc
call fcn.00484ced
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 2
call fcn.004859d1
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 1
call fcn.00484ced
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0
call fcn.00438860
mov dword [esp + 0xe4], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00438860
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.00437de0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0xe4], 0xd
mov eax, dword [eax - 8]
push eax
call fcn.00439520
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.00460520
shr esi, 1
push esi
push ebp
lea ecx, [esp + 0x30]
call fcn.004382f0
lea edx, [esp + 0x28]
mov ecx, ebx
push edx
mov byte [esp + 0xe8], 0xe
call fcn.00438a10
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00439600
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 [0x4ac1f4]
mov dword [esp + 0x18], edx
mov bl, 0xf
push 0
push 0xef28
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], bl
call fcn.0043c950
mov eax, dword [0x4be930]
mov dword [esp + 0x1c], eax
push 0xef2a
lea ecx, [esp + 0x20]
mov byte [esp + 0xe8], 0x10
call fcn.004863f4
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.00484ced
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 0xe
call fcn.00438860
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0xd
call fcn.00438860
mov dword [esp + 0xe4], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x403415
lea eax, [esp + 0x10]
push 0x4af3d0
push eax
mov dword [esp + 0x18], 0xef26
call fcn.0041e909
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d9a0
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.0048671c
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.00486882
mov edi, dword [ebp + 0xc]
push edi
push esi
call fcn.00485dba
lea edx, [ebp - 0x230]
mov byte [ebp - 0x220], bl
push edx
push edi
call fcn.00486882
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