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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x102beb54]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov eax, ecx
mov dword [esp + 0x14], 0
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x80], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x128], 0
mov byte [esp + 0x12c], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ecx
push edi
test esi, esi
jne 0x100386f5
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.101e95a5
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x16]
movzx ecx, byte [eax + 0xc]
lea esi, [ecx + edi]
cmp esi, 2
jae 0x10038709
xor edx, edx
jmp 0x10038726
test edx, edx
je 0x1003871c
cmp edx, esi
jne 0x1003871b
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x1003871f
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x68], edx
mov dword [esp + 0x48], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x70], esi
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x10038752
mov eax, dword [esp + 0x38]
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
add ecx, 8
add ecx, eax
jmp 0x1003876d
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov edx, dword [ecx]
lea edi, [esp + 0x10c]
push 0
bswap edx
mov dword [esp + 0x68], ecx
lea edi, [edi + esi*4]
mov ecx, dword [esp + 0x40]
push 0
push edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], edx
call fcn.10033090
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10038945
nop dword [eax + eax]
mov eax, dword [edi]
mov dword [esp + 0x60], esi
movzx ecx, word [eax + 0x16]
movzx eax, byte [eax + 0xc]
inc eax
add eax, dword [esp + 0x1c]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x100389b2
mov edi, dword [esp + 0x38]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x1003882c
mov eax, dword [esp + 0x68]
movzx ecx, word [edi + 0x1a]
add eax, esi
cmp eax, ecx
jne 0x1003882c
mov eax, dword [edi + 0x24]
lea edi, [esi*4]
push eax
mov dword [esp + edi + 0x80], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x3c]
bswap ecx
push eax
mov dword [esp + 0x54], ecx
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x48], ecx
call eax
movzx eax, ax
mov dword [esp + edi + 0x98], eax
mov eax, dword [esp + 0x40]
mov byte [eax + 0xc], 0
jmp 0x10038912
mov ecx, dword [esp + 0x68]
movzx eax, dl
mov edx, dword [esp + 0x60]
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 + 0x18]
mov edi, dword [edi + 0x38]
movzx ecx, cx
and ecx, eax
lea eax, [edx*4 - 4]
add edi, ecx
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x7c]
add eax, ecx
mov dword [esp + 0x28], eax
push edi
mov dword [eax], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], edx
mov dword [esp + eax + 0x90], edx
mov eax, dword [esp + 0x3c]
test byte [eax + 0x16], 0xc
je 0x100388ec
mov eax, dword [esp + 0x38]
mov ecx, edi
mov ebx, dword [esp + 0x3c]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x24]
mov ebx, 0
jg 0x1003896c
mov eax, dword [esp + 0x84]
push edx
add eax, ecx
push edi
push eax
call fcn.10200b60
mov eax, dword [esp + 0x44]
add esp, 0xc
mov edx, dword [esp + 0x34]
sub edi, dword [eax + 0x38]
mov eax, dword [esp + 0x28]
add edi, dword [esp + 0x84]
mov dword [eax], edi
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x68]
push eax
push edx
movzx eax, byte [edi + 0xc]
mov edx, dword [esp + 0x68]
sub ecx, eax
dec edx
add edx, ecx
mov ecx, edi
call fcn.10037a50
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x114]
mov ecx, dword [esp + 0x44]
add esp, 8
add edi, eax
push 0
push 0
push edi
call fcn.10033090
mov edx, eax
add esp, 0xc
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], edx
test edx, edx
je 0x100387b0
lea eax, [esi*4 + 4]
push eax
lea eax, [esp + 0x110]
push 0
push eax
call fcn.102010e0
mov edi, dword [esp + 0x2c]
add esp, 0xc
xor eax, eax
xor ebx, ebx
jmp 0x100399b4
push 0x102af5bc
push 0x104ef
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10022360
mov eax, dword [esp + 0x38]
add esp, 0x14
add eax, 4
mov edi, 0xb
push eax
lea eax, [esp + 0x110]
push 0
push eax
call fcn.102010e0
add esp, 0xc
xor eax, eax
xor ebx, ebx
jmp 0x100399b4
mov eax, dword [esp + 0x3c]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov ecx, dword [eax + 0x20]
lea edi, [esi + esi*2]
add edi, edi
add ecx, edi
call fcn.1001fc40
mov dword [esp + 0x14], eax
mov dword [esp + 0x58], eax
test eax, eax
jne 0x100389e1
lea edi, [eax + 7]
xor ebx, ebx
jmp 0x100399b4
mov ecx, dword [esp + 0x10c]
lea eax, [eax + esi*4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x28], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x60], eax
mov al, byte [ecx + 3]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x48], eax
jle 0x10038c2e
xor edi, edi
nop
shl eax, 2
mov dword [esp + 0x78], eax
mov edx, dword [esp + eax + 0x10c]
mov dword [esp + 0x34], edx
movzx eax, word [edx + 0x18]
mov ecx, dword [edx + 0x38]
mov esi, eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x6c], esi
movzx esi, word [edx + 0x12]
add esi, ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], esi
mov al, byte [eax]
cmp al, byte [ecx]
jne 0x10038d2b
movzx eax, byte [edx + 0xc]
movzx ecx, word [edx + 0x16]
add ecx, eax
mov eax, dword [esp + 0x5c]
add ecx, ecx
push ecx
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.102010e0
mov eax, dword [esp + 0x40]
add esp, 0xc
mov cl, byte [eax + 0xc]
test cl, cl
je 0x10038b1a
movzx edx, word [eax + 0x1a]
test edx, edx
je 0x10038aea
nop
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x6c]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x14]
add ecx, dword [esp + 0x44]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x50], ebx
sub edx, 1
jne 0x10038ab0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], ebx
mov cl, byte [eax + 0xc]
xor edx, edx
test cl, cl
je 0x10038b1a
lea ecx, [eax + 0x24]
mov esi, dword [esp + 0x14]
lea ecx, [ecx + 4]
mov eax, dword [ecx - 4]
inc edx
mov dword [esi + ebx*4], eax
inc ebx
mov esi, dword [esp + 0x34]
mov dword [esp + 0x50], ebx
movzx eax, byte [esi + 0xc]
cmp edx, eax
jl 0x10038af3
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x34]
xor edx, edx
movzx ecx, word [eax + 0x16]
movzx eax, word [eax + 0x12]
add eax, dword [esp + 0x44]
lea eax, [eax + ecx*2]
mov ecx, eax
sub ecx, esi
inc ecx
shr ecx, 1
cmp esi, eax
cmova ecx, edx
mov dword [esp + 0x6c], ecx
test ecx, ecx
je 0x10038b77
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [esp + 0x8c]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x14]
add ecx, dword [esp + 0x44]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x50], ebx
cmp edx, dword [esp + 0x6c]
jb 0x10038b43
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
mov dword [esp + edx + 0xb8], ebx
cmp eax, dword [esp + 0x70]
jge 0x10038c1f
cmp byte [esp + 0x13], 0
jne 0x10038c1f
movzx eax, word [esp + edx + 0x90]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x28]
push eax
push dword [esp + edx + 0x80]
add esi, edi
mov word [ecx + ebx*2], ax
push esi
add edi, eax
call fcn.10200b60
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
movzx eax, ax
add eax, esi
mov dword [ecx + ebx*4], eax
mov eax, dword [esp + 0x60]
sub word [edx + ebx*2], ax
mov eax, dword [esp + 0x34]
cmp byte [eax + 8], 0
jne 0x10038bf7
mov eax, dword [eax + 0x38]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x10038c12
cmp word [edx + ebx*2], 4
jae 0x10038c12
mov eax, dword [esp + 0x28]
mov byte [eax + edi], 0
inc edi
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x10038c02
mov eax, dword [esp + 0x24]
inc ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], ebx
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x48]
jl 0x10038a30
mov eax, dword [esp + 0x60]
xor edx, edx
movzx ecx, ax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x24]
add eax, 0xfffffff4
add eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x10038ce6
mov ecx, eax
lea esi, [esp + 0xb8]
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
nop dword [eax]
mov esi, dword [esp + edx*4 + 0x10c]
mov edi, ecx
mov dword [esp + 0x28], 0
movzx eax, word [esi + 0x14]
sub edi, eax
cmp byte [esi + 0xc], 0
lea eax, [esp + 0x90]
lea eax, [eax + edx*4]
mov dword [eax], edi
mov dword [esp + 0x70], eax
jbe 0x10038cd5
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x30]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x30], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x10038ca0
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [eax], edi
mov eax, dword [esp + 0x48]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, eax
jl 0x10038c70
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
mov edi, eax
mov dword [esp + 0x44], edi
test eax, eax
jle 0x10038ef8
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
nop dword [eax + eax]
lea eax, [esp + 0x90]
add eax, ecx
mov dword [esp + 0x70], eax
mov esi, dword [eax]
cmp esi, dword [esp + 0x34]
jle 0x10038e23
jmp 0x10038d5e
push 0x102af5bc
push 0x10532
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10022360
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x100399b0
lea eax, [esp + 0x90]
add eax, ecx
cmp edx, edi
jl 0x10038d84
inc edx
mov dword [esp + 0x44], edx
cmp edx, 5
jg 0x10039074
mov dword [esp + ecx + 0x94], 0
mov esi, dword [eax]
mov dword [esp + ecx + 0xa8], ebx
mov edi, dword [esp + ecx + 0xa4]
mov edx, dword [esp + 0x5c]
lea ecx, [edi - 1]
mov dword [esp + 0x78], ecx
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x10038db9
mov edx, ecx
lea ecx, [esp + 0x50]
call fcn.10037e10
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
movzx eax, ax
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x70]
movzx eax, ax
add eax, 2
sub esi, eax
cmp byte [esp + 0x13], 0
mov dword [ecx], esi
jne 0x10038dfb
cmp edi, ebx
jge 0x10038df9
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x10038df1
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.10037e10
mov ebx, dword [esp + 0x50]
movzx eax, ax
mov dword [esp + 0x30], ebx
movzx eax, ax
add eax, 2
jmp 0x10038dfb
xor eax, eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
add dword [esp + ecx + 0x94], eax
mov eax, dword [esp + 0x78]
mov dword [esp + ecx + 0xa4], eax
cmp esi, dword [esp + 0x34]
jg 0x10038d55
mov edi, dword [esp + ecx + 0xa4]
cmp edi, ebx
jge 0x10038ecd
mov edx, dword [esp + 0x5c]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x10038e5d
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.10037e10
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
movzx eax, ax
mov dword [esp + 0x30], ebx
movzx eax, ax
add eax, 2
add esi, eax
cmp esi, dword [esp + 0x34]
jg 0x10039049
inc edi
mov dword [esp + ecx + 0x90], esi
cmp byte [esp + 0x13], 0
mov dword [esp + ecx + 0xa4], edi
jne 0x10038eba
cmp edi, ebx
jge 0x10038eb8
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x10038eac
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.10037e10
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
movzx eax, ax
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x24]
movzx eax, ax
add eax, 2
jmp 0x10038eba
xor eax, eax
sub dword [esp + ecx + 0x94], eax
cmp edi, ebx
jl 0x10038e36
mov edx, dword [esp + 0x14]
mov edi, edx
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x1c]
add ecx, 4
inc eax
mov dword [esp + 0x24], ecx
inc edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
cmp eax, edi
jl 0x10038d10
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], edx
lea eax, [edi - 1]
mov ecx, eax
mov dword [esp + 0x24], eax
test ecx, ecx
jle 0x10039125
nop dword [eax]
shl ecx, 2
lea eax, [esp + 0x90]
add eax, ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], eax
mov edi, dword [eax]
lea eax, [esp + ecx + 0x8c]
mov dword [esp + 0x7c], eax
mov eax, dword [eax]
mov dword [esp + 0x30], eax
lea eax, [esp + 0xa4]
sub eax, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
mov ebx, dword [eax + ecx]
mov ecx, dword [esp + 0x5c]
lea esi, [ebx - 1]
mov edx, esi
sub edx, dword [esp + 0x88]
inc edx
lea eax, [edx + edx]
cmp word [eax + ecx], 0
mov dword [esp + 0x1c], eax
jne 0x10038f84
lea ecx, [esp + 0x50]
call fcn.10037e10
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esp + 0x5c]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x78], esi
jne 0x10038fa5
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.10037e10
mov ecx, dword [esp + 0x5c]
test edi, edi
je 0x10038ff4
cmp dword [ebp + 0x10], 0
mov edx, ebx
jne 0x100390d0
movzx eax, word [ecx + esi*2]
mov edi, 0
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
dec ebx
sub ecx, eax
cmp dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x5c]
mov eax, 2
cmove eax, edi
mov edi, dword [esp + 0x28]
sub ecx, eax
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x100390d0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x14]
movzx eax, word [edx + ecx]
sub edx, 2
add eax, 2
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x8c]
add edi, eax
movzx eax, word [ecx + esi*2]
mov ecx, 0xfffffffe
sub ecx, eax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov dword [ebx + ecx], esi
sub esi, 1
mov ebx, dword [esp + 0x78]
jns 0x10038f80
jmp 0x100390d4
cmp edi, ebx
jge 0x10038ec9
cmp dword [esp + 0x1c], 0
jle 0x10039061
mov eax, dword [esp + ecx + 0xa0]
jmp 0x10039063
xor eax, eax
cmp edi, eax
jle 0x100390a2
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
jmp 0x10038ed3
push 0x102af5bc
push 0x1059f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10022360
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x100399b4
push 0x102af5bc
push 0x105c0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10022360
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x100399b4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x6c]
mov dword [ecx], edi
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jle 0x100390fa
mov ebx, dword [esp + 0x14]
lea eax, [ecx*4]
mov eax, dword [eax + ebx - 4]
jmp 0x100390fc
xor eax, eax
cmp edx, eax
jle 0x1003918b
dec ecx
mov dword [esp + 0x24], ecx
test ecx, ecx
jg 0x10038f10
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x10c]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x1c], eax
lea eax, [esi + 1]
test edi, edi
jle 0x1003929e
cmp esi, dword [esp + 0x48]
jge 0x100391fd
mov eax, dword [esp + esi*4 + 0x10c]
mov dword [esp + esi*4 + 0x118], eax
mov dword [esp + esi*4 + 0x10c], 0
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x100391bd
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x100391bd
cmp dword [edx + 0x68], 0
je 0x100391b9
call fcn.1002c8e0
jmp 0x100391e2
push 0x102af5bc
push 0x105ea
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10022360
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x100399b4
xor edi, edi
jmp 0x100391e4
mov edi, dword [edx + 0x2c]
mov dword [esp + 0x20], edi
test edi, edi
jne 0x100391e8
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa0]
jbe 0x100391dd
call fcn.1002e230
jmp 0x100391e2
call fcn.1002e160
mov edi, eax
mov dword [esp + 0x20], edi
inc dword [esp + 0x18]
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x100399ac
jmp 0x1003928e
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x28]
mov ecx, dword [esp + 0x4c]
cmovne ecx, eax
lea eax, [esp + 0x40]
push 0
push ecx
mov ecx, dword [esp + 0x44]
push eax
call fcn.10036c30
mov edi, eax
add esp, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x100399ac
mov edi, dword [esp + 0x28]
mov ecx, edi
mov edx, dword [esp + 0x1c]
call fcn.10032ec0
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x18]
mov dword [esp + esi*4 + 0x118], edi
mov dword [esp + esi*4 + 0xb8], ebx
cmp byte [ecx + 0x11], 0
je 0x10039286
mov edx, dword [edi + 4]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push 5
call fcn.10031d00
mov edi, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x20], edi
test edi, edi
jne 0x100399ac
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], edx
inc esi
mov eax, 1
cmp esi, dword [esp + 0x44]
jl 0x10039143
mov esi, dword [esp + 0x18]
xor ecx, ecx
test esi, esi
jle 0x100392f7
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0x118]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0xf0], edx
mov dword [esp + ecx*4 + 0xd8], edx
mov ax, word [eax + 0x1c]
mov word [esp + ecx*2 + 0xcc], ax
xor eax, eax
test ecx, ecx
jle 0x100392f2
nop dword [eax]
cmp dword [esp + eax*4 + 0xf0], edx
je 0x10039485
inc eax
cmp eax, ecx
jl 0x100392e0
inc ecx
cmp ecx, esi
jl 0x100392b0
xor edi, edi
mov dword [esp + 0x28], edi
test esi, esi
jle 0x100393c5
mov ebx, dword [esp + 0x3c]
nop dword [eax]
mov edx, 1
xor esi, esi
cmp dword [esp + 0x18], edx
jle 0x1003934e
mov edi, dword [esp + 0x18]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0xd8]
mov ecx, edx
cmp eax, dword [esp + esi*4 + 0xd8]
cmovae ecx, esi
inc edx
mov esi, ecx
cmp edx, edi
jl 0x10039330
mov edi, dword [esp + 0x28]
mov eax, dword [esp + esi*4 + 0xd8]
mov dword [esp + 0x7c], eax
mov dword [esp + esi*4 + 0xd8], 0xffffffff
cmp esi, edi
je 0x100393b0
jle 0x10039385
mov eax, dword [esp + esi*4 + 0x118]
mov edx, dword [ebx + 0x2c]
inc edx
add edx, esi
mov ecx, dword [eax + 0x48]
xor eax, eax
mov word [ecx + 0x1c], ax
call fcn.10028960
mov eax, dword [esp + edi*4 + 0x118]
mov ecx, dword [eax + 0x48]
mov ax, word [esp + esi*2 + 0xcc]
mov esi, dword [esp + 0x7c]
mov edx, esi
mov word [ecx + 0x1c], ax
call fcn.10028960
mov eax, dword [esp + edi*4 + 0x118]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x28], edi
cmp edi, esi
jl 0x10039310
mov ebx, dword [esp + 0x30]
test byte [esp + 0x1c], 8
mov eax, dword [esp + esi*4 + 0x114]
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x1003940e
mov ecx, dword [esp + 0x48]
cmp ecx, esi
je 0x1003940e
lea edx, [esp + 0x10c]
lea eax, [esp + 0x118]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + esi*4 + 0x114]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x3c]
cmp byte [edx + 0x11], 0
je 0x1003960b
mov esi, dword [esp + 0x118]
xor edi, edi
mov dword [esp + 0x64], 0
mov eax, dword [esi + 0x38]
movzx ecx, word [esi + 0x16]
mov dword [esp + 0x28], eax
movzx eax, byte [esi + 0xc]
add ecx, eax
mov eax, dword [edx + 0x24]
xor edx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x24], edx
test ebx, ebx
jle 0x10039612
xor eax, eax
mov dword [esp + 0x4c], eax
nop dword [eax]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + edi*4]
mov dword [esp + 0x40], ecx
cmp edi, dword [esp + 0x1c]
jne 0x100394e4
inc edx
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x18]
jge 0x100394ad
mov edx, dword [esp + edx*4 + 0x118]
jmp 0x100394b4
push 0x102af5bc
push 0x10634
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10022360
add esp, 0x14
mov edi, 0xb
jmp 0x100399ac
mov edx, dword [esp + edx*4 + 0x10c]
movzx eax, byte [edx + 0xc]
movzx ecx, word [edx + 0x16]
add ecx, eax
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
cmp edi, dword [esp + eax + 0xa4]
jne 0x1003950f
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x64], eax
shl eax, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x4c], eax
mov esi, dword [esp + eax + 0x118]
je 0x100395fe
cmp edx, dword [esp + 0x18]
jge 0x10039535
mov eax, dword [esi + 4]
cmp eax, dword [esp + edx*4 + 0xf0]
jne 0x10039535
mov eax, dword [esp + 0x28]
cmp ecx, eax
jb 0x10039535
add eax, dword [esp + 0x7c]
cmp ecx, eax
jb 0x100395fa
cmp word [esp + 0x60], 0
jne 0x1003955f
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
push eax
push dword [esi + 4]
bswap edx
push 5
call fcn.10031d00
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x10039586
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.10037e10
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x50]
movzx eax, ax
cmp ax, word [esi + 0x10]
jbe 0x100395ee
cmp dword [esp + 0x20], 0
jne 0x100399a8
lea eax, [esp + 0xd8]
push eax
push dword [esp + 0x44]
mov eax, dword [esi + 0x50]
push esi
call eax
movzx eax, word [esp + 0xf4]
add esp, 0xc
cmp eax, dword [esp + 0xe4]
jae 0x100395fa
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x2c]
mov ecx, dword [esi + 0x34]
push eax
movzx eax, word [esp + 0xee]
push dword [esi + 4]
push 3
mov edx, dword [eax + edx - 4]
bswap edx
call fcn.10031d00
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x100395f2
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x100399a8
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
inc edi
cmp edi, ebx
jl 0x10039460
mov esi, dword [esp + 0x118]
mov ecx, dword [esp + 0x18]
xor edi, edi
lea eax, [ecx - 1]
test eax, eax
jle 0x1003979b
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + edi*4 + 0xa4]
mov edx, dword [esp + 0x14]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [esp + edi*4 + 0x118]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x60]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov dword [esp + 0x88], eax
movzx eax, cx
mov ecx, dword [esp + 0x64]
add edx, eax
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
cmp byte [ecx + 8], 0
jne 0x10039691
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x1003974a
cmp byte [esp + 0x13], 0
je 0x1003972b
lea eax, [esp + 0xf0]
push eax
mov eax, dword [esp + 0x80]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x100]
add esp, 0xc
mov eax, dword [esp + 0x40]
mov esi, eax
mov ecx, dword [esp + 0xf0]
test edx, edx
ja 0x10039717
jb 0x100396d6
cmp ecx, 0x7f
ja 0x100396e8
and cl, 0x7f
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x1003974e
test edx, edx
ja 0x10039717
jb 0x100396f6
cmp ecx, 0x3fff
ja 0x10039717
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov edx, dword [esp + 0x40]
or al, 0x80
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x1003974e
push edx
push ecx
lea ecx, [eax + 4]
call fcn.10023a70
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x1003974e
sub esi, 4
cmp word [esp + 0x88], 4
jne 0x1003974e
mov eax, dword [esp + 0x38]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov eax, dword [esp + 0x40]
add dword [esp + 0x74], edx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x68]
push dword [ecx + 4]
mov ecx, dword [esp + 0x40]
push eax
push edx
mov edx, dword [esp + 0x78]
push esi
lea edx, [edx + edi]
call fcn.10037b80
mov eax, dword [esp + 0x40]
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
jne 0x100399a8
mov ecx, dword [esp + 0x18]
inc edi
lea eax, [ecx - 1]
cmp edi, eax
jl 0x10039630
mov esi, dword [esp + 0x118]
mov eax, 1
sub eax, ecx
mov dword [esp + 0x74], eax
cmp eax, ecx
jge 0x10039894
nop
cdq
lea edi, [esp + 0x12c]
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x10039872
cmp dword [esp + 0x74], 0
jge 0x100397e4
mov eax, dword [esp + ecx*4 + 0xb4]
cmp eax, dword [esp + ecx*4 + 0xa0]
jl 0x10039872
test ecx, ecx
jne 0x100397f5
mov edx, dword [esp + 0xa4]
xor ebx, ebx
xor eax, eax
jmp 0x10039824
cmp ecx, dword [esp + 0x48]
jge 0x1003980b
xor ebx, ebx
cmp byte [esp + 0x13], bl
sete bl
add ebx, dword [esp + ecx*4 + 0xb4]
mov edx, dword [esp + ecx*4 + 0xa4]
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + ecx*4 + 0xa0]
sub edx, eax
lea esi, [ecx*4]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + esi + 0x11c]
push edx
push eax
mov edx, ebx
call fcn.10038110
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x100398fa
mov eax, dword [esp + esi + 0x118]
mov cx, word [esp + 0x34]
sub cx, word [esp + esi + 0x90]
mov ebx, dword [esp + 0x50]
mov byte [edi], 1
mov word [eax + 0x14], cx
mov eax, dword [esp + 0x74]
inc eax
mov dword [esp + 0x74], eax
cmp eax, dword [esp + 0x18]
jl 0x100397b0
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x118]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x1003990b
mov ebx, dword [esp + 0x38]
cmp word [ebx + 0x16], 0
jne 0x1003990b
movzx eax, byte [ebx + 9]
cmp ax, word [esi + 0x14]
ja 0x1003990b
or edx, 0xffffffff
mov ecx, esi
call fcn.10032270
mov ecx, dword [esp + 0x118]
mov edx, ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
call fcn.100385a0
mov edi, dword [esp + 0x30]
add esp, 4
test edi, edi
jne 0x1003996a
mov ecx, dword [esp + 0x118]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.10037240
add esp, 4
mov edi, eax
jmp 0x1003996a
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
jmp 0x100399b4
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x10039966
cmp word [esp + 0x60], 0
mov ebx, dword [esp + 0x18]
jne 0x10039960
xor esi, esi
test ebx, ebx
jle 0x10039960
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0x118]
lea edx, [esp + 0x2c]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.10031d00
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x10039930
mov edi, dword [esp + 0x2c]
jmp 0x1003996e
mov edi, dword [esp + 0x20]
jmp 0x1003996e
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov esi, ebx
cmp ebx, eax
jge 0x100399b0
nop dword [eax + eax]
mov ecx, dword [esp + esi*4 + 0x10c]
test edi, edi
jne 0x100399a1
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.10037240
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x10039980
jmp 0x100399b0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, eax
call fcn.1001fd50
mov eax, dword [esp + 0x48]
xor esi, esi
test eax, eax
jle 0x100399e1
mov ecx, dword [esp + esi*4 + 0x10c]
test ecx, ecx
je 0x100399dc
mov ecx, dword [ecx + 0x48]
call fcn.1002dc60
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x100399c5
xor esi, esi
test ebx, ebx
jle 0x10039a08
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0x118]
test ecx, ecx
je 0x10039a03
mov ecx, dword [ecx + 0x48]
call fcn.1002dc60
inc esi
cmp esi, ebx
jl 0x100399f0
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101e95a5
mov esp, ebp
pop ebp
ret