Function at 0x583810
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x583818
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [0x5a3188]
xor eax, eax
push ebp
push 0x583c8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0xc]
mov eax, dword [0x5a301c]
mov eax, dword [eax]
call fcn.004096f4
cmp dword [ebp - 0xc], 0
je 0x58387d
mov eax, dword [ebp - 0xc]
call fcn.004046f4
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
jne 0x58387d
mov eax, dword [ebp - 0xc]
call fcn.004046f4
mov edx, eax
lea eax, [ebp - 0xc]
mov ecx, 1
call fcn.00404994
mov eax, esi
call fcn.004ce084
test al, al
jne 0x583894
mov eax, esi
call fcn.0052685c
jmp 0x583c72
lea eax, [ebp - 0x14]
mov ecx, 0x583ca8
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0051eee8
mov eax, dword [ebp - 0x10]
mov edx, dword [0x5a5704]
call fcn.00404840
je 0x5838fd
push 0
lea eax, [ebp - 0x18]
mov ecx, 0x583ca8
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [0x5a301c]
mov eax, dword [eax]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x5838fd
mov eax, 0x43c
call fcn.0053d400
jmp 0x583c72
mov dl, 1
mov eax, dword [0x41a74c]
call fcn.004035d0
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, 0x583cc0
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x583cd4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x583cf0
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x1c]
mov ecx, 0x583d0c
mov edx, esi
call fcn.00404740
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403600
mov ecx, dword [0x5a3050]
mov ecx, dword [ecx]
lea eax, [ebp - 0x20]
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x20]
call fcn.004ce084
test al, al
jne 0x58398e
mov ecx, dword [0x5a3050]
mov ecx, dword [ecx]
lea eax, [ebp - 0x24]
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x24]
call fcn.004099ac
mov eax, dword [edi]
call fcn.004054dc
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x5839e1
push esi
mov eax, dword [0x5a3050]
push dword [eax]
push 0x583d24
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x583d30
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.004047b4
mov eax, dword [ebp - 0x28]
call fcn.00409638
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
mov edx, dword [0x516bf8]
call fcn.0040521c
dec ebx
cmp ebx, 0xffffffff
jne 0x58399d
push 0
mov eax, edi
mov ecx, 1
mov edx, dword [0x516c70]
call fcn.00405698
add esp, 4
mov eax, dword [0x5a3254]
mov eax, dword [eax]
call fcn.004054dc
mov edi, eax
dec edi
test edi, edi
jl 0x583b9e
inc edi
xor ebx, ebx
mov eax, dword [0x5a3254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
cmp byte [eax + 0x10], 0
je 0x583b96
mov eax, dword [0x5a3254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
mov edx, dword [0x5a3254]
mov edx, dword [edx]
mov edx, dword [edx + ebx*4]
mov edx, dword [edx + 0xc]
call fcn.00404840
je 0x583a7b
push esi
mov eax, dword [0x5a3050]
push dword [eax]
push 0x583d24
mov eax, dword [0x5a3254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax + 0xc]
push 0x583d30
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.004047b4
mov eax, dword [ebp - 0x2c]
call fcn.00409638
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b0]
call fcn.0045442c
cmp ebx, eax
jne 0x583ac9
push esi
mov eax, dword [0x5a3050]
push dword [eax]
push 0x583d24
mov eax, dword [0x5a3254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x583d30
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.004047b4
mov edx, dword [ebp - 0x30]
mov eax, dword [0x5a2d00]
mov eax, dword [eax]
call fcn.00522690
jmp 0x583b37
push 0
push esi
mov eax, dword [0x5a3050]
push dword [eax]
push 0x583d24
mov eax, dword [0x5a3254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x583d30
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.004047b4
mov eax, dword [ebp - 0x34]
call fcn.004048f4
push eax
mov eax, dword [0x5a3060]
push dword [eax]
push 0x583d24
mov eax, dword [0x5a3254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x583d30
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x38]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x5a3254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
add eax, 0xc
mov edx, dword [0x5a3254]
mov edx, dword [edx]
mov edx, dword [edx + ebx*4]
mov edx, dword [edx]
call fcn.00404488
mov eax, dword [0x5a3254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov byte [eax + 0x10], 0
mov eax, dword [0x5a3060]
push dword [eax]
push 0x583d24
mov eax, dword [0x5a3254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x583d30
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x3c]
call fcn.00409638
inc ebx
dec edi
jne 0x583a12
push esi
mov eax, dword [0x5a3050]
push dword [eax]
push 0x583d24
mov eax, dword [0x5a2c94]
push dword [eax]
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x40]
call fcn.0051e954
lea eax, [ebp - 0x44]
mov ecx, 0x583d3c
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x44]
call fcn.004093a4
test al, al
jne 0x583c2a
push 0
lea eax, [ebp - 0x48]
mov ecx, 0x583d3c
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x48]
call fcn.004048f4
push eax
lea eax, [ebp - 0x4c]
mov ecx, 0x583d54
mov edx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x4c]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x583c2a
mov eax, 0x43d
call fcn.0053d400
jmp 0x583c72
lea eax, [ebp - 0x50]
mov ecx, 0x583d6c
mov edx, dword [ebp - 0xc]
call fcn.00404740
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [0x442da4]
call fcn.00442e54
mov ebx, eax
push esi
mov ecx, 0x583d84
mov edx, 0x583d98
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 4]
mov eax, ebx
call fcn.00403600
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00568944
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x583c94
lea eax, [ebp - 0x50]
mov edx, 0x12
call fcn.00404458
ret