Function at 0x4e6540
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b1b1
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x278], ecx
mov dword [ebp - 4], 0
mov eax, dword [0x59da5c]
mov dword [ebp - 0x21c], eax
push 0x204
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.005533a0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
call fcn.004011a0
add esp, 4
push 0x5c
lea ecx, [ebp + 8]
call fcn.0041dcb0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0xffffffff
je 0x4e69a0
lea ecx, [ebp + 8]
call fcn.0041e2f0
sub eax, dword [ebp - 0x220]
sub eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp + 8]
call fcn.0041dde0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x224]
call fcn.0041d990
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.0041e2f0
sub eax, 4
push eax
lea edx, [ebp - 0x24c]
push edx
lea ecx, [ebp - 0x230]
call fcn.0041de70
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x280]
push ecx
lea ecx, [ebp - 0x230]
call fcn.0041dad0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.0041dab0
push 0x59da60
lea ecx, [ebp - 0x230]
call fcn.0041db30
push 0x59da6c
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x21c]
push eax
call fcn.00554842
add esp, 8
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0041d9b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
call fcn.0041e290
push eax
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x21c]
push eax
call fcn.00554842
add esp, 8
push 0xffffffffffffffff
lea ecx, [ebp - 0x230]
call fcn.0041e330
push 0
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
call fcn.00434810
add esp, 8
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4e68d3
mov ecx, dword [ebp - 0x22c]
call fcn.004275f0
test eax, eax
jne 0x4e68d3
mov ecx, dword [ebp - 0x22c]
call fcn.00427560
cmp eax, 0x100
ja 0x4e6737
mov ecx, dword [ebp - 0x22c]
call fcn.00427560
cmp eax, 0x100
jbe 0x4e684c
push 0
push 0
push 0x100
push 0x100
mov ecx, dword [ebp - 0x22c]
call fcn.00456010
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x4e6847
lea ecx, [ebp - 0x244]
push ecx
push 0x59da84
call fcn.0045f770
add esp, 8
push 0
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x234]
call fcn.004165f0
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x254], ecx
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x250], edx
cmp dword [ebp - 0x250], 0
je 0x4e67d5
push 1
mov eax, dword [ebp - 0x250]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x250]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x284], eax
jmp 0x4e67df
mov dword [ebp - 0x284], 0
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x25c], ecx
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x258], edx
cmp dword [ebp - 0x258], 0
je 0x4e681c
push 1
mov eax, dword [ebp - 0x258]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x258]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x288], eax
jmp 0x4e6826
mov dword [ebp - 0x288], 0
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0041daf0
lea edx, [ebp - 0x228]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0041dad0
jmp 0x4e68d1
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x260], ecx
cmp dword [ebp - 0x260], 0
je 0x4e6889
push 1
mov edx, dword [ebp - 0x260]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x260]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x28c], eax
jmp 0x4e6893
mov dword [ebp - 0x28c], 0
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call fcn.0041db10
push 0
lea ecx, [ebp - 0x228]
call fcn.0041e1e0
push eax
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0041dad0
jmp 0x4e6952
cmp dword [ebp - 0x22c], 0
je 0x4e6952
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
je 0x4e6919
push 1
mov ecx, dword [ebp - 0x268]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x268]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x290], eax
jmp 0x4e6923
mov dword [ebp - 0x290], 0
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0041db10
push 0
lea ecx, [ebp - 0x228]
call fcn.0041e1e0
push eax
lea ecx, [ebp + 8]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x270], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
call fcn.0041dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0041dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041dab0
mov eax, dword [ebp - 0x270]
jmp 0x4e69bf
mov dword [ebp - 0x274], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041dab0
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret 8