Function at 0x4b1910
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518395
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.004b4090
push str.SM.dat
lea ecx, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 4], edi
call fcn.004dd3a6
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004dd111
mov edx, dword [ebp - 0x18]
push edx
call fcn.0048c8b0
add esp, 4
test eax, eax
jne 0x4b1a54
lea eax, [ebp - 0x28]
push 4
push eax
mov ecx, esi
call fcn.004b4090
push str.SM.dat
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.004dd3a6
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004dd111
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0048c8b0
add esp, 4
test eax, eax
jne 0x4b1a33
lea eax, [ebp - 0x1c]
push 5
push eax
mov ecx, esi
call fcn.004b4090
push str.SM.dat
lea ecx, [ebp - 0x48]
push eax
push ecx
mov byte [ebp - 4], 6
call fcn.004dd3a6
mov bl, 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004dd111
lea edx, [ebp - 0x14]
push edx
call fcn.0048cab0
add esp, 4
push str.SM.dat
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 9
push eax
call fcn.004dd3a6
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.004dd111
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004dd111
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.004dd111
jmp 0x4b1a48
mov edx, dword [ebp - 0x2c]
mov ecx, esi
push edx
mov dword [esi + 0x30], edi
call fcn.004b31a0
mov dword [esi + 0x30], 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004dd111
lea ecx, [ebp - 0x58]
call fcn.004de17f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.004dd78e
mov eax, dword [0x5580a0]
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.004dd29a
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.004de331
test eax, eax
je 0x4b1cda
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x58]
push ecx
push edx
mov ecx, esi
call fcn.004b3b20
mov edi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
mov dword [ebp - 0x1c], edi
je 0x4b1aec
lea ecx, [ebp - 0x58]
call fcn.004de54c
mov dword [ebp - 0x40], vtable.CFileException.0
mov byte [ebp - 4], 0xe
jmp 0x4b1ca4
test edi, edi
jne 0x4b1b41
lea ecx, [ebp - 0x58]
call fcn.004de54c
push edi
lea ecx, [ebp - 0x130]
call fcn.0048fd10
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xf
call fcn.004d91dc
cmp eax, 1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x130]
jne 0x4b1b2c
call fcn.004d8dd9
jmp 0x4b1a9b
call fcn.004d8dd9
mov dword [ebp - 0x40], vtable.CFileException.0
mov byte [ebp - 4], 0x10
jmp 0x4b1ca4
push 0x400
lea ecx, [ebp - 0x84]
call fcn.004e918d
mov eax, dword [ebp - 0x20]
push 0
push eax
push edi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.004e9215
push 0
push 0x1000
lea ecx, [ebp - 0x84]
push 1
push ecx
lea ecx, [ebp - 0xc8]
call fcn.004e1890
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.004e19f4
push edi
call fcn.004dd783
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.004de54c
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], bl
call fcn.004e196c
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xd
call fcn.004e9252
jmp 0x4b1cec
lea ecx, [ebp - 0x30]
call fcn.004dd111
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004de274
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004dd111
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 0x4b1cec
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.004dd7b6
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x30], 0
cmp eax, 0xa
jne 0x4b1d57
lea eax, [ebp - 0x14]
push 0xe902
push eax
call fcn.0042e080
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.004b0860
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x19
call fcn.004dd111
lea ecx, [ebp - 0xd4]
push 0
push ecx
mov ecx, esi
call fcn.004b2b00
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xd
call fcn.004b0900
jmp 0x4b1dd9
push 0xb
mov ecx, esi
call fcn.004b1e90
test eax, eax
jne 0x4b1dd9
push 0x50
call fcn.004dd75a
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
mov byte [ebp - 4], 0x1a
je 0x4b1db0
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
or ecx, 1
push 0xe902
push edx
mov dword [ebp - 0x24], ecx
call fcn.0042e080
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.004b0860
mov edi, eax
jmp 0x4b1db2
xor edi, edi
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xd
test al, 1
je 0x4b1dc8
lea ecx, [ebp - 0x1c]
call fcn.004dd111
push 0xb
push edi
mov ecx, esi
call fcn.004b1380
mov dword [edi + 0xc], 0
mov dword [ebp - 0x40], vtable.CFileException.0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1d
call fcn.004dd111
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004de274
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004dd111
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