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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0xc]
mov dword [ebp - 0xc], ebx
cmp eax, 2
jb 0x100d7ce1
cmp eax, dword [edi + 0x30]
ja 0x100d7ce1
test esi, esi
je 0x100d79db
mov eax, dword [esi + 0x48]
inc word [eax + 0x1e]
mov eax, dword [eax + 0xc]
inc dword [eax + 0xc]
jmp 0x100d79e7
push eax
push edi
call fcn.100ca700
add esp, 8
mov esi, eax
push dword [ebx + 0x48]
mov dword [ebp + 8], esi
call fcn.101201f0
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x100d7c1c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x38]
mov eax, dword [ecx + 0x24]
bswap eax
mov dword [ebp - 0x14], eax
inc eax
bswap eax
mov dword [ecx + 0x24], eax
test byte [edi + 0x18], 4
je 0x100d7a68
test esi, esi
jne 0x100d7a3e
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push edi
call fcn.100c9c30
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100d7c6b
mov esi, dword [ebp + 8]
push dword [esi + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x100d7c1c
mov eax, dword [esi + 0x34]
push dword [eax + 0x24]
push ebx
push dword [esi + 0x38]
call fcn.1016abc0
add esp, 0xc
cmp byte [edi + 0x11], 0
je 0x100d7a8d
lea eax, [ebp - 8]
push eax
push 0
push 2
push dword [ebp + 0x10]
push edi
call fcn.100f5520
mov ebx, dword [ebp - 8]
add esp, 0x14
test ebx, ebx
jne 0x100d7c1c
cmp dword [ebp - 0x14], 0
je 0x100d7bcb
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push 0
push ecx
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x20]
bswap eax
push eax
push edi
mov dword [ebp - 0x10], eax
call fcn.100c9c30
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100d7c1c
mov ecx, dword [ebp - 4]
mov ebx, dword [edi + 0x28]
shr ebx, 2
mov eax, dword [ecx + 0x38]
mov edx, dword [eax + 4]
lea eax, [ebx - 2]
bswap edx
mov dword [ebp - 0x14], edx
cmp edx, eax
jbe 0x100d7b02
push 0x101c584c
push 0x10f2e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov ebx, 0xb
jmp 0x100d7c1c
lea eax, [ebx - 8]
cmp edx, eax
jae 0x100d7bcb
push dword [ecx + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100d7c1c
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov eax, dword [edx + 0x38]
lea ecx, [ebx + 1]
bswap ecx
mov dword [eax + 4], ecx
mov eax, dword [edx + 0x38]
mov ecx, dword [ebp + 0x10]
bswap ecx
mov dword [eax + ebx*4 + 8], ecx
test esi, esi
je 0x100d7b6f
test byte [edi + 0x18], 4
jne 0x100d7b6f
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx + 0x14]
cmp byte [edx + 0xc], 0
jne 0x100d7b6f
movzx eax, word [ecx + 0x1c]
test al, 2
je 0x100d7b6f
cmp dword [edx + 0x60], 0
jne 0x100d7b6f
and eax, 0xfffb
or eax, 0x10
mov word [ecx + 0x1c], ax
mov eax, dword [edi + 0x40]
xor ebx, ebx
test eax, eax
jne 0x100d7bb6
mov eax, dword [edi + 0x30]
push ebx
push 0x200
mov dword [ebp - 0x14], eax
call fcn.1011db10
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x100d7baa
push 0x200
push ebx
push eax
call fcn.1016abc0
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [edi + 0x40], eax
test eax, eax
jne 0x100d7bb6
lea ebx, [eax + 7]
jmp 0x100d7c1c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax]
ja 0x100d7c1c
push ecx
push eax
call fcn.10102030
add esp, 8
mov ebx, eax
jmp 0x100d7c1c
test esi, esi
jne 0x100d7bed
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push edi
call fcn.100c9c30
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100d7c6b
mov esi, dword [ebp + 8]
push dword [esi + 0x48]
call fcn.101201f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100d7c1c
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0x10]
bswap ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp + 0x10]
bswap ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
mov dword [eax + 0x20], ecx
test esi, esi
je 0x100d7c79
mov byte [esi], 0
mov edx, dword [esi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100d7c70
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.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x100d7c79
mov esi, dword [ebp + 8]
jmp 0x100d7c1c
push edx
call fcn.10120f40
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x100d7cd8
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x100d7ccf
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.10158ec0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.10120f40
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x101c584c
push 0x10ef8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100bced0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret