Function at 0x44d246
Capabilities:
Check if file exists
Get file attributes
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x78]
cmp dword [eax - 8], 0
jne 0x44d266
push 0x85e
push 2
jmp 0x44d499
mov ebx, dword [ebp + 8]
test ebx, ebx
jl 0x44d492
mov ecx, esi
call fcn.0044cf15
cmp ebx, eax
jge 0x44d492
mov edi, ebx
mov eax, dword [esi + 8]
imul edi, edi, 0x34
mov dword [ebp - 4], edi
cmp dword [eax + edi + 0x1c], 0
jne 0x44d31b
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x74]
push eax
call fcn.005eced8
cmp dword [ebp + 0x14], 0
jne 0x44d2b6
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 0xc]
push dword [eax + ebx*4]
call fcn.005ed182
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 0xc]
lea ebx, [ebx + ebx*8]
shl ebx, 5
lea eax, [ebx + eax + 0x30]
push eax
call fcn.005ed182
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [eax - 8], 0x103
jl 0x44d2e6
push 0x876
push 0x29
jmp 0x44d499
mov ecx, dword [esi + 8]
cmp dword [ecx + edi + 0x18], 1
jne 0x44d323
cmp dword [ebp + 0x10], 0
jne 0x44d302
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44d31b
mov ecx, dword [esi + 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ecx + edi + 8]
push ecx
push eax
call fcn.0044a870
pop ecx
test eax, eax
pop ecx
je 0x44d323
push 1
pop eax
jmp 0x44d4a2
mov eax, dword [esi + 0x78]
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x44d34f
push 0x893
push 3
jmp 0x44d499
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov edi, dword [ebp - 4]
add eax, edi
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebx + eax + 0x28]
add ecx, edx
mov eax, dword [ebx + eax + 0x2c]
adc eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jg 0x44d484
jl 0x44d3ac
cmp ecx, dword [ebp - 0x18]
ja 0x44d484
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x44]
push eax
mov eax, dword [esi + 0x1c]
push dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push ecx
push dword [ebx + eax + 0x2c]
push dword [ebx + eax + 0x28]
push edx
push dword [ebp + 8]
call fcn.0044a8cd
xor ebx, ebx
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x44d484
mov eax, dword [esi + 8]
push 0x10
mov dword [eax + edi + 0x18], 1
mov eax, dword [esi + 8]
lea eax, [eax + edi + 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.004ec870
lea ecx, [ebp - 0x20]
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
push ecx
push ebx
stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ebx
push ecx
mov eax, dword [edi]
lea ecx, [ebp + 0x14]
push ecx
push ebx
push eax
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], ebx
call fcn.004e5be0
add esp, 0x28
test eax, eax
je 0x44d469
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [ecx + eax + 0x24], edx
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0x10]
mov dword [ecx + eax + 0x28], edx
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + eax + 0x2c], edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + eax + 0x30], edx
cmp dword [esi + 0x80], ebx
jne 0x44d484
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or al, 1
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
jmp 0x44d4a2
push 0x864
push 1
call fcn.00449cf8
pop ecx
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x14