Function at 0x10024b00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100db363
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10115770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov bh, cl
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
xor eax, eax
push 0x22
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.514D4456554350475E564E6D655E4E6D65
mov word [ecx], ax
call fcn.1001ac60
lea ecx, [ebp - 0x34]
call fcn.10022410
mov ecx, esp
mov byte [ebp - 4], 1
push 0x18
xor eax, eax
push str.476C63606E67566D446B6E67
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.1001ac60
lea ecx, [ebp - 0x4c]
call fcn.10022410
add esp, 0x18
mov byte [ebp - 4], 2
test bl, bl
je 0x10024c92
cmp dword [ebp - 0x20], 8
jb 0x10024baf
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x10024bb2
jmp 0x10024c82
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push ecx
push 0x20119
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10024c82
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], eax
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push ecx
cmovae eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x20], 8
lea edx, [ebp - 0x34]
push ecx
cmovae edx, dword [ebp - 0x34]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.10028ab0
sub esp, 0xc
mov ecx, esp
push 0x1010855c
call fcn.1001a160
lea ecx, [ebp - 0x7c]
call fcn.10022410
add esp, 0x18
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x10024c35
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x64]
call fcn.1001b530
test eax, eax
sete bl
cmp dword [ebp - 0x68], 8
jb 0x10024c59
push dword [ebp - 0x7c]
call fcn.1006269c
add esp, 4
mov eax, dword [0x1011aa70]
test bl, bl
mov ecx, 1
mov byte [ebp - 4], 2
cmovne eax, ecx
cmp dword [ebp - 0x50], 8
mov dword [0x1011aa70], eax
jb 0x10024c82
push dword [ebp - 0x64]
call fcn.1006269c
add esp, 4
cmp dword [0x1011aa70], 0
jne 0x10024c9c
xor bl, bl
jmp 0x10024e0e
mov dword [0x1011aa70], 1
cmp dword [0x1011aa6c], 0
jne 0x10024cce
push 0x18
call fcn.10063491
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x10024cc3
mov ecx, eax
call fcn.100252e0
jmp 0x10024cc5
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x1011aa6c], eax
cmp dword [ebp + 0x18], 0
jne 0x10024d36
sub esp, 0x18
mov ecx, esp
push str.61385E72706B6C762C6E6D65
call fcn.1001a160
lea ecx, [ebp - 0x7c]
call fcn.10022410
mov esi, eax
add esp, 0x18
lea eax, [ebp + 8]
cmp eax, esi
je 0x10024d25
cmp dword [ebp + 0x1c], 8
jb 0x10024d08
push dword [ebp + 8]
call fcn.1006269c
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.1001a560
cmp dword [ebp - 0x68], 8
jb 0x10024d36
push dword [ebp - 0x7c]
call fcn.1006269c
add esp, 4
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
mov ecx, dword [0x1011abdc]
cmovae edx, dword [ebp + 8]
xor eax, eax
test bh, bh
sete al
lea eax, [eax*2 + 2]
test ecx, ecx
je 0x10024d68
sub esp, 8
push eax
sub esp, 0xc
push edx
call fcn.10025340
jmp 0x10024d80
push 0
push 0x80
push eax
push 0
push 3
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10024d93
call fcn.10025320
mov esi, eax
mov eax, dword [0x1011abd8]
jmp 0x10024d9a
mov dword [0x1011abd8], eax
xor esi, esi
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x10024db9
call fcn.10025320
test eax, eax
js 0x10024de3
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0
ja 0x10024dc6
cmp eax, 0x500000
jbe 0x10024de3
sub esp, 8
call fcn.10024a80
push dword [0x1011abd8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x10024de3
call fcn.10025320
push 2
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push dword [0x1011abd8]
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10024e09
call fcn.10025320
test esi, esi
setns bl
cmp dword [ebp - 0x38], 8
jb 0x10024e1f
push dword [ebp - 0x4c]
call fcn.1006269c
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
jb 0x10024e44
push dword [ebp - 0x34]
call fcn.1006269c
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
jb 0x10024e69
push dword [ebp + 8]
call fcn.1006269c
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100626a1
mov esp, ebp
pop ebp
ret