Function at 0x1005cff4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x40], eax
movzx eax, word [ebx]
cmp ax, 0x40
jle 0x1005d02b
push 0x40
push str.cannot_create_INSTEAD_OF_trigger_on_table:__S
call fcn.100268a1
pop ecx
jmp 0x1005d669
test byte [ebp + 0x18], 0x80
je 0x1005d03b
mov dword [esp + 0x20], 1
jmp 0x1005d040
cwde
mov dword [esp + 0x20], eax
mov eax, edi
mov edi, dword [esp + 0x20]
mov eax, dword [eax]
imul edi, edi, 0x50
add edi, 0x37
and edi, 0xfffffff8
lea ecx, [edi + 0x264]
push ecx
mov dword [esp + 0x30], eax
call fcn.10024f4f
mov esi, eax
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x1e], 0
pop ecx
mov dword [esp + 0x1c], esi
je 0x1005d07b
push esi
push eax
call fcn.10024dae
jmp 0x1005d025
mov eax, dword [esp + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 8], ebx
call fcn.1003722d
mov dword [esi + 0x14], eax
mov ax, word [ebp + 0x18]
mov word [esi + 4], ax
mov eax, dword [ebp + 8]
add edi, esi
mov dword [esi + 0x1c], edi
fld qword [eax + 0x1c0]
push 0x104
fstp qword [esi + 0x20]
lea eax, [edi + 0x160]
push 0
push eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x30], eax
call int.1006e1f0
mov ecx, dword [ebp + 8]
add esp, 0xc
push dword [esp + 0x24]
mov eax, edi
call fcn.10059931
mov eax, dword [ebp + 8]
cmp dword [eax + 0x15c], 0
pop ecx
jne 0x1005d113
mov eax, dword [eax]
test byte [eax + 0xc], 0x40
jne 0x1005d113
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
and dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x70], 0x1004425d
call fcn.10040789
pop ecx
pop ecx
push 0x45
push dword [ebp + 0x10]
push edi
call fcn.10059a60
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x1005d151
cmp dword [esp + 0x20], 0
je 0x1005d13e
push dword [ebp + 0x10]
push 3
pop eax
call fcn.10042a40
pop ecx
test eax, eax
je 0x1005d151
push 8
push dword [esi + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.10044687
add esp, 0x10
and dword [esp + 0x28], 0
xor eax, eax
cmp ax, word [ebx]
jge 0x1005d1b1
lea eax, [ebx + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0xc]
mov dword [eax + ecx*4 + 4], edx
inc dword [eax]
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x1005d19f
test byte [ecx + 0x22], 0x10
je 0x1005d19f
mov ecx, dword [esp + 0x28]
xor eax, eax
inc eax
xor edx, edx
call fcn.10084770
or dword [edi + 8], eax
or dword [edi + 0xc], edx
mov eax, dword [esp + 0x24]
movsx ecx, word [ebx]
inc dword [esp + 0x28]
add dword [esp + 0xc], 0x38
cmp dword [esp + 0x28], ecx
jl 0x1005d168
push ebx
call fcn.10059de2
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x1e], 0
pop ecx
jne 0x1005d652
mov eax, dword [esp + 0x20]
or dword [esp + 0x10], 0xffffffff
or dword [esp + 0x14], 0xffffffff
or dword [esp + 0x5c], 0xffffffff
and dword [esp + 0x30], 0
and dword [esp + 0x28], 0
lea ebx, [esi + 0x30]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x34], ebx
test eax, eax
jle 0x1005d54c
dec eax
mov dword [esp + 0x78], eax
or dword [esp + 0x3c], 0xffffffff
fld qword [0x1009ca60]
xor eax, eax
push 0xa
pop ecx
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
fstp qword [esp + 0x98]
mov eax, dword [esp + 0x30]
xor ecx, ecx
xor edx, edx
cmp eax, dword [esp + 0x78]
mov dword [esp + 0x58], ecx
setl dl
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
cmp edx, ecx
mov dword [esp + 0xc], edx
jl 0x1005d47c
jmp 0x1005d248
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x3c], 0
jge 0x1005d47c
mov edx, dword [ebp + 0xc]
mov ecx, eax
imul ecx, ecx, 0x38
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
lea ebx, [ecx + edx + 8]
jge 0x1005d472
mov eax, dword [esp + 0x30]
imul eax, eax, 0x50
lea eax, [eax + esi + 0x78]
mov dword [esp + 0x4c], eax
test byte [ebx + 0x15], 0xa
push 0
pop eax
setne al
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x38], eax
je 0x1005d29f
cmp dword [esp + 0x44], 0
jne 0x1005d472
push dword [ebx + 0x18]
mov eax, dword [esp + 0x28]
call fcn.10059a9f
pop ecx
mov ecx, edx
mov edi, eax
and eax, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
and ecx, dword [esp + 0x14]
or eax, ecx
jne 0x1005d2d7
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x30]
jne 0x1005d458
inc dword [esp + 0x30]
jmp 0x1005d458
xor edx, edx
cmp dword [esp + 0xc], edx
je 0x1005d2e7
mov eax, dword [esp + 0x6c]
mov ecx, edi
jmp 0x1005d2ef
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
cmp dword [esp + 0x28], edx
jne 0x1005d304
mov eax, dword [ebp + 0x14]
cmp eax, edx
je 0x1005d304
mov eax, dword [eax]
jmp 0x1005d306
xor eax, eax
cmp dword [ebx + 0x34], edx
jne 0x1005d30f
inc dword [esp + 0x58]
mov edx, dword [ebx + 0xc]
test byte [edx + 0x22], 0x10
lea edx, [esp + 0xa8]
je 0x1005d344
push dword [esp + 0x4c]
push edx
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x78]
push ecx
push ebx
push dword [esp + 0x68]
push dword [ebp + 8]
call fcn.1005b489
add esp, 0x28
jmp 0x1005d363
push edx
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x74]
push ecx
push ebx
push dword [esp + 0x64]
push dword [ebp + 8]
call fcn.1005b64f
add esp, 0x24
cmp dword [esp + 0xc], 0
je 0x1005d383
test dword [esp + 0xa8], 0x100f3000
jne 0x1005d383
mov eax, dword [esp + 0x6c]
or dword [esp + 0x50], edi
or dword [esp + 0x54], eax
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
and eax, dword [esp + 0x10]
and ecx, dword [esp + 0x14]
or eax, ecx
jne 0x1005d451
xor edx, edx
cmp dword [esp + 0x3c], edx
jl 0x1005d3d4
and edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x6c]
and ecx, dword [esp + 0x54]
mov eax, edi
or eax, ecx
jne 0x1005d3d4
mov eax, 0x100f3000
test dword [esp + 0x80], eax
je 0x1005d3d9
test dword [esp + 0xa8], eax
je 0x1005d451
jmp 0x1005d3d9
mov eax, 0x100f3000
cmp dword [esp + 0x58], edx
je 0x1005d3ed
cmp dword [ebx + 0x34], edx
je 0x1005d3ed
test dword [esp + 0xa8], eax
je 0x1005d451
cmp dword [esp + 0x3c], edx
jl 0x1005d432
fld qword [esp + 0x98]
fcomp qword [esp + 0xc0]
fnstsw ax
test ah, 0x41
je 0x1005d432
fld qword [esp + 0x98]
fcomp qword [esp + 0xc0]
fnstsw ax
test ah, 1
jne 0x1005d451
fld qword [esp + 0x88]
fcomp qword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x1005d451
mov eax, dword [esp + 0x38]
push 0xa
pop ecx
lea esi, [esp + 0xa8]
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x44], 0
jne 0x1005d472
inc dword [esp + 0x38]
mov eax, dword [esp + 0x38]
add dword [esp + 0x4c], 0x50
add ebx, 0x38
cmp eax, dword [esp + 0x20]
jl 0x1005d27c
dec dword [esp + 0xc]
jns 0x1005d244
mov edx, dword [esp + 0x80]
test edx, 0x1000000
je 0x1005d491
mov eax, dword [ebp + 0x14]
and dword [eax], 0
mov eax, dword [esp + 0x34]
and dword [esp + 0x5c], edx
push 6
pop ecx
lea esi, [esp + 0x80]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
test edx, 0x200f0000
je 0x1005d4bd
mov ecx, dword [edi + 0x44]
mov dword [eax + 0x20], ecx
inc dword [edi + 0x44]
jmp 0x1005d4c1
or dword [eax + 0x20], 0xffffffff
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0x38
lea esi, [eax + ecx]
push dword [esi + 0x20]
mov eax, dword [esp + 0x28]
call fcn.10059a9f
not eax
fld1
and dword [esp + 0x14], eax
fcomp qword [esp + 0x8c]
mov al, byte [esp + 0x40]
pop ecx
mov ecx, dword [esp + 0x34]
mov byte [ecx + 0x34], al
not edx
and dword [esp + 0x14], edx
fnstsw ax
test ah, 0x41
jp 0x1005d515
fld qword [edi + 0x1c0]
fmul qword [esp + 0x88]
fstp qword [edi + 0x1c0]
mov esi, dword [esi + 0x3c]
test esi, esi
je 0x1005d52d
test dword [esp + 0x80], 0xf0000
je 0x1005d640
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
add dword [esp + 0x34], 0x50
cmp eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jl 0x1005d1fb
mov ebx, dword [esp + 0x7c]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
jne 0x1005d652
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1e], 0
jne 0x1005d652
mov eax, dword [esp + 0x5c]
and eax, 0x4000000
je 0x1005d57c
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1005d57c
and dword [ecx], 0
test byte [ebp + 0x18], 4
je 0x1005d590
test eax, eax
je 0x1005d590
and dword [ebx], 0xff7fffff
mov byte [esi + 6], 1
mov eax, dword [ebp + 8]
or esi, 0xffffffff
call fcn.10049e7b
fld1
mov eax, dword [esp + 0x1c]
fstp qword [eax + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], ebx
test eax, eax
jle 0x1005d787
mov dword [esp + 0x44], eax
push dword [esi]
push 0x1009bcf8
call fcn.100268a1
pop ecx
pop ecx