Function at 0x100b7560
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 0x100b759b
push ebx
call fcn.1007faa0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100b796d
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 0x100b75e3
push edi
call fcn.1007e030
add esp, 4
test eax, eax
jne 0x100b7789
mov ecx, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
je 0x100b763c
cmp byte [edi + 8], 0
je 0x100b7629
push ecx
push edi
call fcn.10080140
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 0x100b7629
cmp word [edi + 0x18], 1
je 0x100b7629
mov dword [ebp - 0x18], 1
jmp 0x100b763c
push ebx
call fcn.100b0ca0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100b796d
cmp byte [edi + 8], 0
jne 0x100b767c
and byte [ebx + 1], 0xf1
xor eax, eax
mov word [ebx + 0x32], ax
cmp byte [ebx], al
jne 0x100b766b
movzx ecx, word [ebx + 0x46]
test cx, cx
je 0x100b766b
mov eax, dword [ebx + 0x74]
cmp byte [eax + 8], 0
je 0x100b766b
lea eax, [ecx - 1]
mov word [ebx + 0x46], ax
jmp 0x100b767c
push ebx
call fcn.1007f8c0
add esp, 4
test eax, eax
jne 0x100b796f
test byte [ebx + 1], 0x20
je 0x100b769b
push ebx
push dword [ebx + 0x40]
push dword [ebp - 8]
call fcn.100b0c50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100b796d
cmp dword [ebx + 0x70], 0
jne 0x100b76b7
push 0
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x40]
push dword [ebp - 0x14]
call fcn.1009eed0
add esp, 0x14
push dword [edi + 0x48]
call fcn.100d4230
mov esi, eax
add esp, 4
test esi, esi
jne 0x100b796d
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
push edi
call fcn.10080ce0
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.10086a60
mov esi, dword [ebp + 8]
add esp, 0x1c
test esi, esi
jne 0x100b796d
cmp byte [edi + 8], 0
jne 0x100b7802
mov esi, dword [ebx + 0x74]
mov dword [ebp + 8], esi
cmp dword [esi + 0x14], 0
jge 0x100b7728
push esi
call fcn.1007e030
mov esi, eax
add esp, 4
test esi, esi
jne 0x100b796d
mov esi, dword [ebp + 8]
movsx eax, byte [ebx + 0x44]
mov ecx, dword [ebp - 4]
dec eax
cmp ecx, eax
jge 0x100b773a
mov eax, dword [ebx + ecx*4 + 0x7c]
jmp 0x100b773d
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 0x100b7795
push 0x10160abc
push 0x119a4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
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.100d4230
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x100b77e1
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.1009eb00
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.10086a60
mov esi, dword [ebp + 8]
add esp, 0x10
test esi, esi
jne 0x100b796d
push ebx
call fcn.1007bf40
mov esi, eax
add esp, 4
test esi, esi
jne 0x100b796d
movsx eax, byte [ebx + 0x44]
cmp eax, dword [ebp - 4]
jle 0x100b790c
mov eax, dword [ebx + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100b786d
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.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100b7876
push edx
call fcn.100d4f60
add esp, 4
dec byte [ebx + 0x44]
mov cl, byte [ebx + 0x44]
movsx eax, cl
cmp eax, dword [ebp - 4]
jle 0x100b78f0
movsx eax, cl
dec cl
mov edx, dword [ebx + eax*4 + 0x78]
mov byte [ebx + 0x44], cl
test edx, edx
je 0x100b78e5
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100b78dc
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.1010cc90
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100b78e5
push edx
call fcn.100d4f60
add esp, 4
mov cl, byte [ebx + 0x44]
movsx eax, cl
cmp eax, dword [ebp - 4]
jg 0x100b7884
movsx eax, cl
push ebx
mov eax, dword [ebx + eax*4 + 0x78]
mov dword [ebx + 0x74], eax
call fcn.1007bf40
mov esi, eax
add esp, 4
test esi, esi
jne 0x100b796d
mov edi, dword [ebp - 0x20]
cmp dword [ebp - 0x18], 0
je 0x100b7948
mov byte [ebx], 2
movzx eax, word [edi + 0x18]
cmp dword [ebp - 0xc], eax
jb 0x100b7938
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.100a18c0
add esp, 4
mov esi, eax
cmp byte [ebp + 0xc], 0
je 0x100b7965
push ebx
call fcn.1007f9a0
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