Function at 0x4b1950
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5183d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push 5
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x24], edi
call fcn.004b40d0
push str.SM.dat
lea ecx, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 4], edi
call fcn.004dd3e6
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004dd151
mov edx, dword [ebp - 0x18]
push edx
call fcn.0048c8f0
add esp, 4
test eax, eax
jne 0x4b1a94
lea eax, [ebp - 0x28]
push 4
push eax
mov ecx, esi
call fcn.004b40d0
push str.SM.dat
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.004dd3e6
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004dd151
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0048c8f0
add esp, 4
test eax, eax
jne 0x4b1a73
lea eax, [ebp - 0x1c]
push 5
push eax
mov ecx, esi
call fcn.004b40d0
push str.SM.dat
lea ecx, [ebp - 0x48]
push eax
push ecx
mov byte [ebp - 4], 6
call fcn.004dd3e6
mov bl, 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004dd151
lea edx, [ebp - 0x14]
push edx
call fcn.0048caf0
add esp, 4
push str.SM.dat
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 9
push eax
call fcn.004dd3e6
mov ecx, dword [ebp - 0x48]
mov eax, dword [eax]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x20]
call fcn.004dd151
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004dd151
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.004dd151
jmp 0x4b1a88
mov edx, dword [ebp - 0x2c]
mov ecx, esi
push edx
mov dword [esi + 0x30], edi
call fcn.004b31e0
mov dword [esi + 0x30], 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004dd151
lea ecx, [ebp - 0x58]
call fcn.004de1bf
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.004dd7ce
mov eax, dword [0x5581a0]
mov dword [ebp - 0x30], eax
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x40], vtable.CFileException.0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0xffffffff
call fcn.004dd2da
mov byte [ebp - 4], 0xd
mov dword [esi + 0x30], 1
mov bl, 0x11
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push ecx
push 0
push edx
lea ecx, [ebp - 0x58]
call fcn.004de371
test eax, eax
je 0x4b1d1a
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x58]
push ecx
push edx
mov ecx, esi
call fcn.004b3b60
mov edi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
mov dword [ebp - 0x1c], edi
je 0x4b1b2c
lea ecx, [ebp - 0x58]
call fcn.004de58c
mov dword [ebp - 0x40], vtable.CFileException.0
mov byte [ebp - 4], 0xe
jmp 0x4b1ce4
test edi, edi
jne 0x4b1b81
lea ecx, [ebp - 0x58]
call fcn.004de58c
push edi
lea ecx, [ebp - 0x130]
call fcn.0048fd50
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xf
call fcn.004d921c
cmp eax, 1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x130]
jne 0x4b1b6c
call fcn.004d8e19
jmp 0x4b1adb
call fcn.004d8e19
mov dword [ebp - 0x40], vtable.CFileException.0
mov byte [ebp - 4], 0x10
jmp 0x4b1ce4
push 0x400
lea ecx, [ebp - 0x84]
call fcn.004e91cd
mov eax, dword [ebp - 0x20]
push 0
push eax
push edi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.004e9255
push 0
push 0x1000
lea ecx, [ebp - 0x84]
push 1
push ecx
lea ecx, [ebp - 0xc8]
call fcn.004e18d0
mov edx, dword [esi]
lea eax, [ebp - 0xc8]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call dword [edx + 8]
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0x12
call fcn.004e1a34
push edi
call fcn.004dd7c3
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.004de58c
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], bl
call fcn.004e19ac
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xd
call fcn.004e9292
jmp 0x4b1d2c
lea ecx, [ebp - 0x30]
call fcn.004dd151
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004de2b4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004dd151
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 - 0x38], 2
je 0x4b1d2c
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.004dd7f6
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x30], 0
cmp eax, 0xa
jne 0x4b1d97
lea eax, [ebp - 0x14]
push 0xe902
push eax
call fcn.0042e0a0
add esp, 8
mov eax, dword [eax]
push 0x10001
push 1
push 1
push eax
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x17
call fcn.004b08a0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x19
call fcn.004dd151
lea ecx, [ebp - 0xd4]
push 0
push ecx
mov ecx, esi
call fcn.004b2b40
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xd
call fcn.004b0940
jmp 0x4b1e19
push 0xb
mov ecx, esi
call fcn.004b1ed0
test eax, eax
jne 0x4b1e19
push 0x50
call fcn.004dd79a
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
mov byte [ebp - 4], 0x1a
je 0x4b1df0
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
or ecx, 1
push 0xe902
push edx
mov dword [ebp - 0x24], ecx
call fcn.0042e0a0
add esp, 8
mov eax, dword [eax]
push 0x10001
push 1
push 1
push eax
mov ecx, edi
mov byte [ebp - 4], 0x1b
call fcn.004b08a0
mov edi, eax
jmp 0x4b1df2
xor edi, edi
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xd
test al, 1
je 0x4b1e08
lea ecx, [ebp - 0x1c]
call fcn.004dd151
push 0xb
push edi
mov ecx, esi
call fcn.004b13c0
mov dword [edi + 0xc], 0
mov dword [ebp - 0x40], vtable.CFileException.0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1d
call fcn.004dd151
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004de2b4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004dd151
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