Function at 0x10035910
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014cd80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
jne 0x1003593c
jmp 0x10035c82
xor eax, eax
mov byte [ebp - 0x15], al
push 0
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x15]
call fcn.1002e210
mov ecx, eax
call fcn.1003eae0
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 0x14], eax
xor eax, eax
mov byte [ebp - 0x16], al
push 0
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x16]
call fcn.10029020
mov ecx, eax
call fcn.1003eae0
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [0x1036f864]
mov edx, dword [ecx]
mov ecx, dword [0x1036f864]
mov eax, dword [edx + 0x24]
call eax
cmp eax, dword [0x1036f9e0]
jne 0x10035b06
call fcn.1003e030
movzx ecx, al
test ecx, ecx
je 0x10035b06
movzx edx, byte [0x1036f8e8]
test edx, edx
je 0x10035a86
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
je 0x10035a86
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [0x1036f864]
mov eax, dword [edx]
mov ecx, dword [0x1036f864]
mov edx, dword [eax + 0x24]
call edx
mov dword [ebp - 0x14], eax
push 0x10370650
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x1036f864]
mov edx, dword [ecx]
mov ecx, dword [0x1036f864]
mov eax, dword [edx + 0x20]
call eax
movzx ecx, al
test ecx, ecx
je 0x10035a86
lea ecx, [ebp - 0x40]
call fcn.100129d0
mov dword [ebp - 4], 0
movzx edx, byte [0x1036f8e9]
test edx, edx
jne 0x10035a51
push 0x10370660
lea ecx, [ebp - 0x40]
call fcn.10015810
push str.__xyz
lea ecx, [ebp - 0x40]
call fcn.10015810
push 0x1036f8f0
lea ecx, [ebp - 0x40]
call fcn.10015810
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x40]
push eax
call fcn.10022850
call fcn.1003a5c0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10012ba0
movzx ecx, byte [0x1036f8eb]
test ecx, ecx
je 0x10035b06
movzx edx, byte [0x10370648]
cmp edx, 2
je 0x10035aef
xor eax, eax
mov byte [ebp - 0x17], al
push 0
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x17]
call fcn.10025d00
mov ecx, eax
call fcn.1003eae0
push eax
push 0x1036f970
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10035ad0
mov byte [ebp - 0xd], 1
jmp 0x10035ad4
mov byte [ebp - 0xd], 0
mov dl, byte [ebp - 0xd]
mov byte [0x10370649], dl
movzx eax, byte [0x10370649]
test eax, eax
je 0x10035aef
mov byte [0x10370648], 2
movzx ecx, byte [0x10370649]
test ecx, ecx
je 0x10035b06
push 0
push 1
call fcn.1003a1b0
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jne 0x10035b13
jmp 0x10035c82
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x1036f864]
mov edx, dword [ecx]
mov ecx, dword [0x1036f864]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x1036f9e0]
je 0x10035b3d
jmp 0x10035c82
movzx edx, byte [0x1036f88d]
test edx, edx
je 0x10035bf2
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [0x1036f864]
mov edx, dword [ecx]
mov ecx, dword [0x1036f864]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x1c], eax
push 0x103707a8
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [0x1036f864]
mov eax, dword [edx]
mov ecx, dword [0x1036f864]
mov edx, dword [eax + 0x20]
call edx
movzx eax, al
test eax, eax
je 0x10035bf2
lea ecx, [ebp - 0x58]
call fcn.100129d0
mov dword [ebp - 4], 1
movzx ecx, byte [0x1036f88e]
test ecx, ecx
jne 0x10035bbd
push 0x103707b8
lea ecx, [ebp - 0x58]
call fcn.10015810
push 0x101539e0
lea ecx, [ebp - 0x58]
call fcn.10015810
push 0x1036f898
lea ecx, [ebp - 0x58]
call fcn.10015810
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x28], esp
lea edx, [ebp - 0x58]
push edx
call fcn.10022850
call fcn.1003a5c0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10012ba0
movzx eax, byte [0x1036f8ea]
test eax, eax
je 0x10035c82
call fcn.1003e030
movzx ecx, al
test ecx, ecx
je 0x10035c82
movzx edx, byte [0x10370648]
cmp edx, 1
je 0x10035c6b
xor eax, eax
mov byte [ebp - 0x18], al
push 0
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10025d00
mov ecx, eax
call fcn.1003eae0
push eax
push 0x1036f930
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10035c4c
mov byte [ebp - 0xe], 1
jmp 0x10035c50
mov byte [ebp - 0xe], 0
mov dl, byte [ebp - 0xe]
mov byte [0x10370649], dl
movzx eax, byte [0x10370649]
test eax, eax
je 0x10035c6b
mov byte [0x10370648], 1
movzx ecx, byte [0x10370649]
test ecx, ecx
je 0x10035c82
push 1
push 1
call fcn.1003a1b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4