Function at 0x4453d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457110
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push 0x460ef0
mov ebx, dword [ebp + 8]
push ebx
call fcn.00449570
test eax, eax
je 0x44564b
push 0x104
call fcn.0044c0d4
mov edx, eax
mov dword [ebp - 0x44], edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xd
call fcn.0044c0d4
mov esi, eax
mov dword [ebp - 0x60], esi
push 0x104
call fcn.0044c0d4
mov dword [ebp - 0x5c], eax
push 0
push esi
push 0
push 0
push ebx
call fcn.0044c925
mov edi, dword [0x477398]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp - 0x5c]
mov ebx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x460ef8
or edx, 0xffffffff
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0x68], edx
push 0x104
call fcn.0044c0d4
add esp, 0x24
mov esi, eax
mov dword [ebp - 0x70], esi
mov ebx, dword [ebp + 8]
push ebx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
push 0x104
call fcn.0044c0d4
add esp, 4
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x5c]
push ecx
push eax
call edi
push 0x40
lea edx, [ebp - 0xf8]
push edx
push esi
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
mov dword [ebp - 0xfc], edi
cmp edi, 0xffffffff
je 0x445583
push 0x1041
lea eax, [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0x100]
push ecx
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je 0x445586
push eax
push edi
call sub.LZ32.dll_LZCopy
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x68]
cmp edi, 0xffffffff
je 0x445594
push edi
call sub.LZ32.dll_LZClose
mov eax, dword [ebp - 0x68]
cmp eax, 0xffffffff
je 0x44559f
push eax
call sub.LZ32.dll_LZClose
test esi, esi
je 0x4455ac
push esi
call fcn.0044c186
add esp, 4
mov eax, dword [ebp - 0x100]
test eax, eax
je 0x4455bf
push eax
call fcn.0044c186
add esp, 4
xor eax, eax
mov edx, dword [ebp - 0x6c]
test edx, edx
setge al
mov dword [ebp - 0x64], eax
test eax, eax
je 0x4455f0
mov edi, dword [ebp - 0x5c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x60]
push eax
call fcn.0044c186
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0044c186
add esp, 8
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x44564b
mov edx, dword [ebp - 0x44]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
call fcn.0044c186
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44597b
mov byte [eax], 0
jmp 0x44597b
push 0x656d616e
push ebx
call fcn.004459a0
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x44566e
push eax
push eax
push 1
push 0xefffffff
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov dword [ebp - 0x28], edi
xor ecx, ecx
mov ch, byte [edi + 2]
mov cl, byte [edi + 3]
mov word [edi + 2], cx
xor edx, edx
mov dh, byte [edi + 4]
mov dl, byte [edi + 5]
mov word [edi + 4], dx
lea eax, [edi + 6]
mov dword [ebp - 0x3c], eax
xor edx, edx
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x28]
cmp dx, word [ecx + 2]
jae 0x44570c
xor ecx, ecx
mov cl, byte [eax + 7]
xor ebx, ebx
mov bh, byte [eax + 6]
or ecx, ebx
mov word [eax + 6], cx
test cx, cx
jne 0x445761
mov ecx, eax
mov dword [ebp - 0x104], ecx
xor esi, esi
mov dword [ebp - 0x108], esi
cmp esi, 6
jge 0x4456e1
xor ebx, ebx
mov bh, byte [ecx]
mov bl, byte [ecx + 1]
mov word [ecx], bx
add ecx, 2
mov dword [ebp - 0x104], ecx
inc esi
jmp 0x4456c0
cmp word [eax], 3
jne 0x445761
mov cx, word [eax + 4]
cmp cx, word [0x475a76]
jne 0x445740
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x44571a
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x445721
cmp word [ebp - 0x1c], 0
jne 0x44576d
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp esi, eax
je 0x44572c
mov byte [esi], al
mov dword [ebp - 0x38], eax
push eax
push eax
push 1
push 0xefffffff
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp cx, 0x409
jne 0x445761
mov ecx, eax
mov esi, dword [ecx]
mov dword [ebp - 0x24], esi
mov esi, dword [ecx + 4]
mov dword [ebp - 0x20], esi
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x54], 1
add eax, 0xc
mov dword [ebp - 0x3c], eax
inc edx
jmp 0x445691
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test bx, bx
je 0x44577c
test esi, esi
jne 0x44579f
mov esi, dword [ebp - 0x1c]
mov edx, esi
and edx, 0xffff
shr edx, 1
mov dword [ebp - 0x38], edx
push 0
push 0
push 1
push 0xefffffff
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov esi, dword [ebp - 0x1c]
mov ax, si
shr ax, 1
cmp ax, bx
jae 0x4457b7
and esi, 0xffff
mov edx, esi
jmp 0x4457c3
mov ecx, ebx
and ecx, 0xffff
lea edx, [ecx + ecx - 2]
mov dword [ebp - 0x30], edx
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov ax, word [ecx + 4]
mov esi, dword [ebp - 0x1a]
and esi, 0xffff
add edi, eax
add esi, edi
mov dword [ebp - 0x34], esi
mov ecx, ebx
and ecx, 0xffff
mov dword [ebp - 0x120], ecx
xor eax, eax
mov edi, dword [ebp + 0xc]
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
and edx, 0xffff
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], ebx
mov ecx, edx
shr ecx, 1
mov dword [ebp - 0x10c], ecx
mov edi, dword [ebp + 0xc]
mov byte [edi], 0
mov eax, edx
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x445880
mov eax, esi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 0
cmp dword [ebp - 0x114], ecx
jge 0x445862
xor edx, edx
mov dh, byte [eax]
mov dl, byte [eax + 1]
mov word [eax], dx
add eax, 2
mov dword [ebp - 0x110], eax
inc dword [ebp - 0x114]
jmp 0x44583f
push 0
push 0
push ebx
push edi
mov eax, dword [ebp - 0x10c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x445880
mov byte [edi], al
mov eax, dword [ebp + 0x10]
and eax, 0xffff
mov byte [eax + edi - 1], 0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4458d5
mov ebx, dword [ebp + 8]
push ebx
call fcn.0044c687
mov edx, dword [ebp - 0x44]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push edx
call fcn.0044c186
add esp, 8
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4458e5
push eax
call fcn.0044c186
add esp, 4
mov ecx, dword [ebp - 0x38]
lea eax, [ecx + 1]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc