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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x101811b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x14], bl
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xd8], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x110], edi
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x10c], eax
test ecx, ecx
jne 0x1007c2e1
pop edi
lea eax, [ecx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 0x18]
movzx edx, byte [edi + 0xc]
push esi
lea esi, [edx + ecx]
cmp esi, 2
jae 0x1007c2fa
mov dword [ebp - 0x120], ebx
jmp 0x1007c32e
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1007c309
mov dword [ebp - 0x120], ebx
jmp 0x1007c324
cmp eax, esi
jne 0x1007c31d
mov eax, dword [ebp + 0x18]
add esi, 0xfffffffe
add esi, eax
mov dword [ebp - 0x120], esi
jmp 0x1007c327
dec eax
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x18]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x120]
sub eax, edx
lea edx, [eax + esi]
cmp edx, ecx
jne 0x1007c355
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x1007c369
mov eax, dword [edi + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
lea edi, [ebp - 0x24]
push 0
push 0
lea edi, [edi + esi*4]
mov dword [ebp - 0x124], ecx
mov eax, dword [ecx]
bswap eax
push edi
push eax
push dword [ebp - 0x10c]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x108], eax
call fcn.1009cb40
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x1007c587
mov ecx, dword [edi]
mov dword [ebp - 0xf8], esi
cmp dword [ecx + 0x14], 0
jge 0x1007c3dd
push ecx
call fcn.1007e030
mov edi, eax
add esp, 4
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xf4], edi
test edi, edi
jne 0x1007c60b
mov eax, esi
dec esi
test eax, eax
je 0x1007c659
mov edi, dword [ebp - 0x110]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x1007c449
mov eax, dword [ebp - 0x120]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x1007c449
mov eax, dword [edi + 0x24]
lea edi, [esi*4]
push eax
mov dword [ebp + edi - 0x10], eax
mov ecx, dword [eax]
mov eax, dword [ebp - 0x110]
bswap ecx
push eax
mov dword [ebp - 0x134], ecx
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x108], ecx
call eax
movzx eax, ax
add esp, 8
mov dword [ebp + edi - 0x4c], eax
mov eax, dword [ebp - 0x110]
mov byte [eax + 0xc], 0
jmp 0x1007c554
mov ecx, dword [ebp - 0x120]
movzx eax, dl
mov edx, dword [ebp - 0xf8]
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, edx
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
mov edi, dword [edi + 0x38]
movzx ecx, cx
and ecx, eax
lea eax, [edx*4 - 4]
add edi, ecx
mov dword [ebp - 0xf0], eax
lea ecx, [ebp - 0x10]
add eax, ecx
mov dword [ebp - 0x104], eax
push edi
mov dword [eax], edi
mov eax, dword [edi]
bswap eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x110]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xfc], edx
mov dword [ebp + eax - 0x4c], edx
mov eax, dword [ebp - 0x10c]
test byte [eax + 0x18], 0xc
je 0x1007c521
mov eax, dword [ebp - 0x110]
mov ecx, edi
mov ebx, dword [ebp - 0x10c]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x28]
mov ebx, 0
jg 0x1007c617
mov eax, dword [ebp - 0x140]
push edx
add eax, ecx
push edi
push eax
call fcn.10116d10
mov eax, dword [ebp - 0x110]
add esp, 0xc
mov edx, dword [ebp - 0xfc]
sub edi, dword [eax + 0x38]
mov eax, dword [ebp - 0x104]
add edi, dword [ebp - 0x140]
mov dword [eax], edi
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0xf4]
push eax
push edx
mov edx, dword [ebp - 0x110]
movzx eax, byte [edx + 0xc]
sub ecx, eax
mov eax, dword [ebp - 0xf8]
dec eax
add eax, ecx
push eax
push edx
call fcn.10086a60
mov edi, dword [ebp - 0xf0]
add esp, 0x10
push 0
lea eax, [ebp - 0x24]
add edi, eax
mov eax, dword [ebp - 0x134]
push 0
push edi
push eax
push dword [ebp - 0x10c]
call fcn.1009cb40
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
je 0x1007c3b0
lea eax, [esi*4 + 4]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.10117810
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x114], ebx
jle 0x1007d75c
nop dword [eax + eax]
mov edx, dword [ebp + ebx*4 - 0x24]
test edx, edx
je 0x1007d74f
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007d746
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 0x1007d74f
lea eax, [esi*4]
jmp 0x1007c58e
push 0x10160abc
push 0x1146f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
mov eax, dword [ebp - 0xf8]
shl eax, 2
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0xe8], 0xb
push 0
push eax
call fcn.10117810
add esp, 0x20
jmp 0x1007c59d
mov eax, dword [ebp - 0x10c]
mov esi, dword [eax + 0x24]
mov eax, 0xaaaaaaab
lea ecx, [esi - 8]
mul ecx
mov edi, edx
shr edi, 2
add edi, 4
imul edi, dword [ebp - 0x114]
add edi, 3
and edi, 0xfffffffc
lea eax, [edi + edi*2]
add eax, eax
mov dword [ebp - 0x104], eax
add eax, esi
cdq
push edx
push eax
call fcn.100d1bf0
mov esi, eax
add esp, 8
mov dword [ebp - 0xd8], esi
test esi, esi
jne 0x1007c6b4
mov dword [ebp - 0xe8], 7
jmp 0x1007c59d
mov ecx, dword [ebp - 0x24]
lea eax, [esi + edi*4]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x104]
add eax, esi
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xfc], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [ebp - 0x130], eax
mov al, byte [ecx + 3]
mov byte [ebp - 0xe1], al
movzx eax, al
mov dword [ebp - 0x144], eax
xor eax, eax
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x114], eax
jle 0x1007c966
nop dword [eax + eax]
shl eax, 2
mov dword [ebp - 0x128], eax
mov edi, dword [ebp + eax - 0x24]
mov dword [ebp - 0x118], edi
movzx eax, word [edi + 0x1a]
mov edx, dword [edi + 0x38]
mov ecx, eax
movzx esi, word [edi + 0x12]
mov dword [ebp - 0x138], eax
add esi, edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf0], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1007cadb
movzx eax, byte [edi + 0xc]
movzx ecx, word [edi + 0x18]
add ecx, eax
mov eax, dword [ebp - 0xe0]
add ecx, ecx
push ecx
mov ecx, dword [ebp - 0xd4]
push 0
lea eax, [ecx + eax*2]
push eax
call fcn.10117810
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x1007c824
movzx edx, word [edi + 0x1c]
test edx, edx
je 0x1007c7e4
mov ebx, dword [ebp - 0xe0]
mov edi, dword [ebp - 0xf8]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [ebp - 0x104]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [ebp - 0xd8]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x1007c7a0
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0xe0], ebx
mov ebx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], esi
mov al, byte [edi + 0xc]
xor edx, edx
test al, al
je 0x1007c824
mov ebx, dword [ebp - 0xe0]
lea ecx, [edi + 0x24]
mov esi, dword [ebp - 0xd8]
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebx*4], eax
inc edx
movzx eax, byte [edi + 0xc]
inc ebx
cmp edx, eax
jl 0x1007c800
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0xe0], ebx
mov ebx, dword [ebp - 0xec]
movzx eax, word [edi + 0x12]
xor edx, edx
movzx ecx, word [edi + 0x18]
add eax, dword [ebp - 0xf8]
lea eax, [eax + ecx*2]
xor ecx, ecx
mov edi, eax
sub edi, esi
inc edi
shr edi, 1
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x1007c889
mov ebx, dword [ebp - 0xe0]
nop
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [ebp - 0x138]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [ebp - 0xd8]
add ecx, dword [ebp - 0xf8]
mov dword [eax + ebx*4], ecx
inc ebx
cmp edx, edi
jb 0x1007c850
mov dword [ebp - 0xe0], ebx
mov ebx, dword [ebp - 0xec]
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x11c]
mov edi, dword [ebp - 0xe0]
mov dword [ebp + edx - 0x74], edi
cmp eax, dword [ebp - 0x12c]
jge 0x1007c953
cmp byte [ebp - 0xe1], 0
jne 0x1007c953
movzx eax, word [ebp + edx - 0x4c]
mov ecx, dword [ebp - 0xd4]
mov esi, dword [ebp - 0xfc]
push eax
push dword [ebp + edx - 0x10]
add esi, ebx
mov word [ecx + edi*2], ax
add ebx, eax
push esi
mov dword [ebp - 0xec], ebx
call fcn.10116d10
mov ecx, dword [ebp - 0x130]
add esp, 0xc
mov edx, dword [ebp - 0xd4]
movzx eax, cx
add eax, esi
mov esi, dword [ebp - 0xd8]
mov dword [esi + edi*4], eax
mov eax, dword [ebp - 0x118]
sub word [edx + edi*2], cx
cmp byte [eax + 8], 0
jne 0x1007c91c
mov eax, dword [eax + 0x38]
mov ecx, dword [esi + edi*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x1007c946
cmp word [edx + edi*2], 4
jae 0x1007c946
mov eax, dword [ebp - 0xfc]
nop dword [eax]
mov byte [eax + ebx], 0
inc ebx
inc word [edx + edi*2]
cmp word [edx + edi*2], 4
jb 0x1007c930
mov dword [ebp - 0xec], ebx
mov eax, dword [ebp - 0x11c]
inc edi
mov dword [ebp - 0xe0], edi
inc eax
mov dword [ebp - 0x11c], eax
cmp eax, dword [ebp - 0x114]
jl 0x1007c710
mov eax, dword [ebp - 0x130]
xor ecx, ecx
movzx edi, ax
xor ebx, ebx
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xf0], ebx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add edi, eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x11c], edi
test eax, eax
jle 0x1007ca8d
mov esi, dword [ebp + ebx*4 - 0x24]
mov edx, dword [ebp + ebx*4 - 0x74]
mov dword [ebp - 0x128], edx
mov eax, dword [esi + 0x3c]
mov dword [ebp + ecx*4 - 0xd0], eax
mov dword [ebp + ecx*4 - 0xb8], edx
test ecx, ecx
je 0x1007c9d4
cmp edx, dword [ebp + ecx*4 - 0xbc]
jne 0x1007c9d4
dec ecx
mov dword [ebp - 0xec], ecx
cmp byte [ebp - 0xe1], 0
jne 0x1007c9fe
mov eax, dword [ebp - 0x110]
inc ecx
mov dword [ebp - 0xec], ecx
mov eax, dword [eax + 0x3c]
mov dword [ebp + ecx*4 - 0xd0], eax
lea eax, [edx + 1]
mov dword [ebp + ecx*4 - 0xb8], eax
sub edi, dword [esi + 0x14]
lea eax, [ebp - 0x4c]
cmp byte [esi + 0xc], 0
lea eax, [eax + ebx*4]
mov dword [ebp - 0x12c], eax
mov dword [eax], edi
mov dword [ebp - 0xfc], 0
jbe 0x1007ca67
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [ebp - 0xfc]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [ebp - 0xfc], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x1007ca22
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xec]
mov edx, dword [ebp - 0x128]
mov ebx, dword [ebp - 0xf0]
mov dword [eax], edi
mov eax, dword [ebp - 0x114]
inc ecx
mov edi, dword [ebp - 0x11c]
mov dword [ebp + ebx*4 - 0x60], edx
inc ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], ecx
cmp ebx, eax
jl 0x1007c9a1
mov ebx, dword [ebp - 0xe0]
mov edi, eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0xf0], 0
test eax, eax
jle 0x1007ccc3
mov edx, 1
xor ecx, ecx
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xf8], ecx
lea eax, [ebp - 0x4c]
add eax, ecx
mov dword [ebp - 0x12c], eax
mov esi, dword [eax]
cmp esi, dword [ebp - 0x11c]
jle 0x1007cbe7
jmp 0x1007cb0d
push 0x10160abc
push 0x114b1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x1007d6d4
lea eax, [ebp - 0x4c]
add eax, ecx
cmp edx, edi
jl 0x1007cb37
inc edx
mov dword [ebp - 0x118], edx
cmp edx, 5
jg 0x1007ce8d
mov ebx, dword [ebp - 0xe0]
mov dword [ebp + ecx - 0x48], 0
mov esi, dword [eax]
mov dword [ebp + ecx - 0x5c], ebx
jmp 0x1007cb3d
mov ebx, dword [ebp - 0xe0]
mov edi, dword [ebp + ecx - 0x60]
mov edx, dword [ebp - 0xd4]
lea ecx, [edi - 1]
mov dword [ebp - 0x128], ecx
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x1007cb72
push ecx
lea eax, [ebp - 0xe0]
push eax
call fcn.10083560
mov edx, dword [ebp - 0xd4]
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x12c]
movzx eax, ax
add eax, 2
sub esi, eax
cmp byte [ebp - 0xe1], 0
mov dword [ecx], esi
jne 0x1007cbb5
cmp edi, ebx
jge 0x1007cbb3
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x1007cbab
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.10083560
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x1007cbb5
xor eax, eax
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xec]
mov edi, dword [ebp - 0x118]
add dword [ebp + ecx - 0x48], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp + ecx - 0x60], eax
cmp esi, dword [ebp - 0x11c]
jg 0x1007cb08
mov ebx, dword [ebp - 0xe0]
mov edi, dword [ebp + ecx - 0x60]
cmp edi, ebx
jge 0x1007cc96
mov edx, dword [ebp - 0xd4]
nop dword [eax]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x1007cc28
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.10083560
mov ecx, dword [ebp - 0xf8]
add esp, 8
mov edx, dword [ebp - 0xd4]
movzx eax, ax
movzx eax, ax
add eax, 2
add esi, eax
cmp esi, dword [ebp - 0x11c]
jg 0x1007ce5f
inc edi
mov dword [ebp + ecx - 0x4c], esi
cmp byte [ebp - 0xe1], 0
mov dword [ebp + ecx - 0x60], edi
jne 0x1007cc84
cmp edi, ebx
jge 0x1007cc82
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x1007cc74
lea eax, [ebp - 0xe0]
push edi
push eax
call fcn.10083560
mov edx, dword [ebp - 0xd4]
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0xf8]
movzx eax, ax
add eax, 2
jmp 0x1007cc84
xor eax, eax
sub dword [ebp + ecx - 0x48], eax
cmp edi, ebx
jl 0x1007cc00
mov edx, dword [ebp - 0xec]
mov edi, edx
mov dword [ebp - 0x118], edi
mov eax, dword [ebp - 0xf0]
add ecx, 4
inc eax
mov dword [ebp - 0xf8], ecx
inc edx
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], edx
cmp eax, edi
jl 0x1007cac0
lea eax, [edi - 1]
mov ecx, eax
mov dword [ebp - 0xec], eax
test ecx, ecx
jle 0x1007cf06
shl ecx, 2
lea eax, [ebp - 0x4c]
add eax, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x148], eax
mov edi, dword [eax]
lea eax, [ebp + ecx - 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x60]
sub eax, 4
mov dword [ebp - 0x104], eax
mov ecx, dword [eax + ecx]
mov dword [ebp - 0xfc], ecx
lea esi, [ecx - 1]
mov ecx, dword [ebp - 0xd4]
mov eax, esi
sub eax, dword [ebp - 0x144]
inc eax
cmp word [ecx + eax*2], 0
lea ecx, [ecx + eax*2]
mov dword [ebp - 0xf0], ecx
jne 0x1007cd42
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.10083560
add esp, 8
mov ebx, dword [ebp - 0xf0]
nop dword [eax + eax]
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x128], esi
cmp word [eax + esi*2], 0
jne 0x1007cd79
lea eax, [ebp - 0xe0]
push esi
push eax
call fcn.10083560
add esp, 8
test edi, edi
je 0x1007cdcf
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0xfc]
mov edx, eax
jne 0x1007ce21
mov ecx, dword [ebp - 0x118]
mov eax, 2
mov ebx, dword [ebp - 0xf0]
dec ecx
cmp dword [ebp - 0xec], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [ebp - 0xf8]
sub ecx, eax
mov eax, dword [ebp - 0xd4]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x1007ce21
movzx eax, word [ebx]
mov ecx, 0xfffffffe
mov edx, dword [ebp - 0x138]
add eax, 2
add edi, eax
sub ebx, 2
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], ebx
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [ebp - 0x12c]
add dword [ebp - 0xf8], ecx
mov ecx, dword [ebp - 0x104]
mov dword [ecx + eax], esi
sub esi, 1
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0xfc], eax
jns 0x1007cd50
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0xe0]
mov dword [eax], edi
mov eax, dword [ebp - 0xf8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xec]
cmp ecx, 1
jle 0x1007cee7
mov esi, dword [ebp - 0x104]
lea eax, [ecx*4]
mov eax, dword [eax + esi - 4]
jmp 0x1007cee9
cmp edi, ebx
jge 0x1007cc90
cmp dword [ebp - 0xf0], 0
jle 0x1007ce76
mov eax, dword [ebp + ecx - 0x64]
jmp 0x1007ce78
xor eax, eax
cmp edi, eax
jle 0x1007ceba
mov edx, dword [ebp - 0xec]
mov edi, dword [ebp - 0x118]
jmp 0x1007cc9e
push 0x10160abc
push 0x11529
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x1007d6d4
push 0x10160abc
push 0x1154a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x1007d6d4
xor eax, eax
cmp edx, eax
jle 0x1007cf6c
dec ecx
mov dword [ebp - 0xec], ecx
test ecx, ecx
jg 0x1007ccd6
mov edi, dword [ebp - 0x118]
mov eax, dword [ebp - 0x24]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [ebp - 0xfc], eax
lea eax, [esi + 1]
test edi, edi
jle 0x1007d05a
cmp esi, dword [ebp - 0x114]
jge 0x1007cf99
mov eax, dword [ebp + esi*4 - 0x24]
mov dword [ebp + esi*4 - 0x38], eax
mov dword [ebp + esi*4 - 0x24], 0
mov dword [ebp - 0x104], eax
push dword [eax + 0x48]
call fcn.100d4230
inc dword [ebp - 0x100]
mov ecx, eax
add esp, 4
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xf4], ecx
test ecx, ecx
jne 0x1007d6d4
jmp 0x1007d04c
push 0x10160abc
push 0x11574
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x1007d6d4
cmp dword [ebp + 0x18], 0
mov ecx, dword [ebp - 0x134]
push 0
cmovne ecx, eax
lea eax, [ebp - 0x108]
push ecx
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
call fcn.10079b50
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x1007d6d4
push dword [ebp - 0xfc]
mov edi, dword [ebp - 0x104]
push edi
call fcn.1010bd70
mov ecx, dword [ebp - 0x10c]
add esp, 8
inc dword [ebp - 0x100]
mov dword [ebp + esi*4 - 0x38], edi
mov dword [ebp + esi*4 - 0x74], ebx
cmp byte [ecx + 0x11], 0
je 0x1007d03a
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x110]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.100a9da0
mov eax, dword [ebp - 0xf4]
add esp, 0x14
mov dword [ebp - 0xe8], eax
test eax, eax
jne 0x1007d6d4
mov eax, dword [ebp - 0x108]
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x134], eax
inc esi
mov eax, 1
cmp esi, edi
jl 0x1007cf22
mov ebx, dword [ebp - 0x100]
xor ecx, ecx
test ebx, ebx
jle 0x1007d0a7
mov eax, dword [ebp + ecx*4 - 0x38]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [ebp + ecx*4 - 0x9c], edx
mov dword [ebp + ecx*4 - 0x88], edx
mov ax, word [eax + 0x1c]
mov word [ebp + ecx*2 - 0x10], ax
xor eax, eax
test ecx, ecx
jle 0x1007d0a2
nop dword [eax]
cmp dword [ebp + eax*4 - 0x9c], edx
je 0x1007d201
inc eax
cmp eax, ecx
jl 0x1007d090
inc ecx
cmp ecx, ebx
jl 0x1007d066
xor edi, edi
test ebx, ebx
jle 0x1007d145
xor esi, esi
lea edx, [esi + 1]
cmp ebx, edx
jle 0x1007d0da
nop word [eax + eax]
mov eax, dword [ebp + edx*4 - 0x88]
mov ecx, edx
cmp eax, dword [ebp + esi*4 - 0x88]
cmovae ecx, esi
inc edx
mov esi, ecx
cmp edx, ebx
jl 0x1007d0c0
mov ebx, dword [ebp + esi*4 - 0x88]
mov dword [ebp + esi*4 - 0x88], 0xffffffff
cmp esi, edi
je 0x1007d136
jle 0x1007d115
mov eax, dword [ebp - 0x10c]
xor edx, edx
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp + esi*4 - 0x38]
inc ecx
add ecx, esi
push ecx
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], dx
call fcn.100d4ec0
add esp, 8
mov eax, dword [ebp + edi*4 - 0x38]
push ebx
mov ecx, dword [eax + 0x48]
mov ax, word [ebp + esi*2 - 0x10]
push ecx
mov word [ecx + 0x1c], ax
call fcn.100d4ec0
mov eax, dword [ebp + edi*4 - 0x38]
add esp, 8
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0x100]
inc edi
cmp edi, ebx
jl 0x1007d0b1
test byte [ebp - 0xfc], 8
mov eax, dword [ebp + ebx*4 - 0x3c]
mov ecx, dword [ebp - 0x124]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x1007d186
mov ecx, dword [ebp - 0x114]
cmp ecx, ebx
je 0x1007d186
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x38]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + ebx*4 - 0x3c]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10c]
cmp byte [eax + 0x11], 0
je 0x1007d375
mov esi, dword [ebp - 0x38]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x124], 0
movzx eax, byte [esi + 0xc]
movzx edx, word [esi + 0x18]
add edx, eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xf0], edx
test eax, eax
jle 0x1007d37a
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x108], esi
mov ecx, dword [ebp - 0xd8]
mov ecx, dword [ecx + ebx*4]
mov dword [ebp - 0xfc], ecx
cmp ebx, edx
jne 0x1007d251
xor eax, eax
cmp byte [ebp - 0xe1], al
sete al
mov dword [ebp - 0xc], eax
inc edi
cmp edi, dword [ebp - 0x100]
jge 0x1007d22e
mov esi, dword [ebp + edi*4 - 0x38]
jmp 0x1007d232
push 0x10160abc
push 0x115be
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10072040
add esp, 0x14
mov dword [ebp - 0xe8], 0xb
jmp 0x1007d6d4
mov esi, dword [ebp + edi*4 - 0x24]
movzx eax, word [esi + 0x18]
add eax, dword [ebp - 0xc]
movzx ecx, byte [esi + 0xc]
add ecx, eax
add edx, ecx
cmp ebx, edx
je 0x1007d1f2
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xf0], edx
mov ecx, dword [ebp - 0x104]
cmp ebx, dword [ebp + ecx - 0x60]
mov ecx, dword [ebp - 0xfc]
jne 0x1007d296
mov edx, dword [ebp - 0x124]
inc edx
mov dword [ebp - 0x124], edx
shl edx, 2
cmp byte [ebp - 0xe1], 0
mov dword [ebp - 0x104], edx
mov edx, dword [ebp + edx - 0x38]
mov dword [ebp - 0x108], edx
mov edx, dword [ebp - 0xf0]
je 0x1007d366
cmp edi, dword [ebp - 0x100]
jge 0x1007d2be
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp eax, dword [ebp + edi*4 - 0x9c]
jne 0x1007d2be
cmp ecx, dword [esi + 0x38]
jb 0x1007d2be
cmp ecx, dword [esi + 0x3c]
jb 0x1007d360
cmp word [ebp - 0x130], 0
jne 0x1007d2f9
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0x108]
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [ebp - 0x10c]
call fcn.100a9da0
mov eax, dword [ebp - 0xf4]
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xd4]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x1007d31b
lea eax, [ebp - 0xe0]
push ebx
push eax
call fcn.10083560
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x108]
cmp ax, word [ecx + 0x10]
jbe 0x1007d34c
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0xfc]
push esi
push ecx
call fcn.100a9ec0
mov ecx, dword [ebp - 0xf4]
add esp, 0x10
mov dword [ebp - 0xe8], ecx
jmp 0x1007d352
mov ecx, dword [ebp - 0xe8]
test ecx, ecx
jne 0x1007d6d4
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0xe0]
inc ebx
cmp ebx, eax
jl 0x1007d1d1
mov ebx, dword [ebp - 0x100]
mov esi, dword [ebp - 0x38]
jmp 0x1007d380
mov ebx, dword [ebp - 0x100]
lea eax, [ebx - 1]
xor edi, edi
test eax, eax
jle 0x1007d4ea
nop dword [eax]
mov eax, dword [ebp + edi*4 - 0x60]
mov edx, dword [ebp - 0xd8]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [ebp + edi*4 - 0x38]
mov ebx, dword [ebp - 0x13c]
add ebx, dword [ebp - 0x140]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0x108], ecx
mov ecx, dword [ebp - 0x130]
movzx eax, word [edx + eax*2]
movzx edx, cx
mov ecx, dword [ebp - 0x108]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x1007d3e7
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x1007d491
cmp byte [ebp - 0xe1], 0
je 0x1007d476
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [ebp - 0x9c]
mov esi, ebx
mov ecx, dword [ebp - 0xa0]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x1007d464
jb 0x1007d426
cmp ecx, 0x7f
ja 0x1007d437
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x1007d491
test edx, edx
ja 0x1007d464
jb 0x1007d445
cmp ecx, 0x3fff
ja 0x1007d464
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
shr edx, 7
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x1007d491
push edx
push ecx
push ebx
call fcn.100aa710
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x1007d491
sub esi, 4
cmp eax, 4
jne 0x1007d497
mov eax, dword [ebp - 0x110]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov ecx, dword [ebp - 0x108]
add dword [ebp - 0x13c], edx
lea eax, [ebp - 0xf4]
push eax
push dword [ecx + 4]
mov eax, dword [ebp - 0x120]
push ebx
push edx
push esi
add eax, edi
push eax
push dword [ebp - 0x110]
call fcn.1009eb00
mov esi, dword [ebp - 0xf4]
add esp, 0x1c
mov dword [ebp - 0xe8], esi
test esi, esi
jne 0x1007d6d4
mov ebx, dword [ebp - 0x100]
inc edi
lea eax, [ebx - 1]
cmp edi, eax
jl 0x1007d390
mov esi, dword [ebp - 0x38]
mov edi, 1
sub edi, ebx
mov dword [ebp - 0x124], edi
cmp edi, ebx
jge 0x1007d5cd
nop
mov eax, edi
lea ebx, [ebp - 0x18]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x1007d5b5
test edi, edi
jns 0x1007d529
mov eax, dword [ebp + ecx*4 - 0x78]
cmp eax, dword [ebp + ecx*4 - 0x64]
jl 0x1007d5b5
test ecx, ecx
jne 0x1007d536
mov esi, dword [ebp - 0x60]
xor eax, eax
xor edx, edx
jmp 0x1007d56a
cmp ecx, dword [ebp - 0x114]
jge 0x1007d54f
xor eax, eax
cmp byte [ebp - 0xe1], al
sete al
add eax, dword [ebp + ecx*4 - 0x78]
jmp 0x1007d555
mov eax, dword [ebp - 0xe0]
mov esi, dword [ebp + ecx*4 - 0x60]
xor edx, edx
cmp byte [ebp - 0xe1], dl
sete dl
add edx, dword [ebp + ecx*4 - 0x64]
sub esi, edx
lea edi, [ecx*4]
lea ecx, [ebp - 0xe0]
push ecx
push esi
push edx
push eax
push dword [ebp + edi - 0x38]
call fcn.10086c40
add esp, 0x14
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x1007d6d4
mov eax, dword [ebp + edi - 0x38]
mov ecx, dword [ebp - 0x11c]
sub ecx, dword [ebp + edi - 0x4c]
mov edi, dword [ebp - 0x124]
mov byte [ebx], 1
mov dword [eax + 0x14], ecx
mov ebx, dword [ebp - 0x100]
inc edi
mov dword [ebp - 0x124], edi
cmp edi, ebx
jl 0x1007d500
mov esi, dword [ebp - 0x38]
cmp dword [ebp + 0x14], 0
je 0x1007d63a
mov edi, dword [ebp - 0x110]
cmp word [edi + 0x18], 0
jne 0x1007d63a
movzx eax, byte [edi + 9]
cmp eax, dword [esi + 0x14]
jg 0x1007d63a
push 0xffffffffffffffff
push esi
call fcn.10085b00
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0xf4]
push eax
push edi
push dword [ebp - 0x38]
call fcn.10084e70
mov ecx, dword [ebp - 0xf4]
add esp, 0x14
mov dword [ebp - 0xe8], ecx
test ecx, ecx
jne 0x1007d6a1
mov eax, dword [ebp - 0x38]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.1008c6b0
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0xe8], ecx
jmp 0x1007d6a1
mov ecx, dword [ebp - 0x10c]
cmp byte [ecx + 0x11], 0
je 0x1007d69b
cmp word [ebp - 0x130], 0
jne 0x1007d69b
xor esi, esi
test ebx, ebx
jle 0x1007d69b
nop word [eax + eax]
mov eax, dword [ebp + esi*4 - 0x38]
lea edx, [ebp - 0xf4]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov eax, dword [eax + 8]
bswap eax
push eax
push ecx
call fcn.100a9da0
mov ecx, dword [ebp - 0x10c]
inc esi
add esp, 0x14
cmp esi, ebx
jl 0x1007d660
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xe8], ecx
jmp 0x1007d6a1
mov ecx, dword [ebp - 0xe8]
mov edi, dword [ebp - 0x114]
mov esi, ebx
cmp ebx, edi
jge 0x1007d6d4
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x24]
test ecx, ecx
jne 0x1007d6c9
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.1008c6b0
add esp, 0xc
mov ecx, eax
inc esi
cmp esi, edi
jl 0x1007d6b0
mov dword [ebp - 0xe8], ecx
mov ebx, dword [ebp - 0xd8]
test ebx, ebx
je 0x1007c59d
cmp dword [0x1017c908], 0
je 0x1007d737
mov eax, dword [0x101855a8]
test eax, eax
je 0x1007d6fe
push eax
call dword [0x1017c964]
add esp, 4
push ebx
call dword [0x1017c940]
sub dword [0x101854b8], eax
dec dword [0x101854dc]
push ebx
call dword [0x1017c938]
mov eax, dword [0x101855a8]
add esp, 8
test eax, eax
je 0x1007c59d
push eax
call dword [0x1017c96c]
add esp, 4
jmp 0x1007c59d
push ebx
call dword [0x1017c938]
add esp, 4
jmp 0x1007c59d
push edx
call fcn.100d4f60
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x114]
jl 0x1007c5b0
xor ebx, ebx
cmp dword [ebp - 0x100], ebx
jle 0x1007d7c8
mov edx, dword [ebp + ebx*4 - 0x38]
test edx, edx
je 0x1007d7bf
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007d7b6
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 0x1007d7bf
push edx
call fcn.100d4f60
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x100]
jl 0x1007d766
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe8]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret