Function at 0x4d365c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4d3665
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d39c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404f5c
cmp byte [ebx + eax - 1], 0x5c
jne 0x4d36a2
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404d34
jmp 0x4d36b1
lea eax, [ebp - 0xc]
mov ecx, 0x4d39e0
mov edx, ebx
call fcn.00404fa8
mov eax, esi
call fcn.00404f5c
cmp byte [esi + eax - 1], 0x5c
jne 0x4d36cb
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00404d34
jmp 0x4d36da
lea eax, [ebp - 0x10]
mov ecx, 0x4d39e0
mov edx, esi
call fcn.00404fa8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3bc]
call fcn.00405ea8
test eax, eax
jl 0x4d3972
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0
mov eax, dword [0x4f3134]
mov eax, dword [eax]
call fcn.0047484c
push 0
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x4cdc24]
call fcn.0040607c
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3bc]
mov edx, dword [ebp - 8]
mov ecx, dword [eax + edx*8]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00404fa8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3bc]
mov edx, dword [ebp - 8]
mov ecx, dword [eax + edx*8]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00404fa8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3bc]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*8 + 4]
call fcn.00405ea8
mov esi, eax
test esi, esi
jl 0x4d383d
inc esi
xor edi, edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3bc]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*8 + 4]
lea edx, [edi + edi*4]
lea ebx, [eax + edx*4]
cmp byte [ebx], 0
je 0x4d3835
cmp byte [ebx + 0xe], 0
je 0x4d3835
cmp byte [ebx + 0xd], 0
je 0x4d37b4
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00404fa8
jmp 0x4d37c2
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00404fa8
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x14]
call fcn.004cbaec
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x30]
call fcn.004cbc48
mov eax, dword [ebp - 0x30]
mov edx, dword [ebx + 0x10]
call fcn.00409300
test al, al
je 0x4d3835
mov eax, dword [ebp - 0x24]
call fcn.00405ea0
inc eax
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x4cdc24]
call fcn.0040607c
add esp, 4
mov eax, dword [ebp - 0x24]
call fcn.00405ea8
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x24]
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x14]
call fcn.00404cf0
mov eax, dword [ebp - 0x24]
call fcn.00405ea8
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebx + 4]
mov dword [edx + eax*4 + 4], ecx
inc edi
dec esi
jne 0x4d3775
mov eax, dword [ebp - 0x24]
call fcn.00405ea0
test eax, eax
jle 0x4d3966
mov byte [ebp - 0x25], 0
push 0
lea eax, [ebp - 0x44]
mov ecx, 0x4d39ec
mov edx, dword [ebp - 0x18]
call fcn.00404fa8
mov eax, dword [ebp - 0x44]
call fcn.0040515c
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040515c
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x48]
mov ecx, 0x4d39ec
mov edx, dword [ebp - 0x18]
call fcn.00404fa8
mov eax, dword [ebp - 0x48]
call fcn.00409ca8
test al, al
je 0x4d3934
lea eax, [ebp - 0x4c]
mov ecx, 0x4d39ec
mov edx, dword [ebp - 0x18]
call fcn.00404fa8
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4cdc78]
call fcn.004ce934
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4d3904
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0x20]
call fcn.004ceaa8
test al, al
je 0x4d38ee
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004ce12c
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x20]
call fcn.004ce878
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d390b
mov eax, dword [ebp - 0x20]
call fcn.00403e4c
ret
mov eax, dword [ebp - 0x24]
call fcn.00405ea8
mov esi, eax
test esi, esi
jl 0x4d3966
inc esi
xor edi, edi
lea ebx, [edi + edi*2]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
call fcn.00409ca8
test al, al
je 0x4d3962
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
call fcn.00409fa4
inc edi
dec esi
jne 0x4d3945
inc dword [ebp - 8]
dec dword [ebp - 0x2c]
jne 0x4d36fb
push 0
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x4cdc24]
call fcn.0040607c
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d39cf
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00404cc0
lea eax, [ebp - 0x30]
call fcn.00404c9c
lea eax, [ebp - 0x24]
mov edx, dword [0x4cdc24]
call fcn.00406088
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404cc0
ret