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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
jne 0x100b8579
cmp byte [ebx], 0
jne 0x100b8570
mov dl, byte [ebx + 1]
test dl, 2
je 0x100b8570
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
mov esi, dword [ebp + 0x14]
cmp ecx, edi
jne 0x100b8512
cmp eax, esi
jne 0x100b8514
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, esi
jg 0x100b8570
jl 0x100b851c
cmp ecx, edi
jae 0x100b8570
test dl, 8
jne 0x100b85ef
add ecx, 1
adc eax, 0
cmp ecx, edi
jne 0x100b8570
cmp eax, esi
jne 0x100b8570
mov eax, dword [ebp + 0x1c]
push 0
push ebx
mov dword [eax], 0
call fcn.100b89b0
add esp, 8
test eax, eax
jne 0x100b8567
push ebx
call fcn.1009cc90
add esp, 4
cmp dword [ebx + 0x20], edi
jne 0x100b8570
cmp dword [ebx + 0x24], esi
jne 0x100b8570
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x100b89a6
mov dword [ebp - 0xc], 0
jmp 0x100b85d9
mov ecx, dword [esi]
cmp word [ecx + 8], 0xd
ja 0x100b85ce
mov eax, dword [esi + 4]
movzx edx, word [eax + 8]
mov eax, dword [ecx + 0x10]
mov al, byte [eax]
test al, al
sete cl
test al, al
setne al
lea ecx, [ecx*2 - 1]
lea eax, [eax*2 - 1]
mov byte [esi + 0xc], al
mov byte [esi + 0xd], cl
test dl, 4
je 0x100b85ba
mov dword [ebp - 0xc], 0x100fb960
jmp 0x100b85d5
test dl, 0x19
jne 0x100b85ce
mov eax, dword [esi]
mov dword [ebp - 0xc], 0x100fbb90
cmp dword [eax + 0x14], 0
je 0x100b85d5
mov dword [ebp - 0xc], 0x100ec270
mov byte [esi + 0xb], 0
push ebx
call fcn.100a18c0
add esp, 4
test eax, eax
je 0x100b8601
cmp eax, 0x10
jne 0x100b89a6
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], 0xffffffff
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, 1
lea edi, [ebx + 0x74]
sub ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], ecx
nop
mov edx, dword [edi]
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
movzx esi, word [edx + 0x18]
dec esi
mov edi, esi
mov dword [ebp - 0x14], esi
sar edi, cl
mov word [ebx + 0x46], di
cmp dword [ebp - 0xc], eax
jne 0x100b8710
mov cl, byte [edx + 3]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], cl
nop
mov ax, word [eax + edi*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, word [edx + 0x1a]
and eax, ecx
add eax, dword [edx + 0x44]
cmp byte [ebp - 1], 0
je 0x100b8671
cmp byte [eax], 0x80
jb 0x100b8670
mov ecx, dword [edx + 0x3c]
inc eax
cmp eax, ecx
jae 0x100b88b9
cmp byte [eax], 0x80
jae 0x100b8662
inc eax
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.100cd970
mov ecx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x14]
jg 0x100b86c8
jl 0x100b8692
mov edx, dword [ebp + 0x10]
cmp eax, edx
jae 0x100b86cb
lea ecx, [edi + 1]
mov dword [ebp - 0x10], ecx
cmp ecx, esi
jle 0x100b86e0
or esi, 0xffffffff
mov edx, dword [ebp - 8]
cmp byte [edx + 8], 0
jne 0x100b8911
movzx eax, word [edx + 0x18]
cmp ecx, eax
jl 0x100b883c
movzx ecx, byte [edx + 9]
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x100b8856
mov edx, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x14]
jl 0x100b86f7
jg 0x100b86d6
cmp eax, edx
jbe 0x100b86f7
mov ecx, dword [ebp - 0x10]
lea esi, [edi - 1]
cmp ecx, esi
jg 0x100b86f0
mov edx, dword [ebp - 8]
lea edi, [esi + ecx]
mov eax, dword [ebp - 0x14]
sar edi, 1
jmp 0x100b8640
mov esi, 1
jmp 0x100b869f
mov edx, dword [ebp - 8]
mov word [ebx + 0x46], di
cmp byte [edx + 8], 0
jne 0x100b88e3
mov ecx, edi
mov dword [ebp - 0x10], ecx
jmp 0x100b86ac
mov eax, dword [edx + 0x40]
mov ax, word [eax + edi*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [ebp - 8]
add ecx, dword [edx + 0x44]
movzx eax, byte [eax + 0xb]
movzx edx, byte [ecx]
lea esi, [ecx + 1]
cmp edx, eax
ja 0x100b874a
push dword [ebp + 0xc]
push esi
push edx
call dword [ebp - 0xc]
add esp, 0xc
mov esi, eax
jmp 0x100b8809
mov al, byte [esi]
test al, al
js 0x100b877b
and edx, 0x7f
movzx eax, al
shl edx, 7
add edx, eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0xe]
cmp edx, eax
ja 0x100b877b
push dword [ebp + 0xc]
lea eax, [ecx + 2]
push eax
push edx
call dword [ebp - 0xc]
add esp, 0xc
mov esi, eax
jmp 0x100b8809
mov edx, dword [ebp - 8]
lea esi, [ebx + 0x20]
push esi
movzx eax, byte [edx + 0xa]
sub ecx, eax
mov eax, dword [edx + 0x50]
push ecx
push edx
call eax
mov esi, dword [esi]
add esp, 0xc
cmp esi, 2
jl 0x100b897d
mov ecx, dword [ebx + 0x14]
xor edx, edx
mov eax, esi
div dword [ecx + 0x28]
cmp eax, dword [ecx + 0x30]
ja 0x100b897d
lea eax, [esi + 0x12]
cdq
push edx
push eax
call fcn.100d1bf0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100b8968
mov eax, dword [ebp + 8]
push 0
push ebx
push esi
push 0
push eax
mov word [eax + 0x46], di
call fcn.10079390
mov ecx, dword [ebp + 8]
add esp, 0x14
mov dword [ebp - 0x1c], eax
and byte [ecx + 1], 0xfb
test eax, eax
jne 0x100b894c
push eax
push dword [ebp + 0xc]
push ebx
push esi
call fcn.100ec290
push ebx
mov esi, eax
call fcn.10068780
mov ebx, dword [ebp + 8]
add esp, 0x14
test esi, esi
jns 0x100b8818
mov eax, dword [ebp - 0x14]
lea ecx, [edi + 1]
mov dword [ebp - 0x10], ecx
jmp 0x100b8827
jle 0x100b8929
mov ecx, dword [ebp - 0x10]
lea eax, [edi - 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jg 0x100b869f
mov edx, dword [ebp - 8]
lea edi, [eax + ecx]
sar edi, 1
jmp 0x100b8710
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edx + 0x38]
mov edx, dword [ecx + eax]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebx + 0x14]
movzx ecx, ax
mov al, byte [ebx + 0x44]
mov word [ebx + 0x46], cx
cmp al, 0x13
jge 0x100b8905
and byte [ebx + 1], 0xf9
xor edi, edi
movsx eax, al
mov word [ebx + 0x32], di
lea edi, [ebx + 0x74]
bswap edx
mov word [ebx + eax*2 + 0x48], cx
movsx ecx, byte [ebx + 0x44]
mov eax, dword [edi]
mov dword [ebx + ecx*4 + 0x78], eax
xor eax, eax
inc byte [ebx + 0x44]
mov word [ebx + 0x46], ax
movzx eax, byte [ebx + 2]
push eax
push ebx
push edi
push edx
push esi
call fcn.1009cb40
add esp, 0x14
test eax, eax
jne 0x100b89a0
mov ecx, dword [ebp - 0x18]
jmp 0x100b8610
push 0x10160abc
push 0x10c20
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or byte [ebx + 1], 2
mov dword [ebx + 0x20], eax
xor eax, eax
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [ebx + 0x24], ecx
pop esi
mov dword [eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10160abc
push 0x10a85
jmp 0x100b8987
mov eax, dword [ebp + 0x1c]
mov word [ebx + 0x46], di
pop edi
mov dword [eax], esi
xor eax, eax
xor ecx, ecx
pop esi
mov word [ebx + 0x32], cx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
mov word [ebx + 0x46], di
cmp byte [ecx + 0xb], al
je 0x100b89a0
push 0x10160abc
push 0x10c89
jmp 0x100b8987
push ebx
call fcn.10068780
mov ebx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
pop edi
pop esi
mov word [ebx + 0x32], cx
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
xor ecx, ecx
pop edi
pop esi
mov eax, 7
mov word [ebx + 0x32], cx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10160abc
push 0x10c6a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov eax, 0xb
xor ecx, ecx
mov word [ebx + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret