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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, eax
cmp byte [esi + 0x42], 1
push edi
jne 0x100aeffa
mov dl, byte [esi + 0x40]
test dl, 2
je 0x100aeffa
cmp byte [esi + 0x45], 0
je 0x100aeffa
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x38]
cmp eax, edi
mov ecx, dword [esi + 0x14]
jne 0x100aefd5
cmp ecx, dword [esp + 0x3c]
jne 0x100aefd5
mov eax, dword [esp + 0x44]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test dl, 8
je 0x100aeffa
cmp ecx, dword [esp + 0x3c]
jg 0x100aeffa
jl 0x100aefe6
cmp eax, edi
jae 0x100aeffa
mov ecx, dword [esp + 0x44]
mov dword [ecx], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x100af013
mov eax, edi
call fcn.100bb5d0
mov dword [esp + 0x14], eax
mov byte [edi + 0xb], 0
jmp 0x100af01b
mov dword [esp + 0x14], 0
call fcn.100aec00
test eax, eax
jne 0x100af3ce
cmp byte [esi + 0x42], al
jne 0x100af03f
mov edx, dword [esp + 0x44]
mov dword [edx], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, 1
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ecx
lea esp, [esp]
movsx eax, byte [esi + 0x44]
mov ebx, dword [esi + eax*4 + 0x78]
movzx ebp, word [ebx + 0x12]
sub ebp, 1
mov dword [esp + 0x18], ebp
sar ebp, cl
cmp dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov word [esi + eax*2 + 0x50], bp
jne 0x100af170
lea ecx, [ecx]
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ebp*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, word [ebx + 0x14]
and eax, ecx
add eax, dword [ebx + 0x44]
cmp byte [ebx + 3], 0
je 0x100af0b8
cmp byte [eax], 0x80
jb 0x100af0b5
mov ecx, dword [ebx + 0x3c]
add eax, 1
cmp eax, ecx
jae 0x100af2d8
cmp byte [eax], 0x80
jae 0x100af0a5
add eax, 1
lea edi, [esp + 0x28]
call fcn.1009ce00
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
cmp eax, edx
mov ecx, dword [esp + 0x28]
jg 0x100af11b
jl 0x100af0d9
cmp ecx, dword [esp + 0x38]
jae 0x100af10f
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jle 0x100af12c
or edi, 0xffffffff
cmp byte [ebx + 4], 0
jne 0x100af37b
movzx edx, word [ebx + 0x12]
cmp eax, edx
jl 0x100af295
movzx ecx, byte [ebx + 5]
mov edx, dword [ebx + 0x38]
mov ecx, dword [ecx + edx + 8]
jmp 0x100af2af
cmp eax, edx
jl 0x100af141
jg 0x100af11b
cmp ecx, dword [esp + 0x38]
jbe 0x100af141
lea eax, [ebp - 1]
cmp dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
jg 0x100af13a
mov edx, dword [esp + 0x18]
lea ebp, [edx + eax]
sar ebp, 1
jmp 0x100af080
mov edi, 1
jmp 0x100af0e9
or byte [esi + 0x40], 2
mov dword [esi + 0x14], eax
movsx eax, byte [esi + 0x44]
mov dword [esi + 0x10], ecx
mov word [esi + eax*2 + 0x50], bp
cmp byte [ebx + 4], 0
jne 0x100af303
mov dword [esp + 0x10], ebp
mov eax, ebp
jmp 0x100af0f3
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + ebp*2]
movzx ecx, word [ebx + 0x14]
mov ah, dl
mov al, dh
movzx edx, byte [ebx + 7]
movzx eax, ax
and eax, ecx
add eax, dword [ebx + 0x44]
movzx ecx, byte [eax]
cmp ecx, edx
jg 0x100af1aa
mov edx, dword [esp + 0x34]
push edx
add eax, 1
push eax
push ecx
call dword [esp + 0x20]
add esp, 0xc
mov edi, eax
jmp 0x100af261
mov dl, byte [eax + 1]
test dl, dl
js 0x100af1dc
and ecx, 0x7f
movzx edx, dl
shl ecx, 7
add ecx, edx
movzx edx, word [ebx + 0xa]
cmp ecx, edx
jg 0x100af1dc
mov edx, dword [esp + 0x34]
push edx
add eax, 2
push eax
push ecx
call dword [esp + 0x20]
add esp, 0xc
mov edi, eax
jmp 0x100af261
movzx ecx, byte [ebx + 6]
mov edx, dword [ebx + 0x50]
lea edi, [esi + 0x10]
push edi
sub eax, ecx
push eax
push ebx
call edx
mov edi, dword [edi]
add esp, 0xc
cmp edi, 2
mov dword [esp + 0x20], edi
jl 0x100af321
lea eax, [edi + 0x12]
cdq
push edx
push eax
call fcn.10099380
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
je 0x100af341
movsx ecx, byte [esi + 0x44]
push 2
push eax
push edi
xor eax, eax
mov edi, esi
mov word [esi + ecx*2 + 0x50], bp
call fcn.100ae7c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100af35a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
mov edi, eax
call fcn.10099680
add esp, 4
test edi, edi
jge 0x100af26e
lea eax, [ebp + 1]
mov dword [esp + 0x10], eax
jmp 0x100af27b
jle 0x100af39e
lea ecx, [ebp - 1]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jg 0x100af0e9
lea ebp, [ecx + eax]
sar ebp, 1
jmp 0x100af170
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + eax*2]
mov ch, dl
mov cl, dh
movzx edx, cx
movzx ecx, word [ebx + 0x14]
and edx, ecx
mov ecx, dword [ebx + 0x38]
mov ecx, dword [edx + ecx]
movsx edx, byte [esi + 0x44]
bswap ecx
mov word [esi + edx*2 + 0x50], ax
push ecx
mov eax, esi
call fcn.100aeb30
mov edi, eax
add esp, 4
test edi, edi
jne 0x100af3c2
mov ecx, dword [esp + 0x24]
jmp 0x100af050
push 0x1012bdf8
push 0xf59a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1009b570
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x44]
xor edi, edi
mov dword [eax], 0
and byte [esi + 0x40], 0xf9
mov word [esi + 0x22], di
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x1012bdf8
push 0xf5e3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1009b570
add esp, 0x14
jmp 0x100af3bd
and byte [esi + 0x40], 0xf9
mov edi, 7
mov word [esi + 0x22], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10099680
add esp, 4
and byte [esi + 0x40], 0xf9
mov word [esi + 0x22], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
movsx edx, byte [esi + 0x44]
mov eax, dword [esp + 0x44]
mov word [esi + edx*2 + 0x50], bp
mov dword [eax], edi
xor edi, edi
and byte [esi + 0x40], 0xf9
mov word [esi + 0x22], di
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov dword [ecx], 0
movsx edx, byte [esi + 0x44]
xor edi, edi
mov word [esi + edx*2 + 0x50], bp
cmp byte [eax + 0xb], 0
je 0x100af3c2
mov edi, 0xb
and byte [esi + 0x40], 0xf9
mov word [esi + 0x22], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret