Function at 0x444930
Capabilities:
Copy file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457100
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
lea ebx, [edi + 0xc2]
mov dword [ebp - 0x1c8], ebx
push 0x460ef0
push ebx
call fcn.00449570
test eax, eax
je 0x444be1
push 0x104
call fcn.0044c0d4
mov edx, eax
mov dword [ebp - 0x48], 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]
mov esi, ebx
mov dword [ebp - 0x104], esi
push 0xd
call fcn.0044c0d4
mov ebx, eax
mov dword [ebp - 0x60], ebx
push 0x104
call fcn.0044c0d4
mov dword [ebp - 0x5c], eax
push 0
push ebx
push 0
push 0
push esi
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 eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x5c]
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x1cc], ebx
mov ebx, edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [ebp - 0x1cc]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x460ef8
or edx, 0xffffffff
mov ecx, edx
xor eax, eax
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 ecx, dword [ebp - 0x104]
push ecx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
push 0x104
call fcn.0044c0d4
add esp, 4
mov ebx, eax
mov dword [ebp - 0x100], ebx
mov edx, dword [ebp - 0x5c]
push edx
push ebx
call edi
push 0x40
lea eax, [ebp - 0xf8]
push eax
push esi
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
mov dword [ebp - 0xfc], edi
cmp edi, 0xffffffff
je 0x444b0f
push 0x1041
lea ecx, [ebp - 0xf8]
push ecx
push ebx
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je 0x444b04
mov edx, eax
push edx
push edi
call sub.LZ32.dll_LZCopy
mov dword [ebp - 0x6c], eax
cmp edi, 0xffffffff
je 0x444b0f
push edi
call sub.LZ32.dll_LZClose
mov eax, dword [ebp - 0x68]
cmp eax, 0xffffffff
je 0x444b1d
push eax
call sub.LZ32.dll_LZClose
test esi, esi
je 0x444b2a
push esi
call fcn.0044c186
add esp, 4
test ebx, ebx
je 0x444b37
push ebx
call fcn.0044c186
add esp, 4
xor ecx, ecx
mov edx, dword [ebp - 0x6c]
test edx, edx
setge cl
mov esi, ecx
mov dword [ebp - 0x64], esi
test esi, esi
je 0x444b75
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 ebx, dword [ebp - 0x1c8]
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 esi, dword [ebp - 0x64]
jmp 0x444b7b
mov ebx, dword [ebp - 0x1c8]
mov eax, dword [ebp - 0x60]
push eax
call fcn.0044c186
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0044c186
add esp, 8
mov dword [ebp - 0x4c], esi
test esi, esi
jne 0x444bde
mov edx, dword [ebp - 0x48]
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, 4
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
push 0
push 0x10000082
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x54], esi
or ebx, 0xffffffff
cmp esi, ebx
jne 0x444c0e
mov dword [ebp - 4], ebx
jmp 0x44528a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0xc
lea edx, [ebp - 0x40]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444c06
cmp dword [ebp - 0x28], 0xc
jne 0x444c06
mov eax, dword [ebp - 0x3c]
and eax, 0xff
shl eax, 8
mov ecx, dword [ebp - 0x3b]
and ecx, 0xff
or eax, ecx
mov dword [ebp - 0x30], eax
test ax, ax
je 0x444c06
cmp ax, 0x28
ja 0x444c06
mov esi, eax
and esi, 0xffff
shl esi, 4
push esi
call fcn.0044c0d4
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x444c82
mov dword [ebp - 4], 0xffffffff
jmp 0x44528a
push 0
lea edx, [ebp - 0x28]
push edx
push esi
push eax
mov ebx, dword [ebp - 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x445255
cmp dword [ebp - 0x28], esi
jne 0x445255
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x44], eax
cmp ax, word [ebp - 0x30]
jae 0x4451ae
mov esi, eax
and esi, 0xffff
shl esi, 4
add esi, dword [ebp - 0x50]
mov dword [ebp - 0x34], esi
xor ecx, ecx
mov ch, byte [esi + 0xc]
mov cl, byte [esi + 0xd]
shl ecx, 8
xor edx, edx
mov dl, byte [esi + 0xe]
or ecx, edx
shl ecx, 8
xor eax, eax
mov al, byte [esi + 0xf]
or ecx, eax
xor edx, edx
mov dh, byte [esi + 8]
mov dl, byte [esi + 9]
shl edx, 8
xor eax, eax
mov al, byte [esi + 0xa]
or edx, eax
shl edx, 8
xor eax, eax
mov al, byte [esi + 0xb]
or edx, eax
add ecx, edx
cmp ecx, dword [ebp - 0x1c]
jle 0x444d13
mov dword [ebp - 4], 0xffffffff
jmp 0x44528a
mov eax, dword [esi]
cmp eax, 0x656d616e
jg 0x44509e
je 0x445082
cmp eax, 0x322f534f
je 0x444e43
cmp eax, 0x47495344
je 0x444e33
cmp eax, 0x64616568
jne 0x4451a5
push 0
push 0
xor ecx, ecx
mov ch, byte [esi + 8]
mov cl, byte [esi + 9]
shl ecx, 8
xor edx, edx
mov dl, byte [esi + 0xa]
or ecx, edx
shl ecx, 8
xor eax, eax
mov al, byte [esi + 0xb]
or ecx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x170]
push ecx
push 0x36
lea edx, [ebp - 0x1a8]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444e17
cmp dword [ebp - 0x170], 0x36
jne 0x444e17
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x444df1
mov eax, dword [ebp - 0x17c]
and eax, 0xff
shl eax, 8
mov ecx, dword [ebp - 0x17b]
and ecx, 0xff
or eax, ecx
mov dword [ebp - 0x1ac], eax
mov dl, al
and dl, 1
neg dl
sbb edx, edx
and edx, 0x12c
add edx, 0x190
mov word [edi + 0x24], dx
shr eax, 1
and eax, 1
mov byte [edi + 0x23], al
mov byte [0x475a6c], 0
mov byte [0x475a74], 0
xor eax, eax
mov ah, byte [ebp - 0x196]
movsx ecx, ax
mov edx, dword [ebp - 0x195]
and edx, 0xff
or ecx, edx
mov dword [0x475a70], ecx
mov eax, 1
jmp 0x444e19
xor eax, eax
mov dword [ebp - 0x1b0], eax
test eax, eax
jne 0x4451a5
mov dword [ebp - 4], 0xffffffff
jmp 0x44528a
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x44]
inc eax
jmp 0x444caa
mov dword [ebp - 0x10c], 1
push 0
push 0
xor eax, eax
mov ah, byte [esi + 8]
mov al, byte [esi + 9]
shl eax, 8
xor ecx, ecx
mov cl, byte [esi + 0xa]
or eax, ecx
shl eax, 8
xor edx, edx
mov dl, byte [esi + 0xb]
or eax, edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x108]
push eax
push 0x56
lea ecx, [ebp - 0x164]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x444e9e
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
inc eax
jmp 0x444caa
mov eax, dword [ebp - 0x160]
and eax, 0xff
shl eax, 8
mov edx, dword [ebp - 0x15f]
and edx, 0xff
or eax, edx
mov word [edi + 0x24], ax
cmp ax, 0xb
jae 0x444f05
mov dword [ebp - 0x168], eax
cmp ax, 0xa
jae 0x444efb
test ax, ax
jbe 0x444efb
and eax, 0xffff
mov ecx, eax
sub ecx, 4
je 0x444ef6
dec ecx
je 0x444eef
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
jmp 0x444efb
mov eax, 0x190
jmp 0x444efb
mov eax, 0x15e
mov dword [ebp - 0x16c], eax
mov word [edi + 0x24], ax
mov al, byte [ebp - 0x125]
and al, 1
dec al
neg al
sbb eax, eax
inc eax
mov byte [edi + 0x23], al
lea ecx, [edi + 0x46]
mov esi, ecx
mov eax, dword [ebp - 0x144]
mov dword [esi], eax
mov ecx, dword [ebp - 0x140]
mov dword [esi + 4], ecx
mov dx, word [ebp - 0x13c]
mov word [esi + 8], dx
sub esp, 0xc
mov esi, esp
mov dword [esi], eax
mov dword [esi + 4], ecx
mov word [esi + 8], dx
call fcn.00445360
mov byte [0x475a74], al
mov eax, dword [ebp - 0x15c]
mov edx, eax
and edx, 0xff
shl edx, 8
mov al, ah
or edx, eax
mov byte [edi + 0x60], dl
xor eax, eax
mov ah, byte [ebp - 0x164]
movzx cx, byte [ebp - 0x163]
or eax, ecx
cmp ax, 1
jne 0x445052
mov edx, dword [ebp - 0x13a]
and edx, 0xff
shl edx, 8
mov eax, dword [ebp - 0x139]
and eax, 0xff
or edx, eax
shl edx, 8
mov ecx, dword [ebp - 0x138]
and ecx, 0xff
or edx, ecx
shl edx, 8
mov eax, dword [ebp - 0x137]
and eax, 0xff
or edx, eax
mov eax, dword [edi + 0x54]
or eax, edx
mov dword [edi + 0x54], eax
mov ecx, dword [ebp - 0x136]
and ecx, 0xff
shl ecx, 8
mov edx, dword [ebp - 0x135]
and edx, 0xff
or ecx, edx
shl ecx, 8
mov edx, dword [ebp - 0x134]
and edx, 0xff
or ecx, edx
shl ecx, 8
mov edx, dword [ebp - 0x133]
and edx, 0xff
or ecx, edx
or dword [edi + 0x58], ecx
mov ecx, dword [ebp - 0x12e]
and ecx, 0xff
shl ecx, 8
mov edx, dword [ebp - 0x12d]
and edx, 0xff
or ecx, edx
shl ecx, 8
mov edx, dword [ebp - 0x12c]
and edx, 0xff
or ecx, edx
shl ecx, 8
mov edx, dword [ebp - 0x12b]
and edx, 0xff
or ecx, edx
or dword [edi + 0x5c], ecx
or al, 1
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x162]
and eax, 0xff
shl eax, 8
mov ecx, dword [ebp - 0x161]
and ecx, 0xff
or eax, ecx
mov word [edi + 0x50], ax
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x44]
inc eax
jmp 0x444caa
push edi
push esi
push ebx
call fcn.004460f0
test eax, eax
jne 0x4451a5
mov dword [ebp - 4], 0xffffffff
jmp 0x44528a
cmp eax, 0x6e72656b
je 0x44519d
cmp eax, 0x70616d63
je 0x44518c
cmp eax, 0x78746d68
jne 0x4451a5
xor eax, eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b8], eax
push eax
push eax
xor edx, edx
mov dh, byte [esi + 8]
mov dl, byte [esi + 9]
shl edx, 8
mov al, byte [esi + 0xa]
or edx, eax
shl edx, 8
xor ecx, ecx
mov cl, byte [esi + 0xb]
or edx, ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
mov dh, byte [esi + 0xc]
mov dl, byte [esi + 0xd]
shl edx, 8
xor eax, eax
mov al, byte [esi + 0xe]
or edx, eax
shl edx, 8
xor ecx, ecx
mov cl, byte [esi + 0xf]
or edx, ecx
mov esi, edx
mov dword [ebp - 0x1bc], esi
je 0x4451a5
push esi
call fcn.0044c0d4
add esp, 4
mov ebx, eax
mov dword [ebp - 0x1b4], ebx
push 0
lea edx, [ebp - 0x1c0]
push edx
push esi
push ebx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x445177
cmp dword [ebp - 0x1c0], esi
jne 0x445177
mov eax, ebx
mov dword [ebp - 0x1b8], eax
xor ecx, ecx
mov dword [ebp - 0x1c0], ecx
mov edx, esi
shr edx, 2
cmp ecx, edx
jae 0x445177
mov edx, dword [eax]
add dword [edi + 0x3e], edx
add eax, 4
mov dword [ebp - 0x1b8], eax
inc ecx
jmp 0x445157
push ebx
call fcn.0044c186
add esp, 4
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x44]
inc eax
jmp 0x444caa
push edi
push esi
push ebx
call fcn.00445e70
mov eax, dword [ebp - 0x44]
inc eax
jmp 0x444caa
push edi
push esi
push ebx
call fcn.00445da0
mov eax, dword [ebp - 0x44]
inc eax
jmp 0x444caa
lea eax, [edi + 2]
push eax
call fcn.00448a90
mov dword [edi + 0x2a], eax
cmp eax, 0x1936ba62
jne 0x4451cd
mov dword [ebp - 4], 0xffffffff
jmp 0x44528a
lea ecx, [edi + 0x62]
push ecx
call fcn.00448a90
mov dword [edi + 0x2e], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4451e6
mov byte [edi + 0x22], 0x20
jmp 0x4451ea
mov byte [edi + 0x22], 0x41
mov al, byte [0x475a6c]
test al, al
jne 0x44522e
mov dl, byte [0x475a74]
and edx, 0xf0
lea eax, [edx - 0x10]
cmp eax, 0x40
ja case.0x44520f.21
xor ecx, ecx
mov cl, byte [eax + 0x44531c]
jmp dword [ecx*4 + 0x445304]
mov al, 8
jmp 0x445230
mov al, 0x20
jmp 0x445230
mov al, 0x10
jmp 0x445230
mov al, 1
jmp 0x445230
mov al, 4
jmp 0x445230
mov al, 2
jmp 0x445230
mov al, 0x40
mov byte [ebp - 0x1c4], al
mov byte [edi + 0x26], al
xor eax, eax
mov ax, word [edi + 0x50]
shl eax, 0xc
xor edx, edx
div dword [0x475a70]
mov word [edi + 0x50], ax
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x44528a
mov eax, dword [ebp - 0x54]
cmp eax, 0xffffffff
je 0x445299
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4452de
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4452de
lea ebx, [edi + 0xc2]
push ebx
call fcn.0044c687
mov edx, dword [ebp - 0x48]
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 - 0x50]
test eax, eax
je 0x4452ee
push eax
call fcn.0044c186
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4