Function at 0x10016160
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x4c
cmp dword [esp + 0x54], 0xcc
push ebx
mov ebx, ecx
jae 0x10016178
xor eax, eax
inc eax
jmp 0x10016380
push ebp
mov ebp, dword [esp + 0x58]
mov eax, dword [ebp]
bswap eax
cmp eax, 0x6d697368
jne 0x10016193
mov ecx, dword [ebp + 4]
bswap ecx
cmp ecx, 1
je 0x1001619b
xor eax, eax
inc eax
jmp 0x1001637f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
bswap eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0x14]
bswap eax
bswap ecx
mov dword [ebx + 0x10], eax
lea eax, [ebp + 0x40]
mov dword [ebx + 0x14], ecx
lea ecx, [ebx + 0x30]
bswap edi
push eax
mov dword [esp + 0x14], edi
call fcn.10016136
mov esi, dword [ebp + 0xc8]
bswap esi
mov dword [esp + 0x60], esi
cmp esi, 0x10000000
ja 0x1001637a
imul eax, esi, 0x28
add eax, 0xcc
cmp eax, dword [esp + 0x64]
jne 0x1001637a
xor eax, eax
lea ecx, [ebx + 0x24]
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
call fcn.10013c6f
xor edx, edx
mov byte [ebx + 0xb8], 1
add ebp, 0xcc
mov dword [esp + 0x64], edx
test esi, esi
je 0x10016339
mov eax, dword [ebp]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
bswap eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
bswap eax
bswap ecx
shld ecx, eax, 9
bswap edi
shl eax, 9
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x10]
bswap eax
shld eax, edi, 9
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x1c]
bswap ecx
bswap eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x24]
shl edi, 9
cmp dword [ebx + 0x28], 0
bswap eax
bswap ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
je 0x100162e2
imul ecx, dword [ebx + 0x28], 0x28
mov eax, dword [ebx + 0x24]
mov edx, dword [ecx + eax - 0x18]
add edx, dword [ecx + eax - 0x20]
mov esi, dword [ecx + eax - 0x14]
adc esi, dword [ecx + eax - 0x1c]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x60]
cmp dword [esp + 0x14], edx
jne 0x1001637a
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jne 0x1001637a
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp eax, 0x7ffffffe
je 0x10016325
cmp eax, 0xffffffff
je 0x10016335
add dword [ebx + 8], ecx
mov ecx, dword [esp + 0x28]
adc dword [ebx + 0xc], ecx
or edi, dword [esp + 0x2c]
je 0x10016325
cmp eax, 2
jne 0x1001630e
mov byte [ebx + 0xb8], 0
imul edi, dword [ebx + 0x28], 0x28
lea esi, [esp + 0x34]
push 0xa
pop ecx
add edi, dword [ebx + 0x24]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x28]
mov esi, dword [esp + 0x60]
inc edx
add ebp, 0x28
mov dword [esp + 0x64], edx
cmp edx, esi
jb 0x10016226
mov edi, dword [esp + 0x10]
lea eax, [esi - 1]
cmp edx, eax
jne 0x1001637a
cmp dword [ebx + 0x28], 0
je 0x10016362
imul esi, dword [ebx + 0x28], 0x28
mov edx, dword [ebx + 0x24]
mov ecx, dword [esi + edx - 0x18]
add ecx, dword [esi + edx - 0x20]
mov eax, dword [esi + edx - 0x14]
adc eax, dword [esi + edx - 0x1c]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x30]
shld eax, edi, 9
shl edi, 9
cmp dword [ebx], edi
jne 0x1001637a
cmp dword [ebx + 4], eax
jne 0x1001637a
xor eax, eax
jmp 0x1001637d
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8