Function at 0x1000cb70
Capabilities:
Create thread
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ee10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor edx, edx
push edi
cmp ecx, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edx
jne 0x1000cd9c
mov dword [0x100270c8], edx
push 0x1c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
push ebx
add ebx, eax
sbb ebx, esp
sbb ebx, eax
add ebx, esp
sbb ebx, eax
pop ebx
mov edi, dword [ebp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.100119c2
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.100119c2
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 4], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.100119c2
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 8], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push ecx
xor ecx, esi
xor ecx, eax
sbb ecx, edx
mov ecx, 0xa0ee3f91
and ecx, ebp
pop ecx
mov edi, dword [ebp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.100119c2
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0xc], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.100119c2
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xfffffffe
jne 0x1000ccd8
push 0
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov edi, dword [ebp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebx + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebx + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
test edx, edx
sete cl
test eax, eax
mov dword [ebx + 0x14], ecx
je 0x1000cdee
push eax
call fcn.10012ec5
add esp, 4
cmp eax, 1
jne 0x1000cdee
jmp 0x1000cdf0
mov eax, 1
cmp ecx, eax
jne 0x1000cdbd
mov dword [0x100270c8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp ecx, 2
jne 0x1000cdcd
mov dword [0x100270cc], edx
jmp 0x1000cba7
cmp ecx, 3
jne 0x1000cba7
mov dword [0x100270cc], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
xor eax, eax
mov byte [ebx + 0x18], al
call fcn.100115c0
test eax, eax
jl 0x1000ce62
cmp eax, 0xfffffffe
jge 0x1000ce62
push edx
sbb edx, edx
add edx, esi
sbb edx, edx
sbb edx, esi
pop edx
push 0
call dword [sym.imp.USER32.dll_IsRectEmpty]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x10], eax
mov esi, 4
test esi, esi
je 0x1000ce62
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetMessageA]
mov edi, dword [ebp + 0x10]
mov eax, esi
mov ecx, edi
cmp esi, ecx
jge 0x1000ce46
mov eax, ecx
mov edi, esi
sub eax, edi
je 0x1000ce56
push ebx
xor ebx, esp
xor ebx, esi
sbb ebx, eax
xor ebx, edx
pop ebx
mov edi, eax
push 0
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov esi, edi
jmp 0x1000ce25
push eax
add eax, esi
add eax, eax
xor eax, edx
mov eax, 0xfb2c5e92
sub eax, ecx
nop
pop eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push edx
push 0
push ebx
push 0x1000c820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24