Function at 0x5a7f40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e0adb
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x676580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
push 0x400000
lea eax, [ebp - 0x10]
push eax
call fcn.00579de0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043e040
push 0
push str.kwhrequestor.dll
lea ecx, [ebp - 0x10]
call fcn.0040e710
cmp eax, 0xffffffff
jne 0x5a7fb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
jmp 0x5a8386
push str.kcdptcopymark
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0040bb50
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00493020
push eax
call fcn.005a7ac0
add esp, 4
test eax, eax
je 0x5a7ffe
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
jmp 0x5a8386
push str.kcdpt_selfdetect.ini
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040bb50
add esp, 0xc
mov byte [ebp - 4], 2
push str.selfdetect.ini
mov edx, dword [ebp - 0x40]
add edx, 8
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0040bb50
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00493020
push eax
call fcn.005a7ac0
add esp, 4
test eax, eax
je 0x5a809e
push 0
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
lea ecx, [ebp - 0x1c]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x5a809e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00403270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
jmp 0x5a8386
push str.kcdpt_requestlimit.ini
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.0040bb50
add esp, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040ca60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00403270
push str.requestlimit.ini
mov edx, dword [ebp - 0x40]
add edx, 8
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.0040bb50
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040ca60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00403270
lea ecx, [ebp - 0x1c]
call fcn.00493020
push eax
call fcn.005a7ac0
add esp, 4
test eax, eax
je 0x5a8180
push 0
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
lea ecx, [ebp - 0x1c]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x5a8180
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00403270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
jmp 0x5a8386
push str.scene
mov eax, dword [ebp - 0x40]
add eax, 8
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040bb50
add esp, 0xc
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ca60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00403270
push str.kcdpt_scene
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.0040bb50
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040ca60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00403270
lea ecx, [ebp - 0x1c]
call fcn.00493020
push eax
call fcn.005a7ac0
add esp, 4
test eax, eax
jne 0x5a8244
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00403270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
jmp 0x5a8386
push 0
push 1
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
call fcn.0057a2e0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
call fcn.0057a6d0
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
call fcn.005a7ac0
add esp, 4
test eax, eax
jne 0x5a82b7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00403270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
jmp 0x5a8386
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
lea ecx, [ebp - 0x1c]
call fcn.00493020
push eax
lea ecx, [ebp - 0x3c]
call fcn.00497d90
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x68]
call fcn.00497e00
mov byte [ebp - 0x31], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.0045a7c0
movzx eax, byte [ebp - 0x31]
test eax, eax
je 0x5a8353
lea ecx, [ebp - 0x20]
call fcn.00403290
mov byte [ebp - 4], 9
push 0
call fcn.005a7a60
add esp, 4
push eax
push 0x629fe0
lea ecx, [ebp - 0x20]
push ecx
call fcn.00403240
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00493020
push eax
lea ecx, [ebp - 0x20]
call fcn.00493020
push eax
push 0x629fe8
push 0x629fec
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00403270
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00403270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403270
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret