Function at 0x4b1ca0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5186f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov ebx, 5
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x54]
mov esi, ecx
xor edi, edi
push ebx
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x28], edi
call fcn.004b43e0
push str.SM.dat
lea ecx, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 4], edi
call fcn.004dd6e2
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004dd44d
mov edx, dword [ebp - 0x18]
push edx
call fcn.0048cc20
add esp, 4
test eax, eax
jne 0x4b1dae
lea eax, [ebp - 0x20]
push 4
push eax
mov ecx, esi
call fcn.004b43e0
push str.SM.dat
lea ecx, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.004dd6e2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004dd44d
mov edx, dword [ebp - 0x14]
push edx
call fcn.0048cc20
add esp, 4
test eax, eax
jne 0x4b1d8d
lea eax, [ebp - 0x1c]
push eax
call fcn.0048ce20
add esp, 4
push str.SM.dat
lea ecx, [ebp - 0x24]
push eax
push ecx
mov byte [ebp - 4], 6
call fcn.004dd6e2
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x24]
call fcn.004dd44d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004dd44d
jmp 0x4b1da2
mov eax, dword [ebp - 0x14]
mov ecx, esi
push eax
mov dword [esi + 0x30], edi
call fcn.004b34f0
mov dword [esi + 0x30], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004dd44d
lea ecx, [ebp - 0x50]
call fcn.004de4bb
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.004ddaca
mov ecx, dword [0x5580c0]
mov dword [ebp - 0x2c], ecx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
mov dword [ebp - 0x3c], vtable.CFileException.0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0xffffffff
call fcn.004dd5d6
mov byte [ebp - 4], 0xa
mov dword [esi + 0x30], 1
mov bl, 0xe
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x3c]
push edx
push 0
push eax
lea ecx, [ebp - 0x50]
call fcn.004de66d
test eax, eax
je 0x4b2023
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x50]
push edx
push eax
mov ecx, esi
call fcn.004b3e70
mov edi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x20], edi
je 0x4b1e47
lea ecx, [ebp - 0x50]
call fcn.004de888
mov dword [ebp - 0x3c], vtable.CFileException.0
mov byte [ebp - 4], 0xb
jmp 0x4b1fed
test edi, edi
jne 0x4b1e9c
lea ecx, [ebp - 0x50]
call fcn.004de888
push edi
lea ecx, [ebp - 0x128]
call fcn.004900c0
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0xc
call fcn.004d9518
cmp eax, 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x128]
jne 0x4b1e87
call fcn.004d9115
jmp 0x4b1df6
call fcn.004d9115
mov dword [ebp - 0x3c], vtable.CFileException.0
mov byte [ebp - 4], 0xd
jmp 0x4b1fed
push 0x400
lea ecx, [ebp - 0x7c]
call fcn.004e94c4
mov ecx, dword [ebp - 0x24]
push 0
push ecx
push edi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], bl
call fcn.004e954c
push 0
push 0x1000
lea edx, [ebp - 0x7c]
push 1
push edx
lea ecx, [ebp - 0xc0]
call fcn.004e1bcc
mov eax, dword [esi]
lea ecx, [ebp - 0xc0]
push ecx
mov ecx, esi
mov byte [ebp - 4], 0x10
call dword [eax + 8]
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 0xf
call fcn.004e1d30
push edi
call fcn.004ddabf
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.004de888
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], bl
call fcn.004e1ca8
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
call fcn.004e9589
jmp 0x4b2035
lea ecx, [ebp - 0x2c]
call fcn.004dd44d
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004de5b0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004dd44d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x34], 2
je 0x4b2035
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.004ddaf2
mov eax, dword [esi + 0x1c]
mov ebx, 0xa
cmp eax, ebx
mov dword [esi + 0x30], 0
jne 0x4b20a0
lea ecx, [ebp - 0x1c]
push 0xe902
push ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0x10001
push 1
push 1
push eax
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x14
call fcn.004b0bf0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x16
call fcn.004dd44d
lea edx, [ebp - 0xcc]
push 0
push edx
mov ecx, esi
call fcn.004b2e50
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], bl
call fcn.004b0c90
jmp 0x4b211e
push 0xb
mov ecx, esi
call fcn.004b21e0
test eax, eax
jne 0x4b211e
push 0x50
call fcn.004dda96
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
test edi, edi
mov byte [ebp - 4], 0x17
je 0x4b20f9
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
or ecx, 1
push 0xe902
push eax
mov dword [ebp - 0x28], ecx
call fcn.0042e2e0
add esp, 8
mov eax, dword [eax]
push 0x10001
push 1
push 1
push eax
mov ecx, edi
mov byte [ebp - 4], 0x18
call fcn.004b0bf0
mov edi, eax
jmp 0x4b20fb
xor edi, edi
mov al, byte [ebp - 0x28]
mov dword [ebp - 4], ebx
test al, 1
je 0x4b210d
lea ecx, [ebp - 0x20]
call fcn.004dd44d
push 0xb
push edi
mov ecx, esi
call fcn.004b1710
mov dword [edi + 0xc], 0
mov dword [ebp - 0x3c], vtable.CFileException.0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1a
call fcn.004dd44d
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004de5b0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004dd44d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret