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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
xor eax, eax
cmp dword [ebp + 0x14], eax
push ebx
mov ebx, dword [ebp + 8]
setne al
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x4c], esi
movzx ecx, byte [eax + edi + 0x19]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
cmp ecx, 7
jne 0x10067eb8
mov eax, dword [esi + 0x20]
and eax, 0x80000
xor edx, edx
or eax, edx
jne 0x10068502
mov eax, dword [esp + 0x3c]
mov eax, dword [edi + eax*4 + 0x1c]
test ecx, ecx
je 0x10068566
test eax, eax
jne 0x10068566
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push edi
push ecx
push ebx
lea eax, [esp + 0x34]
call fcn.10065d60
add esp, 0x10
test eax, eax
jne 0x10068502
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x38], ecx
cmp dword [edi + 0x14], ecx
jle 0x1006823d
mov edx, 3
mov dword [esp + 0x58], 0x1011e114
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 0x1011b1e8
mov dword [esp + 0x64], edx
mov ebx, dword [ebp + 0xc]
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x10067f47
mov edx, dword [eax + ecx*4]
jmp 0x10067f4d
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 0x24]
test edi, edi
je 0x10067f5a
mov eax, dword [edi + 4]
movsx eax, word [eax + ecx*2]
jmp 0x10067f5e
movsx eax, word [ebx + 0x20]
mov ecx, dword [ebx + 4]
add eax, eax
mov eax, dword [ecx + eax*8]
mov dword [esp + 0x50], eax
test eax, eax
je 0x10067f7f
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10067f71
sub eax, edi
and eax, 0x3fffffff
shl edx, 4
mov dword [esp + 0x54], eax
mov eax, edx
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [eax + edx]
mov dword [esp + 0x34], eax
mov dword [esp + 0x68], eax
test eax, eax
je 0x10067fb4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10067fa6
sub eax, edx
and eax, 0x3fffffff
push 0
push 0x3b
push esi
lea edi, [esp + 0x74]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x78], eax
call fcn.10047590
add esp, 0xc
push 0
push 0x3b
push esi
lea edi, [esp + 0x5c]
mov dword [esp + 0x50], eax
call fcn.10047590
add esp, 0xc
push 0
push 0x3b
push esi
lea edi, [esp + 0x64]
mov dword [esp + 0x4c], eax
call fcn.10047590
mov ebx, dword [ebp + 8]
add esp, 0xc
push eax
mov eax, dword [esp + 0x44]
push 0x8d
push ebx
call fcn.10047740
add esp, 0xc
push eax
mov eax, dword [esp + 0x48]
push 0x35
push ebx
call fcn.10047740
add esp, 0xc
push eax
mov eax, dword [esp + 0x14]
mov ecx, ebx
call fcn.10047b40
add esp, 4
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x10], eax
je 0x100680d3
push 0
push 0x3b
push esi
lea edi, [esp + 0x5c]
call fcn.10047590
add esp, 0xc
push 0
push 0x3b
push esi
lea edi, [esp + 0x6c]
mov dword [esp + 0x50], eax
call fcn.10047590
add esp, 0xc
push eax
mov eax, dword [esp + 0x48]
push 0x8d
push ebx
call fcn.10047740
add esp, 0xc
push 0
push 0x3b
push esi
lea edi, [esp + 0x5c]
mov dword [esp + 0x4c], eax
call fcn.10047590
add esp, 0xc
push 0
push 0x3b
push esi
lea edi, [esp + 0x64]
mov dword [esp + 0x50], eax
call fcn.10047590
add esp, 0xc
push eax
mov eax, dword [esp + 0x48]
push 0x8d
push ebx
call fcn.10047740
add esp, 0xc
push eax
mov eax, dword [esp + 0x44]
push 0x2d
push ebx
call fcn.10047740
add esp, 0xc
push eax
mov eax, dword [esp + 0x18]
mov ecx, ebx
call fcn.10047b40
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
cmp eax, 7
je 0x10068224
cmp eax, 0xa
jne 0x1006812d
cmp dword [ebp + 0x14], 0
je 0x10068224
push 0
push 0x3b
push esi
lea edi, [esp + 0x5c]
call fcn.10047590
add esp, 0xc
push 0
push 0x3b
push esi
lea edi, [esp + 0x6c]
mov dword [esp + 0x50], eax
call fcn.10047590
add esp, 0xc
push eax
mov eax, dword [esp + 0x48]
push 0x8d
push ebx
call fcn.10047740
add esp, 0xc
jmp 0x100681bb
cmp eax, 9
jne 0x10068187
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add ecx, dword [esp + 0x48]
test byte [ecx + 0xe], 0x60
jne 0x1006815d
call fcn.10058370
test eax, eax
je 0x1006815d
push 0
push 0
push eax
push esi
call fcn.10047ff0
add esp, 0x10
jmp 0x100681bb
push 0
push 0x34
mov ecx, esi
call fcn.1000ab60
mov edi, eax
add esp, 8
test edi, edi
je 0x100681b9
push 0x34
push 0
push edi
call fcn.100ff5c0
add esp, 0xc
or ecx, 0xffffffff
mov word [edi + 0x22], cx
jmp 0x100681af
push 0
push 0x34
mov ecx, esi
call fcn.1000ab60
mov edi, eax
add esp, 8
test edi, edi
je 0x100681b9
push 0x34
push 0
push edi
call fcn.100ff5c0
add esp, 0xc
or edx, 0xffffffff
mov word [edi + 0x22], dx
mov byte [edi], 0x79
mov dword [edi + 0x18], 1
mov eax, edi
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov edx, ebx
call fcn.10048db0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10068224
mov ecx, eax
mov eax, dword [ecx]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4 - 0xc]
xor eax, eax
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx]
cmp dword [esp + 0x34], eax
je 0x1006825f
mov edx, dword [esp + 0x20]
add edx, 1
adc eax, eax
push eax
push edx
call fcn.1000ab60
mov edi, eax
add esp, 8
test edi, edi
je 0x1006821d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
push eax
push ecx
push edi
call fcn.101025e0
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov byte [edx + edi], 0
mov eax, dword [esp + 0x48]
mov dword [eax + 4], edi
mov ecx, dword [esp + 0x38]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x38], ecx
cmp ecx, dword [edx + 0x14]
jl 0x10067f37
xor edi, edi
cmp eax, edi
je 0x1006824a
mov ecx, esi
call fcn.1000a790
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [esp + 0x2c], eax
cmp eax, edi
jne 0x10068263
mov dword [esp + 0x20], edi
jmp 0x10068278
xor edi, edi
jmp 0x1006821d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10068266
sub eax, edx
and eax, 0x3fffffff
mov dword [esp + 0x20], eax
cmp dword [esp + 0x30], 7
jne 0x10068391
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x3c]
mov dword [esp + 0x24], 0xffff8000
cmp ecx, edi
je 0x100682af
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], edi
cmp dword [eax + 0xc], ecx
je 0x100682af
add eax, 0xc
inc dword [esp + 0x24]
add eax, 0x10
cmp dword [eax], ecx
jne 0x100682a4
push 0
push 0x47
push esi
lea edi, [esp + 0x74]
mov dword [esp + 0x74], str.FOREIGN_KEY_constraint_failed
mov dword [esp + 0x78], 0x1d
call fcn.10047590
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
je 0x100682de
mov ecx, eax
mov byte [ecx + 1], 2
mov ecx, dword [ebx]
push 0
push 0x50
call fcn.1000ab60
mov edi, eax
add esp, 8
test edi, edi
jne 0x100682f8
mov dword [esp + 0x34], eax
jmp 0x10068354
push 0x48
xor ebx, ebx
lea edx, [edi + 8]
push ebx
push edx
mov dword [edi + 4], 1
mov dword [edi], 1
call fcn.100ff5c0
mov dword [edi + 0x34], 0xffffffff
mov eax, dword [edi]
lea eax, [eax + eax*8]
lea eax, [edi + eax*8 - 0x40]
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x38]
add esp, 0xc
mov ecx, esi
mov dword [esp + 0x34], edi
call fcn.1000ad90
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x10]
add eax, eax
mov ebx, dword [ecx + eax*8]
mov ecx, esi
call fcn.1000ad90
mov dword [edi + 0xc], eax
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x38]
mov edi, dword [ebx]
call fcn.10048cd0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
push 0
push 0
push 0
push 0
push 0
push edx
push ecx
push eax
mov ecx, ebx
call fcn.10075050
mov esi, dword [esp + 0x6c]
add esp, 0x20
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x20]
inc dword [esi + 0x140]
xor eax, eax
add ecx, 0x55
push eax
xor edx, edx
push ecx
mov ecx, esi
mov word [esi + 0x144], dx
call fcn.1000ab60
mov edi, eax
add esp, 8
test edi, edi
je 0x100683ce
mov eax, dword [esp + 0x20]
add eax, 0x55
push eax
push 0
push edi
call fcn.100ff5c0
add esp, 0xc
mov dword [esp + 0x4c], edi
test edi, edi
je 0x10068485
mov edx, dword [esp + 0x2c]
lea eax, [edi + 0x24]
lea ecx, [eax + 0x30]
mov dword [edi + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x20]
push eax
push edx
push ecx
call fcn.101025e0
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x10068418
mov eax, dword [esp + 0x10]
push 0
push 1
push eax
push esi
call fcn.10047ff0
add esp, 0x10
jmp 0x1006841a
xor eax, eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 1
push edx
push esi
mov dword [ecx + 0x14], eax
call fcn.100484c0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 1
push edx
push esi
mov dword [ecx + 0x18], eax
call fcn.10048a60
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x14], 0
mov dword [ecx + 8], eax
je 0x10068485
mov edx, dword [esp + 0x14]
push edx
push 0x13
push ebx
xor eax, eax
call fcn.10047740
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x10068480
push 0
push 1
push eax
push esi
call fcn.10047ff0
add esp, 0x10
jmp 0x10068482
xor eax, eax
mov dword [edi + 0xc], eax
dec dword [esi + 0x140]
je 0x10068491
xor eax, eax
jmp 0x10068498
movzx eax, word [esi + 0x146]
cmp dword [esp + 0x10], 0
mov word [esi + 0x144], ax
je 0x100684b4
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.10047e40
add esp, 8
cmp dword [esp + 0x14], 0
je 0x100684c9
mov ecx, dword [esp + 0x14]
push ecx
push esi
call fcn.10047e40
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x100684de
mov edx, dword [esp + 0x1c]
push edx
push esi
call fcn.10049060
add esp, 8
cmp dword [esp + 0x28], 0
je 0x100684f5
mov eax, dword [esp + 0x28]
push 1
push eax
push esi
call fcn.10074f00
add esp, 0xc
cmp byte [esi + 0x57], 1
jne 0x1006850b
mov ebx, esi
call fcn.100670e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x30]
cmp eax, 7
je 0x10068531
cmp eax, 0xa
jne 0x10068528
cmp dword [ebp + 0x14], 0
jne 0x10068528
mov eax, dword [esp + 0x18]
mov byte [eax], pe_nt_image_headers32
jmp 0x10068538
mov eax, dword [esp + 0x18]
mov byte [eax], 0x81
jmp 0x10068538
mov eax, dword [esp + 0x18]
mov byte [eax], 0x8a
cmp dword [ebp + 0x14], 0
mov dword [eax + 4], edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x3c]
mov dword [edi + 0x14], ecx
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x3c]
mov dword [edi + 0x18], edx
setne dl
mov dword [eax + ecx*4 + 0x1c], edi
mov eax, dword [esp + 0x4c]
sub dl, 0x80
mov byte [edi + 8], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret