Function at 0x50838a
Capabilities:
Copy file

Disassembly:
push 0x2e8
mov eax, 0x790f53
call fcn.00700ca1
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x2ec], ebx
cmp dword [ebx + 0x14], 8
jb 0x5083b5
mov eax, dword [ebx]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x5083bf
mov ecx, dword [edi]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x2f4], eax
test eax, eax
jne 0x50878d
and dword [ebp - 0xc0], eax
lea ecx, [ebp - 0xd0]
push 7
push str.GPCUtil
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], al
call fcn.00439710
and dword [ebp - 4], 0
lea eax, [ebp - 0xd0]
push eax
call fcn.006210e3
and dword [ebp - 0x60], 0
pop ecx
push 7
push str.newFile
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00439710
push 0
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00620ff2
add esp, 0xc
push 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.0061c551
mov ebx, eax
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
push 0xc
push str.existingFile
mov byte [ebp - 4], 3
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00439710
push 0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 4
push edi
push eax
call fcn.00620ff2
add esp, 0xc
push 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.0061c551
mov edi, eax
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
push 0xe
push str.GetLastError__
mov byte [ebp - 4], 6
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00439710
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.006211a2
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
push ecx
push eax
lea ecx, [ebp - 0x1f0]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 9
push eax
push 0x858903
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00439710
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0xa
push str.filesystem__CopyFile_failed
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push ecx
push eax
lea ecx, [ebp - 0x1c0]
call fcn.0061c551
mov ecx, dword [ebp - 0x2e4]
push ebx
push edi
push esi
push eax
mov byte [ebp - 4], 0xc
call fcn.006214e6
lea ecx, [ebp - 0x1a8]
call fcn.00438e20
lea ecx, [ebp - 0x1c0]
call fcn.00438e20
lea ecx, [ebp - 0x100]
call fcn.00438e20
mov eax, dword [ebp - 0x14]
mov esi, 0x1000
push 0x10
pop edi
cmp eax, edi
jb 0x5085d4
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], ecx
cmp eax, esi
jb 0x5085cb
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x2e4]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e4]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00438e20
lea ecx, [ebp - 0x1f0]
call fcn.00438e20
lea ecx, [ebp - 0x118]
call fcn.00438e20
mov eax, dword [ebp - 0x2c]
cmp eax, edi
jb 0x508649
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e8], ecx
cmp eax, esi
jb 0x508640
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e8]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.00438e20
lea ecx, [ebp - 0x220]
call fcn.00438e20
lea ecx, [ebp - 0x130]
call fcn.00438e20
mov eax, dword [ebp - 0x44]
cmp eax, edi
jb 0x5086bc
mov ecx, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e8], ecx
cmp eax, esi
jb 0x5086b3
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e8]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], bl
call fcn.00438e20
lea ecx, [ebp - 0x250]
call fcn.00438e20
lea ecx, [ebp - 0x148]
call fcn.00438e20
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jb 0x50872f
mov ecx, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e8], ecx
cmp eax, esi
jb 0x508726
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e8]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], bl
cmp eax, edi
jb 0x50878f
mov ecx, dword [ebp - 0xd0]
inc eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e8], ecx
cmp eax, esi
jb 0x508782
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e8]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
jmp 0x50878f
xor ebx, ebx
push 7
push str.GPCUtil
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], bl
call fcn.00439710
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 0xd
push eax
call fcn.006210e3
and dword [ebp - 0xa8], 0
mov ebx, eax
pop ecx
push 7
push str.newFile
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
call fcn.00439710
push 0
push dword [ebp - 0x2ec]
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 0xe
push eax
call fcn.00620ff2
add esp, 0xc
push 0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xf
push ecx
push eax
lea ecx, [ebp - 0x2e0]
call fcn.0061c551
mov edi, eax
and dword [ebp - 0x90], 0
lea ecx, [ebp - 0xa0]
push 0xc
push str.existingFile
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
call fcn.00439710
push 0
push dword [ebp - 0x2f0]
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 0x11
push eax
call fcn.00620ff2
add esp, 0xc
push 0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x12
push ecx
push eax
lea ecx, [ebp - 0x2b0]
call fcn.0061c551
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x13
push eax
push 0x858903
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], al
call fcn.00439710
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 0x14
push str.filesystem__CopyFile_success
push eax
call fcn.006212a1
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x15
push ecx
push eax
lea ecx, [ebp - 0x280]
call fcn.0061c551
push edi
push esi
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x16
call fcn.00621593
lea ecx, [ebp - 0x268]
call fcn.00438e20
lea ecx, [ebp - 0x280]
call fcn.00438e20
lea ecx, [ebp - 0x160]
call fcn.00438e20
mov eax, dword [ebp - 0x74]
mov esi, 0x1000
push 0x10
pop edi
cmp eax, edi
jb 0x508967
mov ecx, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e8], ecx
cmp eax, esi
jb 0x50895e
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e8]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 0x74], 0xf
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x78], ebx
mov byte [ebp - 0x88], bl
call fcn.00438e20
lea ecx, [ebp - 0x2b0]
call fcn.00438e20
lea ecx, [ebp - 0x178]
call fcn.00438e20
mov eax, dword [ebp - 0x8c]
cmp eax, edi
jb 0x5089e5
mov ecx, dword [ebp - 0xa0]
inc eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e8], ecx
cmp eax, esi
jb 0x5089dc
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e8]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], bl
call fcn.00438e20
lea ecx, [ebp - 0x2e0]
call fcn.00438e20
lea ecx, [ebp - 0x190]
call fcn.00438e20
mov eax, dword [ebp - 0xa4]
cmp eax, edi
jb 0x508a67
mov ecx, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e8], ecx
cmp eax, esi
jb 0x508a5e
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e8]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], bl
cmp eax, edi
jb 0x508ac8
mov ecx, dword [ebp - 0xe8]
inc eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e8], ecx
cmp eax, esi
jb 0x508abf
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x2e4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2e8]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
mov eax, dword [ebp - 0x2f4]
call fcn.00700c4b
ret