Function at 0x445190
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc610
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x58
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], edx
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x68], edx
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x60], edx
test ecx, ecx
je 0x445205
mov dword [ecx], 0
test edx, edx
je 0x44520f
mov dword [edx], 0
cmp dword [ebp - 0x44], 0
je 0x44550e
test ecx, ecx
je 0x44550e
test eax, eax
jne 0x44522e
mov dword [ebp - 0x2c], 0xffffffff
jmp 0x445236
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x60]
xor esi, esi
mov dword [ebp - 0x64], esi
test edx, edx
je 0x44525f
push 0x509240
push 0x10
call fcn.0047a6c8
mov esi, eax
mov dword [ebp - 0x64], eax
add esp, 8
test esi, esi
jne 0x44525f
lea eax, [esi + 8]
jmp 0x445513
mov ecx, dword [ebp - 0x44]
and ecx, 1
mov edx, ecx
neg edx
lea eax, [ecx*4]
sbb edx, edx
mov dword [ebp - 0x3c], eax
and edx, 0x24
lea eax, [ecx + ecx]
shl ecx, 5
test byte [ebp - 0x44], 2
mov dword [ebp - 0x48], eax
je 0x44529a
or eax, 8
or ecx, 0x80
or edx, 0x21
mov dword [ebp - 0x48], eax
or dword [ebp - 0x3c], 1
test byte [ebp - 0x44], 4
je 0x4452b6
or eax, 4
or ecx, 0x40
or edx, 0xf003f
mov dword [ebp - 0x48], eax
or dword [ebp - 0x3c], 0xf001f
mov eax, dword [ebp - 0x44]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x3c]
and eax, 8
movlpd qword [ebp - 0x58], xmm0
cmovne edi, edx
mov byte [ebp - 0x25], 0
mov edx, dword [ebp - 0x48]
test eax, eax
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x30]
cmovne edx, ecx
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x4452ef
or edx, 0xffffffff
mov eax, edi
xor ecx, ecx
jmp 0x445369
cmp edx, 0xffffffff
jne 0x4452fd
mov edx, dword [ebp - 0x2c]
mov eax, edi
xor ecx, ecx
jmp 0x445369
test edi, edi
je 0x445360
test byte [ebp - 0x40], 0x44
je 0x445360
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x445360
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x445360
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x445349
call edi
test eax, eax
je 0x445346
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x2c]
jmp 0x44536f
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
jne 0x445358
mov eax, dword [ebp - 0x30]
xor ecx, ecx
jmp 0x44536f
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
jmp 0x44536f
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
push ecx
push dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
push 0x50ad80
push edx
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4453a2
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x48], eax
je 0x445399
call edi
call edi
mov edi, eax
jmp 0x4454fb
call edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4453fc
mov ecx, dword [ebp - 0x24]
or eax, 0xffffffff
or edx, 0xffffffff
mov dword [ebp - 0x30], eax
test ecx, ecx
je 0x4453f3
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x4453f3
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
jne 0x4453e8
call edi
test eax, eax
jne 0x4453ed
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x24]
jmp 0x4453f3
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
xor ecx, ecx
cmp ecx, edx
je 0x4453fc
or eax, 0xffffffff
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x4c]
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x445428
call edi
push dword [ebp - 0x2c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4454fb
test byte [ebp - 0x44], 0x10
je 0x445442
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x5c]
jmp 0x4454e0
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x44546a
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x40]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x5c]
mov byte [esi + 0xc], 0
mov dword [edx], esi
xor esi, esi
jmp 0x4454e3
mov ecx, dword [0x50badc]
test ecx, ecx
je 0x44547e
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 0
mov cl, 1
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 0x25], cl
mov byte [ebp - 0x35], cl
call fcn.00445ad0
mov edi, dword [ebp - 0x40]
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x5c]
jmp 0x4454e0
mov eax, dword [ebp - 0x30]
cmp byte [ebp - 0x25], 0
mov dword [ecx], eax
je 0x4454fb
mov eax, dword [0x50badc]
test eax, eax
je 0x4454fb
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x44550a
push 0x10
push esi
call fcn.00479e95
add esp, 8
mov eax, edi
jmp 0x445513
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret