Function at 0x44de30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45df38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x47800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0xffffffff
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
jne 0x44e071
cmp dword [edi + 4], 0xffffffff
jne 0x44e071
call fcn.0040f730
mov ecx, eax
test ecx, ecx
jne 0x44de98
push 0x80004005
call fcn.0041ffc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 4], 0
and eax, 0xc0000000
mov ecx, ebx
or ecx, 0x80000000
cmp eax, 0x40000000
cmovne ecx, ebx
mov ebx, ecx
or ebx, 0xc0000000
cmp byte [ebp + 0x20], 0
cmove ebx, ecx
mov eax, ebx
mov dword [ebp - 0x20], ebx
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x44def8
mov dword [edi + 0x14], 0xf001f
mov dword [edi + 0x18], 4
mov dword [edi + 0x1c], 0
jmp 0x44df14
cmp eax, 0x80000000
jne 0x44df14
mov dword [edi + 0x14], 4
mov dword [edi + 0x18], 2
mov dword [edi + 0x1c], 1
test esi, esi
jne 0x44df1c
xor ecx, ecx
jmp 0x44df30
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44df21
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.0042d9b0
mov esi, dword [ebp - 0x14]
push 0
push 0x80
push dword [ebp - 0x1c]
push 0
push dword [edi + 0x1c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x44dfea
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp byte [ebp + 0x24], bl
jne 0x44dfa0
cmp eax, 5
jne 0x44dfa5
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44e071
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x44e071
cmp eax, 5
je 0x44dfaa
cmp eax, 0x20
jne 0x44dfe5
mov eax, ebx
inc ebx
cmp eax, 0xa
jge 0x44dfe5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push dword [ebp - 0x1c]
push 0
push dword [edi + 0x1c]
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x44dfe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44dfa0
cmp dword [edi], 0xffffffff
je 0x44df71
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [edi + 0xc], ebx
cmp ebx, 0xffffffff
je 0x44df78
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x44e04b
cmp dword [edi + 4], 0xffffffff
jne 0x44e04b
cmp dword [edi + 8], 0
jne 0x44e04b
test ebx, ebx
je 0x44e04b
push 0
push ebx
push 0
push dword [edi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x44e04b
push ebx
push 0
push 0
push dword [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
je 0x44e04b
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x18], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44e071
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004568f7
mov esp, ebp
pop ebp
ret 0x20