Function at 0x1003e810
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 0xc], 0xcc
push esi
mov esi, ecx
mov dword [ebp - 4], esi
jae 0x1003e82d
xor eax, eax
inc eax
jmp 0x1003ea1e
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
bswap eax
cmp eax, 0x6d697368
je 0x1003e844
xor eax, eax
inc eax
jmp 0x1003ea1d
mov ecx, dword [ebx + 4]
xor eax, eax
bswap ecx
inc eax
cmp ecx, eax
jne 0x1003ea1d
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
bswap eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x18]
push edi
mov edi, dword [ebx + 0x14]
bswap eax
bswap ecx
mov dword [esi + 0x14], eax
lea eax, [ebx + 0x40]
mov dword [esi + 0x10], ecx
bswap edi
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 0x10], edi
call fcn.1003e227
mov eax, dword [ebx + 0xc8]
bswap eax
mov dword [ebp + 8], eax
cmp eax, 0x10000000
ja 0x1003ea15
mov ecx, eax
imul ecx, ecx, 0x28
add ecx, 0xcc
cmp ecx, dword [ebp + 0xc]
jne 0x1003ea15
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
lea ecx, [esi + 0x24]
push eax
call fcn.1003e78f
and dword [ebp + 0xc], 0
add ebx, 0xcc
cmp dword [ebp + 8], 0
mov byte [esi + 0xb8], 1
jbe 0x1003e9d1
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov edi, dword [ebx + 0x1c]
bswap eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 8]
bswap eax
mov dword [ebp - 8], eax
bswap ecx
shld eax, ecx, 9
bswap edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], edx
bswap eax
shld edx, eax, 9
mov dword [ebp - 0x2c], edx
mov edx, dword [ebx + 0x18]
bswap edx
bswap edi
mov dword [ebp - 0x28], edi
mov edi, dword [ebx + 0x20]
mov dword [ebp - 0x24], edx
mov edx, dword [ebx + 0x24]
shl ecx, 9
shl eax, 9
cmp dword [esi + 0x28], 0
bswap edi
bswap edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edx
je 0x1003e971
mov edx, dword [esi + 0x28]
mov edi, dword [esi + 0x24]
imul edx, edx, 0x28
lea edx, [edx + edi - 0x28]
mov edi, dword [edx + 0x10]
add edi, dword [edx + 8]
mov dword [ebp - 0x18], edi
mov edi, dword [edx + 0x14]
adc edi, dword [edx + 0xc]
cmp ecx, dword [ebp - 0x18]
jne 0x1003ea15
cmp dword [ebp - 0x34], edi
jne 0x1003ea15
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp dword [ebp - 0x40], 0x7ffffffe
je 0x1003e9b7
cmp dword [ebp - 0x40], 0xffffffff
je 0x1003e9ce
add dword [esi + 8], edx
adc dword [esi + 0xc], edi
or eax, dword [ebp - 0x2c]
je 0x1003e9b7
cmp dword [ebp - 0x40], 2
jne 0x1003e998
mov byte [esi + 0xb8], 0
mov edi, dword [esi + 0x28]
mov eax, dword [ebp - 4]
imul edi, edi, 0x28
add esi, 0x24
add edi, dword [esi]
push 0xa
pop ecx
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
add eax, 0x24
inc dword [eax + 4]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
add ebx, 0x28
cmp eax, dword [ebp + 8]
jb 0x1003e8dc
jmp 0x1003e9d1
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
dec eax
cmp dword [ebp + 0xc], eax
jne 0x1003ea15
cmp dword [esi + 0x28], 0
je 0x1003e9fe
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
imul eax, eax, 0x28
lea eax, [eax + ecx - 0x28]
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 8]
mov edx, dword [eax + 0x14]
adc edx, dword [eax + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi]
shld eax, edi, 9
shl edi, 9
cmp ecx, edi
jne 0x1003ea15
mov ecx, dword [esi + 4]
cmp ecx, eax
je 0x1003ea1a
xor eax, eax
inc eax
jmp 0x1003ea1c
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 8