Function at 0x493374
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
push ebx
mov dword [ebp - 0xbc], eax
mov eax, 0x4cf6ec
call fcn.004afb5c
mov word [ebp - 0xa8], 8
mov edx, 0x4cc184
lea eax, [ebp - 4]
call fcn.004b9bd8
inc dword [ebp - 0x9c]
push dword [eax]
lea eax, [ebp - 8]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
call fcn.0040b540
add esp, 8
lea eax, [ebp - 8]
mov eax, dword [eax]
call fcn.0047695c
xor edx, edx
mov dl, al
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x9c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b9d00
pop ecx
test cl, cl
je 0x493609
push 0
mov word [ebp - 0xa8], 0x14
mov edx, 0x4cc184
lea eax, [ebp - 0xc]
call fcn.004b9bd8
inc dword [ebp - 0x9c]
push dword [eax]
lea eax, [ebp - 0x10]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
call fcn.0040b540
add esp, 8
lea eax, [ebp - 0x10]
call fcn.00408c78
push eax
mov edx, 0x4cc17c
lea eax, [ebp - 0x14]
call fcn.004b9bd8
inc dword [ebp - 0x9c]
push dword [eax]
lea eax, [ebp - 0x18]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
call fcn.0040b540
add esp, 8
lea eax, [ebp - 0x18]
call fcn.00408c78
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
sete dl
and edx, 1
push edx
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b9d00
pop ecx
test cl, cl
je 0x49359c
mov word [ebp - 0xa8], 0x20
mov edx, 0x4cc184
lea eax, [ebp - 0x1c]
call fcn.004b9bd8
inc dword [ebp - 0x9c]
push dword [eax]
lea eax, [ebp - 0x20]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
call fcn.0040b540
add esp, 8
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x9c]
mov eax, 0x4caf96
pop edx
call fcn.004ba340
lea edx, [ebp - 0x24]
mov edx, dword [edx]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x3f8]
mov ecx, 2
call fcn.004a5090
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004b9d00
xor eax, eax
mov edx, dword [ebp - 0xb8]
mov dword fs:[0], edx
jmp 0x493c9d
mov word [ebp - 0xa8], 0x2c
mov edx, 0x4cc17c
lea eax, [ebp - 0x28]
call fcn.004b9bd8
inc dword [ebp - 0x9c]
mov edx, dword [eax]
mov eax, dword [ebp - 0xbc]
call fcn.00488344
xor ecx, ecx
mov cl, al
cmp ecx, 1
sbb eax, eax
neg eax
push eax
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004b9d00
pop ecx
test cl, cl
je 0x493609
mov eax, dword [0x4db5ac]
mov eax, dword [eax]
call fcn.00442728
xor eax, eax
mov edx, dword [ebp - 0xb8]
mov dword fs:[0], edx
jmp 0x493c9d
mov eax, dword [ebp - 0xbc]
call fcn.00493260
mov word [ebp - 0xa8], 0x44
mov edx, 0x4cc184
lea eax, [ebp - 0x2c]
call fcn.004b9bd8
inc dword [ebp - 0x9c]
push dword [eax]
lea eax, [ebp - 0x30]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
call fcn.0040b540
add esp, 8
lea ecx, [ebp - 0x30]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x42cde0]
call fcn.00408c98
mov dword [ebp - 0xc0], eax
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0xa8], 0x38
xor ecx, ecx
mov dword [ebp - 0xc4], ecx
jmp 0x493c2a
mov word [ebp - 0xa8], 0x5c
lea eax, [ebp - 0x38]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
push dword [ebp - 0xc4]
mov edx, dword [ebp - 0xbc]
add edx, 0x38c
push edx
call fcn.00488308
add esp, 8
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
pop edx
call fcn.004766ec
lea ecx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x3c]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x9c]
mov eax, 0x4cafb0
pop edx
call fcn.004ba340
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x34]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
mov edx, 0x4cafb2
lea eax, [ebp - 0x40]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
lea edx, [ebp - 0x40]
pop ecx
pop eax
call fcn.004b9d58
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0xa8], 0x50
mov edx, 0x4cafc2
lea eax, [ebp - 0x50]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
push dword [eax]
mov word [ebp - 0xa8], 0x68
lea eax, [ebp - 0x48]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
mov edx, 0x4cafb4
lea eax, [ebp - 0x44]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x34]
pop ecx
call fcn.004b9d58
lea edx, [ebp - 0x48]
push dword [edx]
mov edx, 0x4cafbd
lea eax, [ebp - 0x4c]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc0]
pop edx
mov ebx, dword [eax]
call dword [ebx + 4]
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0xa8], 0x74
mov edx, 0x4cafc4
lea eax, [ebp - 0x54]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp - 0xc4]
mov eax, dword [ebp - 0xbc]
add eax, 0x38c
push eax
call fcn.00488308
add esp, 8
mov eax, dword [eax]
add eax, 0x54
pop edx
call fcn.004b9d30
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004b9d00
mov dword [ebp - 0xc8], 1
mov word [ebp - 0xa8], 0x50
jmp 0x493bd5
mov word [ebp - 0xa8], 0x8c
lea eax, [ebp - 0x5c]
call fcn.00401790
mov edx, eax
inc dword [ebp - 0x9c]
mov eax, dword [ebp - 0xc8]
call fcn.0048f6f0
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x60]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x9c]
mov eax, 0x4cafc6
pop edx
call fcn.004ba340
lea ecx, [ebp - 0x60]
push ecx
lea eax, [ebp - 0x58]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
mov edx, 0x4cafc8
lea eax, [ebp - 0x64]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
lea edx, [ebp - 0x64]
pop ecx
pop eax
call fcn.004b9d58
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0xa8], 0x80
mov edx, 0x4cafe1
lea eax, [ebp - 0x78]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
push dword [eax]
lea eax, [ebp - 0x74]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
mov edx, 0x4cafd3
lea eax, [ebp - 0x70]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
lea edx, [ebp - 0x70]
lea eax, [ebp - 0x58]
pop ecx
call fcn.004b9d58
lea edx, [ebp - 0x74]
push dword [edx]
mov word [ebp - 0xa8], 0x98
lea eax, [ebp - 0x6c]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
mov edx, 0x4cafca
lea eax, [ebp - 0x68]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x34]
pop ecx
call fcn.004b9d58
lea edx, [ebp - 0x6c]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 4]
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004b9d00
mov edx, 0x4caffb
lea eax, [ebp - 0x8c]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
push dword [eax]
lea eax, [ebp - 0x88]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
mov edx, 0x4cafec
lea eax, [ebp - 0x84]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
lea edx, [ebp - 0x84]
lea eax, [ebp - 0x58]
pop ecx
call fcn.004b9d58
lea edx, [ebp - 0x88]
push dword [edx]
mov word [ebp - 0xa8], 0xa4
lea eax, [ebp - 0x80]
call fcn.00401790
push eax
inc dword [ebp - 0x9c]
mov edx, 0x4cafe3
lea eax, [ebp - 0x7c]
call fcn.004b9ba0
inc dword [ebp - 0x9c]
lea edx, [ebp - 0x7c]
lea eax, [ebp - 0x34]
pop ecx
call fcn.004b9d58
lea edx, [ebp - 0x80]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 4]
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.004b9d00
mov ecx, dword [ebp - 0xc8]
dec ecx
push ecx
push dword [ebp - 0xc4]
mov eax, dword [ebp - 0xbc]
add eax, 0x38c
push eax
call fcn.00488308
add esp, 8
mov edx, dword [eax]
add edx, 0x60
push edx
call fcn.00411030
add esp, 8
mov ecx, dword [eax]
xor eax, eax
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 0xc8]
dec edx
push edx
push dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xbc]
add ecx, 0x38c
push ecx
call fcn.00488308
add esp, 8
mov eax, dword [eax]
add eax, 0x60
push eax
call fcn.00411030
add esp, 8
mov edx, dword [eax]
xor ecx, ecx
mov dword [edx + 0x34], ecx
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0xa8], 0x50
inc dword [ebp - 0xc8]
push dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xbc]
add ecx, 0x38c
push ecx
call fcn.00488308
add esp, 8
mov eax, dword [eax]
add eax, 0x60
push eax
call fcn.00410790
pop ecx
cmp eax, dword [ebp - 0xc8]
jae 0x493899
dec dword [ebp - 0x9c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0xa8], 0x38
inc dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xbc]
add ecx, 0x38c
push ecx
call fcn.004882e0
pop ecx
cmp eax, dword [ebp - 0xc4]
ja 0x49369c
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x493c8e
mov edx, dword [ebp - 0x94]
mov ecx, dword [edx]
mov dword [ebp - 0x90], ecx
mov word [ebp - 0xa8], 0xbc
mov edx, 3
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xa8], 0xb0
mov al, 1
mov edx, dword [ebp - 0xb8]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret