Function at 0x445110
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cc19b
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x448
push 8
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x20], esi
xor edi, edi
mov dword [esp + 0x468], edi
cmp esi, edi
je 0x4451d6
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 0xffffffff
mov byte [esi + 0x30], 0
mov byte [esi + 0x31], 0
xor edx, edx
mov word [esi + 0x32], dx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push 0x208
mov dword [esi + 0xc], eax
lea eax, [esi + 0x23a]
push edi
push eax
call fcn.004ac3b0
add esp, 0xc
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov ebx, esi
jmp 0x4451d8
xor ebx, ebx
mov dword [esp + 0x468], 0xffffffff
cmp ebx, edi
jne 0x4451fd
mov eax, dword [esp + 0x1c]
mov edi, 0xe
mov dword [eax], 0
mov eax, edi
jmp 0x4454d3
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x445268
push ebx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov edi, eax
cmp edi, 0x720
je 0x44521e
test edi, edi
jne 0x4452dd
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebx + 0x23a]
mov eax, SysReAllocString
mov ecx, 0x104
call fcn.00442860
lea esi, [ebx + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
add dword [esi], 0x2ac18000
mov eax, dword [esi]
push 0
adc dword [esi + 4], 0xfe624e21
mov edx, dword [esi + 4]
push 0x2710
push edx
push eax
call fcn.004ad7f0
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x44527e
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x10]
push eax
push ebx
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
mov edi, eax
test edi, edi
jne 0x4452dd
mov ecx, dword [ebx + 0x10]
lea esi, [ebx + 0x32]
push ecx
mov eax, esi
call fcn.00444730
mov edi, eax
add esp, 4
test edi, edi
jne 0x4452dd
push eax
push 0x80
cmp dword [esp + 0x1c], eax
je 0x445425
push 3
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x20], eax
cmp eax, 0xffffffff
jne 0x445305
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, ebx
call fcn.004446a0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x1c]
mov dword [eax], 0
mov eax, edi
jmp 0x4454d3
mov edi, 4
lea esi, [esp + 0x18]
mov ecx, eax
call fcn.004428c0
mov edi, eax
test edi, edi
jne 0x4452dd
cmp dword [esp + 0x18], 1
je 0x445329
mov edi, 0x57
jmp 0x4452dd
mov ecx, dword [ebx + 0x20]
mov edi, 0x10
lea esi, [esp + 0x448]
call fcn.004428c0
mov edi, eax
test edi, edi
jne 0x4452dd
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.004108b0
test eax, eax
je 0x445322
mov ecx, dword [ebx + 0x20]
lea esi, [ebx + 0x28]
mov edi, 8
call fcn.004428c0
mov edi, eax
test edi, edi
jne 0x4452dd
mov ecx, dword [ebx + 0x20]
lea esi, [ebx + 0x23a]
mov edi, 0x208
call fcn.004428c0
mov edi, eax
test edi, edi
jne 0x4452dd
mov edx, dword [ebx + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4452d5
test ecx, ecx
je 0x445322
sub ecx, 0x224
mov dword [esp + 0x14], ecx
je 0x445322
mov eax, 0x3e0f83e1
mul ecx
shr edx, 8
imul edx, edx, 0x420
sub ecx, edx
jne 0x445322
nop
mov ecx, dword [ebx + 0x20]
mov edi, 0x420
lea esi, [esp + 0x24]
call fcn.004428c0
mov edi, eax
test edi, edi
jne 0x4452dd
test byte [esp + 0x28], 1
je 0x445322
mov eax, esi
push 1
push eax
mov esi, ebx
call fcn.00444a00
mov edi, eax
add esp, 8
cmp edi, 0x15e
jne 0x445416
mov byte [esp + 0x13], 1
xor edi, edi
sub dword [esp + 0x14], 0x420
jne 0x4453d0
jmp 0x4454b7
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x20], eax
cmp eax, 0xffffffff
je 0x4452d5
push 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 1
mov edx, dword [ebx + 0x20]
push ecx
push edx
call fcn.00442910
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4452dd
mov eax, dword [ebx + 0x20]
push 0x10
push ebx
push eax
call fcn.00442910
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4452dd
mov edx, dword [ebx + 0x20]
push 8
lea ecx, [ebx + 0x28]
push ecx
push edx
call fcn.00442910
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4452dd
mov ecx, dword [ebx + 0x20]
push 0x208
lea eax, [ebx + 0x23a]
push eax
push ecx
call fcn.00442910
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4452dd
movzx eax, byte [esp + 0x13]
mov edx, dword [esp + 0x1c]
neg eax
sbb eax, eax
mov dword [edx], ebx
and eax, 0x15e
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.004a974c
mov esp, ebp
pop ebp
ret