Function at 0x583254
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x58325c
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [0x5a2188]
xor eax, eax
push ebp
push 0x5836d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0xc]
mov eax, dword [0x5a201c]
mov eax, dword [eax]
call fcn.004096f4
cmp dword [ebp - 0xc], 0
je 0x5832c1
mov eax, dword [ebp - 0xc]
call fcn.004046f4
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
jne 0x5832c1
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 0x5832d8
mov eax, esi
call fcn.0053dc3c
jmp 0x5836b6
lea eax, [ebp - 0x14]
mov ecx, 0x5836ec
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.005362c8
mov eax, dword [ebp - 0x10]
mov edx, dword [0x5a4704]
call fcn.00404840
je 0x583341
push 0
lea eax, [ebp - 0x18]
mov ecx, 0x5836ec
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [0x5a201c]
mov eax, dword [eax]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x583341
mov eax, 0x43c
call fcn.0052cdf0
jmp 0x5836b6
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, 0x583704
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x583718
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x583734
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x1c]
mov ecx, 0x583750
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 [0x5a2050]
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 0x5833d2
mov ecx, dword [0x5a2050]
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 0x583425
push esi
mov eax, dword [0x5a2050]
push dword [eax]
push 0x583768
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x583774
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 [0x52e3f0]
call fcn.0040521c
dec ebx
cmp ebx, 0xffffffff
jne 0x5833e1
push 0
mov eax, edi
mov ecx, 1
mov edx, dword [0x52e468]
call fcn.00405698
add esp, 4
mov eax, dword [0x5a2254]
mov eax, dword [eax]
call fcn.004054dc
mov edi, eax
dec edi
test edi, edi
jl 0x5835e2
inc edi
xor ebx, ebx
mov eax, dword [0x5a2254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
cmp byte [eax + 0x10], 0
je 0x5835da
mov eax, dword [0x5a2254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
mov edx, dword [0x5a2254]
mov edx, dword [edx]
mov edx, dword [edx + ebx*4]
mov edx, dword [edx + 0xc]
call fcn.00404840
je 0x5834bf
push esi
mov eax, dword [0x5a2050]
push dword [eax]
push 0x583768
mov eax, dword [0x5a2254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax + 0xc]
push 0x583774
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 0x58350d
push esi
mov eax, dword [0x5a2050]
push dword [eax]
push 0x583768
mov eax, dword [0x5a2254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x583774
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.004047b4
mov edx, dword [ebp - 0x30]
mov eax, dword [0x5a1d00]
mov eax, dword [eax]
call fcn.00539a70
jmp 0x58357b
push 0
push esi
mov eax, dword [0x5a2050]
push dword [eax]
push 0x583768
mov eax, dword [0x5a2254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x583774
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.004047b4
mov eax, dword [ebp - 0x34]
call fcn.004048f4
push eax
mov eax, dword [0x5a2060]
push dword [eax]
push 0x583768
mov eax, dword [0x5a2254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x583774
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 [0x5a2254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
add eax, 0xc
mov edx, dword [0x5a2254]
mov edx, dword [edx]
mov edx, dword [edx + ebx*4]
mov edx, dword [edx]
call fcn.00404488
mov eax, dword [0x5a2254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov byte [eax + 0x10], 0
mov eax, dword [0x5a2060]
push dword [eax]
push 0x583768
mov eax, dword [0x5a2254]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x583774
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x3c]
call fcn.00409638
inc ebx
dec edi
jne 0x583456
push esi
mov eax, dword [0x5a2050]
push dword [eax]
push 0x583768
mov eax, dword [0x5a1c94]
push dword [eax]
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x40]
call fcn.00535d34
lea eax, [ebp - 0x44]
mov ecx, 0x583780
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x44]
call fcn.004093a4
test al, al
jne 0x58366e
push 0
lea eax, [ebp - 0x48]
mov ecx, 0x583780
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x48]
call fcn.004048f4
push eax
lea eax, [ebp - 0x4c]
mov ecx, 0x583798
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 0x58366e
mov eax, 0x43d
call fcn.0052cdf0
jmp 0x5836b6
lea eax, [ebp - 0x50]
mov ecx, 0x5837b0
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, 0x5837c8
mov edx, 0x5837dc
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.00568488
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5836d8
lea eax, [ebp - 0x50]
mov edx, 0x12
call fcn.00404458
ret