Function at 0x100120f0
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 0x1006d3b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x1d8
mov eax, dword [0x100962c4]
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 - 0x90], ecx
mov eax, dword [ebx + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebx + 0x1c]
or esi, 0xffffffff
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x34], eax
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], 0x80000000
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp dword [ebx + 8], 1
mov dword [ebp - 4], 0
je 0x100123a2
mov edx, dword [ebx + 0x20]
lea eax, [edx*4 - 1]
shr eax, 2
lea ecx, [eax*4 + 4]
mov eax, dword [ebx + 0x24]
dec eax
shr eax, 2
lea eax, [eax*4 + 0xc]
imul edx, eax
lea eax, [ecx + 0x38]
add eax, edx
cmp eax, 0xfffffff7
ja 0x1001236a
mov edi, dword [ebx + 0x10]
add eax, 8
cmp edi, eax
jb 0x1001236a
cmp dword [ebx + 8], 0
jne 0x100123e4
push dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
push dword [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x58]
call fcn.10012960
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
push 0
push edi
call fcn.100077b0
sub esp, 0x14
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
push 0xc0000000
push eax
call fcn.10012a70
mov byte [ebp - 4], 6
mov ecx, 1
mov esi, dword [ebp - 0x30]
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x100122bc
mov eax, dword [ebp - 0x30]
push 1
push ecx
add eax, 8
lea ecx, [ebx + 0x20]
push eax
call fcn.10012810
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edx]
mov dword [edx], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 0x10]
mov dword [edx + 0x10], eax
mov eax, 2
mov dword [ebp - 0x20], ecx
xchg dword [esi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100122a4
sub eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001253e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001253e
cmp eax, 1
je 0x100122fe
cmp eax, 2
je 0x100122fe
push ecx
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push eax
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x94], 0x13
call fcn.10005640
push 0x10094634
lea eax, [ebp - 0x10c]
push eax
call fcn.1004cc2d
push ecx
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
push eax
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x9c], 9
call fcn.10005640
push 0x10094634
lea eax, [ebp - 0x138]
push eax
call fcn.1004cc2d
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x58]
push 0
push 1
mov byte [ebp - 4], 0xa
call fcn.100077b0
jmp 0x1001235a
push 0
push 0
mov dword [ebp - 4], 9
call fcn.1004cc2d
push ecx
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
push eax
lea ecx, [ebp - 0x164]
mov dword [ebp - 0xa4], 0x12
call fcn.10005640
push 0x10094634
lea eax, [ebp - 0x164]
push eax
call fcn.1004cc2d
push 0xc0000000
push dword [eax]
movzx eax, byte [0x1009ac30]
lea ecx, [ebp - 0x8c]
push eax
movups xmmword [ebp - 0x8c], xmm0
movups xmmword [ebp - 0x7c], xmm0
call fcn.10007420
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x8c]
call fcn.100074f0
lea ecx, [ebp - 0x8c]
call fcn.100074a0
mov esi, dword [ebp - 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0xd0], xmm0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
nop
lea eax, [ebp - 0x38]
push eax
push esi
call edi
test eax, eax
je 0x10012566
lea ecx, [ebp - 0xd0]
call fcn.100063a0
mov edx, dword [ebp - 0x38]
mov eax, edx
mov ecx, dword [ebp - 0x34]
or eax, ecx
je 0x10012410
cmp edx, 1
jne 0x10012473
test ecx, ecx
jne 0x10012473
push ecx
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], ecx
push eax
lea ecx, [ebp - 0x190]
mov dword [ebp - 0xac], 0x13
call fcn.10005640
push 0x10094634
lea eax, [ebp - 0x190]
push eax
call fcn.1004cc2d
sub esp, 0x14
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
lea ecx, [ebp - 0x6c]
movups xmmword [ebp - 0x6c], xmm0
push 0xc0000000
push eax
call fcn.10012a70
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x6c]
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [ebp - 0xd8], 0
movlpd qword [ebp - 0xe0], xmm0
mov dword [ebp - 0xd4], 0
nop dword [eax]
cmp eax, 1
je 0x100124c9
test eax, eax
jne 0x100124d8
lea ecx, [ebp - 0xe0]
call fcn.100063a0
mov eax, dword [esi]
jmp 0x100124c0
cmp eax, 2
je 0x10012515
push ecx
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], 0
push eax
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 0xb4], 0x13
call fcn.10005640
push 0x10094634
lea eax, [ebp - 0x1bc]
push eax
call fcn.1004cc2d
mov eax, dword [ebp - 0x6c]
push 0
push ecx
add eax, 8
lea ecx, [ebx + 0x20]
push eax
call fcn.10012810
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x6c]
push eax
call fcn.100078d0
lea ecx, [ebp - 0x6c]
call fcn.10007830
lea ecx, [ebp - 0x58]
call fcn.100074a0
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.10049b55
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc0]
call fcn.10005530
push ecx
mov eax, ecx
lea ecx, [ebp - 0x1e8]
push eax
call fcn.10005640
push 0x10094634
lea eax, [ebp - 0x1e8]
push eax
call fcn.1004cc2d
int3