Function at 0x21a318
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x21a320
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x21aa4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x27071c]
mov eax, dword [eax]
push dword [eax + 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x340]
call fcn.00180f44
push dword [ebp - 0x18]
push 0x21aa68
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00105418
mov eax, dword [ebp - 0x10]
call fcn.0010c7a4
test al, al
je 0x21a3aa
push 0
call fcn.0025a434
lea ecx, [ebp - 0x1c]
mov edx, 0xea6b
call fcn.0025a9ec
mov eax, dword [ebp - 0x1c]
mov cx, word [0x21aa74]
xor edx, edx
call fcn.0013a960
cmp eax, 6
jne 0x21a97e
mov eax, dword [ebp - 0x10]
call fcn.0010c9f0
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x149940]
call fcn.001499f0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x21a977
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov ecx, 0x21aa80
mov edx, 0x21aa8c
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x340]
call fcn.00180f44
mov eax, dword [ebp - 0x20]
push eax
mov ecx, 0x21aaa0
mov edx, 0x21aa8c
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
cmp dword [ebx + 0x374], 0
je 0x21a485
push 0
mov eax, dword [0x27071c]
mov eax, dword [eax]
push dword [eax + 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x340]
call fcn.00180f44
push dword [ebp - 0x28]
push 0x21aab0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00105418
mov eax, dword [ebp - 0x24]
call fcn.00105558
push eax
mov eax, dword [ebx + 0x374]
call fcn.00105558
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0x340]
call fcn.00180f44
lea eax, [ebp - 0x2c]
mov edx, 0x21aab0
call fcn.00105360
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, 0x21aac0
mov edx, 0x21aa8c
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
lea edx, [ebp - 0x30]
mov eax, dword [ebx + 0x310]
call fcn.00180f44
mov eax, dword [ebp - 0x30]
push eax
mov ecx, 0x21aad0
mov edx, 0x21aa8c
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x314]
call fcn.00180f44
mov eax, dword [ebp - 0x34]
push eax
mov ecx, 0x21aae4
mov edx, 0x21aa8c
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x31c]
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x21a623
inc eax
mov dword [ebp - 0x14], eax
xor esi, esi
mov eax, dword [ebx + 0x31c]
mov edx, esi
call fcn.00210204
test al, al
je 0x21a619
lea ecx, [ebp - 0x38]
mov eax, dword [ebx + 0x31c]
mov eax, dword [eax + 0x218]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
push eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.0010c1ac
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x21aaf8
call fcn.001053a4
mov edx, dword [ebp - 0x3c]
mov ecx, 0x21ab08
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 4]
mov al, byte [0x21ab10]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebx + 0x340]
call fcn.00180f44
push dword [ebp - 0x48]
push 0x21ab1c
lea ecx, [ebp - 0x4c]
mov eax, dword [ebx + 0x31c]
mov eax, dword [eax + 0x218]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x4c]
push 0x21ab28
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00105418
mov eax, dword [ebp - 0x44]
mov ecx, 0x21ab1c
mov edx, 0x21ab38
call fcn.00111a20
mov eax, dword [ebp - 0xc]
push eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 8]
call fcn.0010c1ac
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x21aaf8
call fcn.001053a4
mov edx, dword [ebp - 0x50]
mov ecx, 0x21ab44
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 4]
push 0
mov eax, dword [0x27071c]
mov eax, dword [eax]
mov edx, dword [eax + 0x14]
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
call fcn.001053a4
mov eax, dword [ebp - 0x58]
call fcn.00105558
push eax
mov eax, dword [ebx + 0x384]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.002592a4
mov eax, dword [eax + 0xc]
call fcn.00105558
push eax
call sub.kernel32.dll_CopyFileA
inc dword [ebp - 8]
inc esi
dec dword [ebp - 0x14]
jne 0x21a4f2
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x21ab50
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x384]
mov eax, dword [eax + 8]
movzx eax, byte [eax + 4]
push eax
mov ecx, 0x21ab74
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x384]
mov eax, dword [eax + 8]
mov al, byte [eax + 0x30]
push eax
mov ecx, 0x21ab84
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x14]
mov al, byte [0x21ab10]
push eax
lea eax, [ebp - 0x5c]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [ebx + 0x328]
call fcn.00180f44
mov eax, dword [ebp - 0x60]
mov ecx, 0x21ab94
mov edx, 0x21aba4
call fcn.00111a20
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, 0x21abb0
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
mov al, byte [0x21ab10]
push eax
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebx + 0x344]
call fcn.00180f44
mov eax, dword [ebp - 0x68]
mov ecx, 0x21ab94
mov edx, 0x21aba4
call fcn.00111a20
mov eax, dword [ebp - 0x64]
push eax
mov ecx, 0x21abc4
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
mov al, byte [0x21ab10]
push eax
lea eax, [ebp - 0x6c]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebx + 0x330]
call fcn.00180f44
mov eax, dword [ebp - 0x70]
mov ecx, 0x21ab94
mov edx, 0x21aba4
call fcn.00111a20
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, 0x21abd8
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx + 0x384]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x60]
push eax
mov ecx, 0x21abe8
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx + 0x384]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
push eax
mov ecx, 0x21ac04
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx + 0x384]
mov eax, dword [eax + 8]
mov al, byte [eax + 0x58]
push eax
mov ecx, 0x21ac18
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [ebx + 0x384]
mov eax, dword [eax + 8]
mov al, byte [eax + 0x59]
push eax
mov ecx, 0x21ac34
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [ebx + 0x34c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x21a7f0
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x384]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
call fcn.0011fa30
mov eax, dword [ebp - 0x74]
push eax
mov ecx, 0x21ac4c
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx + 0x350]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x21a82c
lea edx, [ebp - 0x78]
mov eax, dword [ebx + 0x384]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x20]
call fcn.0011fa30
mov eax, dword [ebp - 0x78]
push eax
mov ecx, 0x21ac60
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx + 0x354]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x21a868
lea edx, [ebp - 0x7c]
mov eax, dword [ebx + 0x384]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
call fcn.0011fa30
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, 0x21ac70
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
cmp dword [ebx + 0x378], 0
je 0x21a8fe
push 0
mov eax, dword [0x27071c]
mov eax, dword [eax]
push dword [eax + 0x14]
lea edx, [ebp - 0x84]
mov eax, dword [ebx + 0x340]
call fcn.00180f44
push dword [ebp - 0x84]
push 0x21ac8c
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00105418
mov eax, dword [ebp - 0x80]
call fcn.00105558
push eax
mov eax, dword [ebx + 0x378]
call fcn.00105558
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x88]
mov eax, dword [ebx + 0x340]
call fcn.00180f44
lea eax, [ebp - 0x88]
mov edx, 0x21ac8c
call fcn.00105360
mov eax, dword [ebp - 0x88]
push eax
mov ecx, 0x21aac0
mov edx, 0x21ab64
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 4]
push 0
push 0x21aca4
lea edx, [ebp - 0x90]
mov eax, dword [ebx + 0x340]
call fcn.00180f44
push dword [ebp - 0x90]
push 0x21ace8
lea edx, [ebp - 0x94]
mov eax, dword [ebx + 0x314]
call fcn.00180f44
push dword [ebp - 0x94]
push 0x21ad00
lea eax, [ebp - 0x8c]
mov edx, 5
call fcn.00105418
mov eax, dword [ebp - 0x8c]
mov cx, word [0x21ad24]
mov dl, 2
call fcn.0013a960
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x21a97e
mov eax, dword [ebp - 4]
call fcn.0010420c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x21aa57
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.001050a0
lea eax, [ebp - 0x8c]
call fcn.0010507c
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.001050a0
lea eax, [ebp - 0x80]
mov edx, 4
call fcn.001050a0
lea eax, [ebp - 0x70]
call fcn.0010507c
lea eax, [ebp - 0x6c]
call fcn.0010507c
lea eax, [ebp - 0x68]
call fcn.0010507c
lea eax, [ebp - 0x64]
call fcn.0010507c
lea eax, [ebp - 0x60]
call fcn.0010507c
lea eax, [ebp - 0x5c]
mov edx, 5
call fcn.001050a0
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.001050a0
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.001050a0
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.001050a0
lea eax, [ebp - 0x24]
call fcn.0010507c
lea eax, [ebp - 0x20]
call fcn.0010507c
lea eax, [ebp - 0x1c]
call fcn.0010507c
lea eax, [ebp - 0x18]
call fcn.0010507c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.001050a0
ret