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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and byte [ebp + 0xc], 2
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x18], 0
cmp byte [ebx], 3
mov eax, dword [ebx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jne 0x1010682b
push ebx
call fcn.100ced20
mov esi, eax
add esp, 4
test esi, esi
jne 0x10106bfd
mov edi, dword [ebx + 0x74]
movsx eax, byte [ebx + 0x44]
movzx ecx, word [ebx + 0x46]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x40]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], edi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
cmp dword [edi + 0x14], 0
mov dword [ebp + 8], ecx
jge 0x10106873
push edi
call fcn.100cd2b0
add esp, 4
test eax, eax
jne 0x10106a19
mov ecx, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
je 0x101068cc
cmp byte [edi + 8], 0
je 0x101068b9
push ecx
push edi
call fcn.100cf3c0
mov esi, dword [edi + 0x14]
add esp, 8
movzx ecx, ax
add esi, 2
add esi, ecx
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x28]
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x101068b9
cmp word [edi + 0x18], 1
je 0x101068b9
mov dword [ebp - 0x18], 1
jmp 0x101068cc
push ebx
call fcn.100fff30
mov esi, eax
add esp, 4
test esi, esi
jne 0x10106bfd
cmp byte [edi + 8], 0
jne 0x1010690c
and byte [ebx + 1], 0xf1
xor eax, eax
mov word [ebx + 0x32], ax
cmp byte [ebx], al
jne 0x101068fb
movzx ecx, word [ebx + 0x46]
test cx, cx
je 0x101068fb
mov eax, dword [ebx + 0x74]
cmp byte [eax + 8], 0
je 0x101068fb
lea eax, [ecx - 1]
mov word [ebx + 0x46], ax
jmp 0x1010690c
push ebx
call fcn.100ceb40
add esp, 4
test eax, eax
jne 0x10106bff
test byte [ebx + 1], 0x20
je 0x1010692b
push ebx
push dword [ebx + 0x40]
push dword [ebp - 8]
call fcn.100ffee0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10106bfd
cmp dword [ebx + 0x70], 0
jne 0x10106947
push 0
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x40]
push dword [ebp - 0x14]
call fcn.100ee130
add esp, 0x14
push dword [edi + 0x48]
call fcn.101234b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10106bfd
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
push edi
call fcn.100cff60
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
movzx eax, word [ebp - 0x26]
push eax
push dword [ebp - 0xc]
push edi
call fcn.100d5ce0
mov esi, dword [ebp + 8]
add esp, 0x1c
test esi, esi
jne 0x10106bfd
cmp byte [edi + 8], 0
jne 0x10106a92
mov esi, dword [ebx + 0x74]
mov dword [ebp + 8], esi
cmp dword [esi + 0x14], 0
jge 0x101069b8
push esi
call fcn.100cd2b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10106bfd
mov esi, dword [ebp + 8]
movsx eax, byte [ebx + 0x44]
mov ecx, dword [ebp - 4]
dec eax
cmp ecx, eax
jge 0x101069ca
mov eax, dword [ebx + ecx*4 + 0x7c]
jmp 0x101069cd
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 4]
movzx ecx, word [esi + 0x18]
mov edx, dword [esi + 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x1a]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
jae 0x10106a25
push 0x101efecc
push 0x119a4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100c12d0
add esp, 0x14
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ecx
push esi
call eax
push dword [esi + 0x48]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x54]
mov dword [ebp - 8], eax
call fcn.101234b0
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x10106a71
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [ebp - 8]
add eax, 4
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffffc
push eax
push dword [ebp - 0xc]
push edi
call fcn.100edd60
add esp, 0x1c
lea eax, [ebp + 8]
push eax
movzx eax, word [esi + 0x18]
push dword [ebp - 0x14]
dec eax
push eax
push esi
call fcn.100d5ce0
mov esi, dword [ebp + 8]
add esp, 0x10
test esi, esi
jne 0x10106bfd
push ebx
call fcn.100cb1c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10106bfd
movsx eax, byte [ebx + 0x44]
cmp eax, dword [ebp - 4]
jle 0x10106b9c
mov eax, dword [ebx + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10106afd
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.1017aa20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10106b06
push edx
call fcn.101241e0
add esp, 4
dec byte [ebx + 0x44]
mov cl, byte [ebx + 0x44]
movsx eax, cl
cmp eax, dword [ebp - 4]
jle 0x10106b80
movsx eax, cl
dec cl
mov edx, dword [ebx + eax*4 + 0x78]
mov byte [ebx + 0x44], cl
test edx, edx
je 0x10106b75
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x10106b6c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.1017aa20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10106b75
push edx
call fcn.101241e0
add esp, 4
mov cl, byte [ebx + 0x44]
movsx eax, cl
cmp eax, dword [ebp - 4]
jg 0x10106b14
movsx eax, cl
push ebx
mov eax, dword [ebx + eax*4 + 0x78]
mov dword [ebx + 0x74], eax
call fcn.100cb1c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10106bfd
mov edi, dword [ebp - 0x20]
cmp dword [ebp - 0x18], 0
je 0x10106bd8
mov byte [ebx], 2
movzx eax, word [edi + 0x18]
cmp dword [ebp - 0xc], eax
jb 0x10106bc8
mov dword [ebx + 4], 0xffffffff
mov ax, word [edi + 0x18]
dec ax
mov word [ebx + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
mov dword [ebx + 4], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.100f0b20
add esp, 4
mov esi, eax
cmp byte [ebp + 0xc], 0
je 0x10106bf5
push ebx
call fcn.100cec20
add esp, 4
mov byte [ebx], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret