Function at 0x436570
Capabilities:
Copy file

Disassembly:
push 0x54
mov eax, 0x45a94c
call fcn.0043aa0b
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.0043f271
pop ecx
pop ecx
test eax, eax
jne 0x436599
mov al, 1
jmp 0x43672d
xor eax, eax
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
xor ecx, ecx
push 7
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
mov word [ebp - 0x5c], ax
lea edi, [ebp - 0x44]
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x44], ax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x2c], ax
push ebx
mov byte [ebp - 4], 2
call fcn.00437fdb
pop ecx
push 8
pop edi
test al, al
je 0x436657
push 0
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.00438dbb
add esp, 0x14
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], edi
jb 0x43660e
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], edi
jb 0x436619
mov eax, dword [ebp - 0x5c]
push 0
push 0
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004386be
add esp, 0x14
test al, al
je 0x436657
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jb 0x43663a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00436733
pop ecx
test al, al
je 0x436657
xor ebx, ebx
inc ebx
push ebx
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x436659
xor bl, bl
mov eax, dword [ebp - 0x18]
mov esi, 0x1000
cmp eax, edi
jb 0x436697
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x14], ecx
cmp eax, esi
jb 0x43668e
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041568f
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0043a98a
pop ecx
pop ecx
and dword [ebp - 0x1c], 0
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 7
cmp eax, edi
jb 0x4366e1
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x60], ecx
cmp eax, esi
jb 0x4366d8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041568f
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push ecx
call fcn.0043a98a
pop ecx
pop ecx
and dword [ebp - 0x34], 0
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 7
cmp eax, edi
jb 0x43672b
mov ecx, dword [ebp - 0x5c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x60], ecx
cmp eax, esi
jb 0x436722
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041568f
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push ecx
call fcn.0043a98a
pop ecx
pop ecx
mov al, bl
call fcn.0043a9ba
ret