Function at 0x596ad8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x596ae0
push ecx
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x597338
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x30]
mov eax, dword [0x5c1998]
mov eax, dword [eax]
call fcn.00454584
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xc]
call fcn.00408e7c
lea eax, [ebp - 0x10]
mov ecx, 0x597350
mov edx, dword [ebp - 0xc]
call fcn.0040400c
mov eax, dword [ebp - 0x10]
call fcn.0056cc84
test al, al
jne 0x596b3c
mov eax, dword [ebp - 0x10]
call fcn.00409010
mov dl, 1
mov eax, dword [0x40f030]
call fcn.00402fc4
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x5972bf
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.004b9f68
xor ebx, ebx
jmp 0x597290
lea ecx, [ebp - 0x38]
mov eax, dword [esi]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00408ee8
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x14]
call fcn.00408688
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
call fcn.0043568c
mov eax, dword [ebp - 0x3c]
mov edx, 0x597364
call fcn.004040d0
jne 0x596d04
mov eax, dword [ebp - 0x14]
mov edx, 0x597380
call fcn.004040d0
jne 0x596c26
lea ecx, [ebp - 0x40]
mov eax, dword [esi]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
call fcn.0056c46c
test al, al
je 0x59728f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
mov edx, dword [ebp - 0x10]
call fcn.0056c908
push dword [ebp - 0x10]
push 0x597390
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
push dword [eax + 8]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x59728f
mov eax, dword [ebp - 0x14]
mov edx, 0x59739c
call fcn.004040d0
jne 0x596c95
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404080
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
pop edx
call fcn.00596a28
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x59728f
mov eax, dword [ebp - 0x14]
mov edx, 0x5973b8
call fcn.004040d0
jne 0x59728f
lea ecx, [ebp - 0x54]
mov eax, dword [esi]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x54]
push eax
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x28]
pop eax
call fcn.00596880
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x59728f
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
call fcn.0043568c
mov eax, dword [ebp - 0x60]
mov edx, 0x5973c8
call fcn.004040d0
jne 0x596e10
mov eax, dword [ebp - 0x14]
mov edx, 0x597380
call fcn.004040d0
jne 0x596d9e
lea ecx, [ebp - 0x64]
mov eax, dword [esi]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
call fcn.0056c46c
test al, al
je 0x59728f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
mov edx, dword [ebp - 0x10]
call fcn.0056c908
push dword [ebp - 0x10]
push 0x597390
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
push dword [eax + 0xc]
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x59728f
mov eax, dword [ebp - 0x14]
mov edx, 0x5973e0
call fcn.004040d0
jne 0x59728f
mov al, byte [ebp - 0x29]
neg al
sbb eax, eax
push eax
push dword [ebp - 0x10]
push 0x5973f0
push dword [ebp - 0x28]
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.00404080
mov eax, dword [ebp - 0x6c]
call fcn.00404184
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404184
push eax
call sub.kernel32.dll_CopyFileA
push dword [ebp - 0x10]
push 0x5973f0
push dword [ebp - 0x28]
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x59728f
mov eax, dword [ebp - 0x14]
mov edx, 0x597380
call fcn.004040d0
jne 0x596eb6
lea ecx, [ebp - 0x74]
mov eax, dword [esi]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
call fcn.0056c46c
test al, al
je 0x59728f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
mov edx, dword [ebp - 0x10]
call fcn.0056c908
push dword [ebp - 0x10]
push 0x597390
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
push dword [eax + 8]
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push dword [ebp - 0x10]
push 0x597390
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
push dword [eax + 0xc]
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x59728f
mov eax, dword [ebp - 0x14]
mov edx, 0x5973fc
call fcn.004040d0
je 0x596ef6
mov eax, dword [ebp - 0x14]
mov edx, 0x5973e0
call fcn.004040d0
je 0x596ef6
mov eax, dword [ebp - 0x14]
mov edx, 0x59739c
call fcn.004040d0
je 0x596ef6
mov eax, dword [ebp - 0x14]
mov edx, 0x5973b8
call fcn.004040d0
jne 0x59728f
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x80]
mov eax, dword [esi]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0059653c
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x84]
mov eax, dword [esi]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x84]
mov edx, dword [esi]
mov ecx, ebx
call fcn.00596700
mov edx, 3
mov eax, dword [ebp - 8]
call fcn.00596190
test al, al
je 0x597012
mov al, byte [ebp - 0x29]
neg al
sbb eax, eax
push eax
push dword [ebp - 0x10]
push 0x5973f0
push dword [ebp - 0x28]
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.00404080
mov eax, dword [ebp - 0x88]
call fcn.00404184
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404184
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.00404080
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00596a28
push dword [ebp - 0x10]
push 0x5973f0
push dword [ebp - 0x28]
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x59728f
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.00596190
test al, al
je 0x5970e7
mov al, byte [ebp - 0x29]
neg al
sbb eax, eax
push eax
push dword [ebp - 0x10]
push 0x5973f0
push dword [ebp - 0x28]
lea eax, [ebp - 0x98]
mov edx, 3
call fcn.00404080
mov eax, dword [ebp - 0x98]
call fcn.00404184
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404184
push eax
call sub.kernel32.dll_CopyFileA
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0x9c]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.00596880
push dword [ebp - 0x10]
push 0x5973f0
push dword [ebp - 0x28]
lea eax, [ebp - 0xa0]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0xa4]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x59728f
push 0
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xb4]
mov eax, dword [esi]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0xb
lea edx, [ebp - 0xb0]
xor ecx, ecx
mov eax, 0x59740c
call fcn.004097c8
mov eax, dword [ebp - 0xa8]
mov cx, word [0x597458]
mov dl, 1
call fcn.0045b92c
cmp eax, 6
jne 0x59728f
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00596190
test al, al
je 0x5971bd
mov al, byte [ebp - 0x29]
neg al
sbb eax, eax
push eax
push dword [ebp - 0x10]
push 0x5973f0
push dword [ebp - 0x28]
lea eax, [ebp - 0xb8]
mov edx, 3
call fcn.00404080
mov eax, dword [ebp - 0xb8]
call fcn.00404184
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404184
push eax
call sub.kernel32.dll_CopyFileA
push dword [ebp - 0x10]
push 0x5973f0
push dword [ebp - 0x28]
lea eax, [ebp - 0xbc]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x59728f
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00596190
test al, al
je 0x597229
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0xc0]
mov edx, 3
call fcn.00404080
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00596a28
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0xc4]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x59728f
mov edx, 4
mov eax, dword [ebp - 8]
call fcn.00596190
test al, al
je 0x59728f
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0xc8]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.00596880
push dword [ebp - 0x10]
push 0x5973ac
push dword [ebp - 0x28]
lea eax, [ebp - 0xcc]
mov edx, 3
call fcn.00404080
mov edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc ebx
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x596b6a
mov eax, dword [esi]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5972c6
mov eax, dword [ebp - 0x18]
call fcn.00402ff4
ret