Function at 0x5ae6bc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1f
push 0
push 0
dec ecx
jne 0x5ae6c4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [0x5ceff8]
xor eax, eax
push ebp
push 0x5af05a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
test eax, eax
je 0x5af03c
mov eax, dword [ebx + 0x388]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
jne 0x5af03c
mov eax, dword [ebx + 0x3f0]
mov eax, dword [eax + 0x26c]
call fcn.00487114
dec eax
jl 0x5ae735
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
xor edx, edx
call fcn.00486180
jmp 0x5ae74d
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
or edx, 0xffffffff
call fcn.00486180
jmp 0x5af03c
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
call fcn.00486cf4
sub eax, 1
jb 0x5ae769
je 0x5ae77c
dec eax
je 0x5ae78f
jmp 0x5ae7a0
mov edx, dword [ebx + 0x36c]
mov eax, dword [ebx + 0x3f0]
call fcn.0044d8a0
jmp 0x5ae7a0
mov edx, dword [ebx + 0x36c]
mov eax, dword [ebx + 0x3f0]
call fcn.0044d8a0
jmp 0x5ae7a0
mov edx, dword [ebx + 0x410]
mov eax, dword [ebx + 0x3f0]
call fcn.0044d8a0
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
call fcn.00486cf4
test eax, eax
jne 0x5ae806
mov esi, 1
mov edx, esi
mov eax, dword [ebx + 0x314]
call fcn.004846f0
xor edx, edx
call fcn.004840bc
inc esi
cmp esi, 7
jne 0x5ae7b9
xor edx, edx
mov eax, dword [ebx + 0x314]
call fcn.004846f0
mov dl, 1
call fcn.004840bc
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005b15b0
mov edx, 0x5af070
mov eax, dword [ebx + 0x380]
call fcn.004853b8
jmp 0x5af03c
mov esi, 1
mov edx, esi
mov eax, dword [ebx + 0x314]
call fcn.004846f0
mov dl, 1
call fcn.004840bc
inc esi
cmp esi, 7
jne 0x5ae80b
xor edx, edx
mov eax, dword [ebx + 0x314]
call fcn.004846f0
xor edx, edx
call fcn.004840bc
xor edx, edx
mov eax, dword [ebx + 0x300]
mov ecx, dword [eax]
call dword [ecx + 0x198]
xor edx, edx
mov eax, dword [ebx + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 0x198]
xor edx, edx
mov eax, dword [ebx + 0x33c]
mov ecx, dword [eax]
call dword [ecx + 0x198]
xor edx, edx
mov eax, dword [ebx + 0x34c]
mov ecx, dword [eax]
call dword [ecx + 0x198]
xor edx, edx
mov eax, dword [ebx + 0x35c]
mov ecx, dword [eax]
call dword [ecx + 0x198]
xor edx, edx
mov eax, dword [ebx + 0x42c]
mov ecx, dword [eax]
call dword [ecx + 0x198]
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
call fcn.00486cf4
cmp eax, 2
jne 0x5aea13
push 0x5af0ac
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
push dword [eax + 8]
push 0x5af0c0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405228
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x300]
mov ecx, dword [eax]
call dword [ecx + 0x198]
push 0x5af0ac
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
push dword [eax + 8]
push 0x5af0c0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405228
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 0x198]
push 0x5af0ac
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
push dword [eax + 8]
push 0x5af0c0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405228
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x33c]
mov ecx, dword [eax]
call dword [ecx + 0x198]
push 0x5af0ac
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
push dword [eax + 8]
push 0x5af0c0
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405228
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x34c]
mov ecx, dword [eax]
call dword [ecx + 0x198]
push 0x5af0ac
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
push dword [eax + 8]
push 0x5af0c0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405228
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x35c]
mov ecx, dword [eax]
call dword [ecx + 0x198]
push 0x5af0ac
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
push dword [eax + 8]
push 0x5af0c0
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00405228
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x42c]
mov ecx, dword [eax]
call dword [ecx + 0x198]
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
call fcn.0048664c
mov edx, dword [eax + 8]
lea eax, [ebp - 8]
call fcn.00404f48
jmp 0x5aea29
mov eax, dword [ebx + 0x3f0]
call fcn.00488738
mov edx, dword [eax + 8]
lea eax, [ebp - 8]
call fcn.00404f48
mov eax, ebx
call fcn.005ae5e0
mov eax, dword [ebp - 8]
call fcn.005ae418
test eax, eax
je 0x5af032
mov eax, dword [ebp - 8]
call fcn.005ae418
mov esi, eax
lea eax, [ebp - 0x28]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x28]
push 0x5af0cc
push 0x5af0d8
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x24]
call fcn.0040a0f0
test al, al
je 0x5aeaa6
lea eax, [ebp - 0x30]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x30]
push 0x5af0cc
push 0x5af0d8
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x2c]
call fcn.0040a218
lea eax, [ebp - 0x38]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x38]
push 0x5af0e8
push 0x5af0f4
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x34]
call fcn.0040a0f0
test al, al
je 0x5aeb02
lea eax, [ebp - 0x40]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x40]
push 0x5af0e8
push 0x5af0f4
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x3c]
call fcn.0040a218
lea eax, [ebp - 0x48]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x48]
push 0x5af104
push 0x5af110
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x44]
call fcn.0040a0f0
test al, al
je 0x5aeb5e
lea eax, [ebp - 0x50]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x50]
push 0x5af104
push 0x5af110
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x4c]
call fcn.0040a218
lea eax, [ebp - 0x58]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x58]
push 0x5af120
push 0x5af12c
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x54]
call fcn.0040a0f0
test al, al
je 0x5aebba
lea eax, [ebp - 0x60]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x60]
push 0x5af120
push 0x5af12c
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x5c]
call fcn.0040a218
lea eax, [ebp - 0x68]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x68]
push 0x5af13c
push 0x5af14c
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x64]
call fcn.0040a0f0
test al, al
je 0x5aec16
lea eax, [ebp - 0x70]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x70]
push 0x5af13c
push 0x5af14c
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x6c]
call fcn.0040a218
lea eax, [ebp - 0x78]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x78]
push 0x5af160
push 0x5af16c
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x74]
call fcn.0040a0f0
test al, al
je 0x5aec72
lea eax, [ebp - 0x80]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x80]
push 0x5af160
push 0x5af16c
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x7c]
call fcn.0040a218
push 0
lea eax, [ebp - 0x88]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x88]
push 0x5af0cc
push 0x5af0d8
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x84]
call fcn.00405360
push eax
lea eax, [ebp - 0x90]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x90]
push 0x5af0cc
lea edx, [ebp - 0x94]
mov eax, dword [esi + 0x84]
call fcn.00409e18
push dword [ebp - 0x94]
push 0x5af17c
lea eax, [ebp - 0x8c]
mov edx, 4
call fcn.00405228
mov eax, dword [ebp - 0x8c]
call fcn.00405360
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x9c]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0x9c]
push 0x5af0e8
push 0x5af0f4
lea eax, [ebp - 0x98]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0x98]
call fcn.00405360
push eax
lea eax, [ebp - 0xa4]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0xa4]
push 0x5af0e8
lea edx, [ebp - 0xa8]
mov eax, dword [esi + 0x84]
call fcn.00409e18
push dword [ebp - 0xa8]
push 0x5af17c
lea eax, [ebp - 0xa0]
mov edx, 4
call fcn.00405228
mov eax, dword [ebp - 0xa0]
call fcn.00405360
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xb0]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0xb0]
push 0x5af104
push 0x5af110
lea eax, [ebp - 0xac]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0xac]
call fcn.00405360
push eax
lea eax, [ebp - 0xb8]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0xb8]
push 0x5af104
lea edx, [ebp - 0xbc]
mov eax, dword [esi + 0x84]
call fcn.00409e18
push dword [ebp - 0xbc]
push 0x5af17c
lea eax, [ebp - 0xb4]
mov edx, 4
call fcn.00405228
mov eax, dword [ebp - 0xb4]
call fcn.00405360
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xc4]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0xc4]
push 0x5af120
push 0x5af12c
lea eax, [ebp - 0xc0]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0xc0]
call fcn.00405360
push eax
lea eax, [ebp - 0xcc]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0xcc]
push 0x5af120
lea edx, [ebp - 0xd0]
mov eax, dword [esi + 0x84]
call fcn.00409e18
push dword [ebp - 0xd0]
push 0x5af17c
lea eax, [ebp - 0xc8]
mov edx, 4
call fcn.00405228
mov eax, dword [ebp - 0xc8]
call fcn.00405360
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xd8]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0xd8]
push 0x5af13c
push 0x5af14c
lea eax, [ebp - 0xd4]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0xd4]
call fcn.00405360
push eax
lea eax, [ebp - 0xe0]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0xe0]
push 0x5af13c
lea edx, [ebp - 0xe4]
mov eax, dword [esi + 0x84]
call fcn.00409e18
push dword [ebp - 0xe4]
push 0x5af17c
lea eax, [ebp - 0xdc]
mov edx, 4
call fcn.00405228
mov eax, dword [ebp - 0xdc]
call fcn.00405360
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xec]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0xec]
push 0x5af160
push 0x5af16c
lea eax, [ebp - 0xe8]
mov edx, 3
call fcn.00405228
mov eax, dword [ebp - 0xe8]
call fcn.00405360
push eax
lea eax, [ebp - 0xf4]
mov edx, edi
call fcn.0040510c
push dword [ebp - 0xf4]
push 0x5af160
lea edx, [ebp - 0xf8]
mov eax, dword [esi + 0x84]
call fcn.00409e18
push dword [ebp - 0xf8]
push 0x5af17c
lea eax, [ebp - 0xf0]
mov edx, 4
call fcn.00405228
mov eax, dword [ebp - 0xf0]
call fcn.00405360
push eax
call sub.kernel32.dll_CopyFileA
mov edx, 0x5af0d8
mov eax, dword [ebx + 0x300]
call fcn.0050fde4
mov edx, 0x5af0f4
mov eax, dword [ebx + 0x32c]
call fcn.0050fde4
mov edx, 0x5af110
mov eax, dword [ebx + 0x33c]
call fcn.0050fde4
mov edx, 0x5af12c
mov eax, dword [ebx + 0x34c]
call fcn.0050fde4
mov edx, 0x5af14c
mov eax, dword [ebx + 0x35c]
call fcn.0050fde4
mov edx, 0x5af16c
mov eax, dword [ebx + 0x42c]
call fcn.0050fde4
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005b15b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5af061
lea eax, [ebp - 0xf8]
mov edx, 0x3d
call fcn.00404ed4
ret