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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x10140004]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x94]
push edi
xor edi, edi
mov dword [esp + 0x58], edx
push 0x40
mov ebx, ecx
mov dword [esp + 0x78], esi
push edi
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x158], edi
mov byte [esp + 0x15c], 0
call fcn.10106200
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x38], eax
test esi, esi
jne 0x10038285
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
lea esi, [ecx + edx]
cmp esi, 2
jae 0x1003829b
mov dword [esp + 0x48], edi
jmp 0x100382ca
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x100382a9
mov dword [esp + 0x48], edi
jmp 0x100382c0
cmp eax, esi
jne 0x100382bb
mov eax, dword [ebp + 0x10]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x48], esi
jmp 0x100382c3
dec eax
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edx
jne 0x100382eb
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x100382ff
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x5c], ecx
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x30], eax
mov ebx, eax
mov dword [esp + 0x6c], eax
test edi, edi
jne 0x100383df
mov eax, dword [esp + 0x38]
cmp ebx, dword [eax + 0x30]
jbe 0x1003834d
push 0x10131d5c
push 0x1142d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov edi, 0xb
jmp 0x100383d7
mov eax, dword [eax]
lea ecx, [esp + 0x54]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xdc]
call eax
mov edi, eax
add esp, 0x10
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x100383db
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
mov dword [esp + esi*4 + 0xdc], eax
cmp byte [eax], 0
jne 0x100383d5
mov ecx, dword [edx + 8]
cmp ebx, dword [ecx + 4]
je 0x100383af
mov eax, dword [edx + 4]
cmp ebx, 1
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 4], ebx
mov byte [ecx + 9], al
mov eax, dword [esp + esi*4 + 0xdc]
mov ecx, eax
call fcn.100324a0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x100383d5
mov ecx, dword [esp + esi*4 + 0xdc]
test ecx, ecx
je 0x100383db
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
jmp 0x100383db
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
lea ebx, [esi*4]
test edi, edi
jne 0x10039695
mov ecx, dword [esp + ebx + 0xdc]
cmp dword [ecx + 0x14], edi
jge 0x10038411
call fcn.10032270
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
test edi, edi
jne 0x10038549
mov ecx, dword [esp + ebx + 0xdc]
mov eax, dword [esp + 0x10]
add eax, 4
movzx ecx, word [ecx + 0x18]
add eax, ecx
mov ecx, esi
dec esi
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x10038568
mov ebx, dword [esp + 0x34]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x10038485
mov eax, dword [esp + 0x48]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x10038485
mov eax, dword [ebx + 0x24]
push eax
mov dword [esp + esi*4 + 0x7c], eax
mov ebx, dword [eax]
mov eax, dword [esp + 0x38]
bswap ebx
push eax
mov dword [esp + 0x38], ebx
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x74], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [esp + esi*4 + 0xfc], eax
mov eax, dword [esp + 0x34]
mov byte [eax + 0xc], 0
jmp 0x10038314
mov ecx, dword [esp + 0x48]
movzx eax, dl
sub ecx, eax
mov eax, dword [ebx + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx edi, cx
and edi, eax
add edi, dword [ebx + 0x38]
push edi
mov dword [esp + esi*4 + 0x7c], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x34], eax
mov ebx, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], edx
mov dword [esp + esi*4 + 0xfc], edx
test byte [eax + 0x18], 0xc
je 0x1003851c
mov eax, dword [esp + 0x34]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
mov edx, dword [esp + 0x38]
cmp eax, dword [edx + 0x28]
mov edx, dword [esp + 0x2c]
jg 0x1003851c
mov eax, dword [esp + 0x74]
push edx
add eax, ecx
push edi
push eax
call fcn.10107690
mov eax, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x2c]
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x74]
mov dword [esp + esi*4 + 0x78], edi
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
push edx
mov edx, dword [esp + 0x50]
mov ecx, edi
movzx eax, byte [edi + 0xc]
sub edx, eax
add edx, esi
call fcn.100373c0
mov edi, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x1c], edi
jmp 0x10038314
lea eax, [esi*4]
push eax
lea eax, [esp + 0xe0]
push 0
push eax
call fcn.10106200
add esp, 0xc
jmp 0x100396b1
lea esi, [eax + 3]
mov eax, dword [esp + 0x38]
and esi, 0xfffffffc
mov eax, dword [eax + 0x24]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
cdq
push edx
push eax
call fcn.1001cb50
add esp, 8
mov dword [esp + 0xa0], eax
test eax, eax
jne 0x10038599
lea edi, [eax + 7]
jmp 0x100396c5
mov ecx, dword [esp + 0xdc]
lea eax, [eax + esi*4]
mov dword [esp + 0xa4], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x28], eax
mov dword [esp + 0x9c], ecx
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x64], eax
mov al, byte [ecx + 2]
mov byte [esp + 0xf], al
movzx eax, al
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x4c], eax
jle 0x10038806
mov ebx, dword [esp + 0x98]
nop dword [eax]
shl eax, 2
mov dword [esp + 0x20], eax
mov edi, dword [esp + eax + 0xdc]
mov dword [esp + 0x44], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x10], eax
add esi, edx
movzx eax, word [edi + 0x1a]
mov ecx, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1003899a
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x10]
add eax, eax
push eax
mov eax, dword [esp + 0xa8]
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.10106200
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x100386ed
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x10], edx
jb 0x10038972
test edx, edx
je 0x100386ba
mov edi, dword [esp + 0x54]
nop
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x70]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0xa0]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x10038680
mov edi, dword [esp + 0x44]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x2c], esi
mov al, byte [edi + 0xc]
xor edx, edx
test al, al
je 0x100386ed
mov esi, dword [esp + 0xa0]
lea ecx, [edi + 0x24]
nop word [eax + 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 0x100386d0
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x98], ebx
movzx eax, word [edi + 0x12]
mov edx, dword [esp + 0x54]
add eax, edx
movzx ecx, word [edi + 0x18]
lea eax, [eax + ecx*2]
mov dword [esp + 0x70], eax
cmp esi, eax
jae 0x1003873a
mov edi, eax
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x68]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0xa0]
add ecx, edx
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edi
jb 0x10038708
mov edi, dword [esp + 0x44]
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esp + ecx + 0x124], ebx
cmp eax, dword [esp + 0x3c]
jge 0x100387f7
cmp byte [esp + 0xf], 0
jne 0x100387f7
movzx eax, word [esp + ecx + 0xfc]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0x28]
push eax
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x44]
add esi, ecx
add ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], ecx
push dword [esp + eax + 0x7c]
push esi
call fcn.10107690
mov eax, dword [esp + 0x70]
add esp, 0xc
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
movzx eax, ax
add eax, esi
mov dword [ecx + ebx*4], eax
mov eax, dword [esp + 0x64]
sub word [edx + ebx*2], ax
cmp byte [edi + 8], 0
jne 0x100387c8
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x100387eb
cmp word [edx + ebx*2], 4
jae 0x100387eb
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], 0
inc eax
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x100387d7
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x98], ebx
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x4c]
jl 0x100385f0
mov eax, dword [esp + 0x64]
xor ecx, ecx
movzx edi, ax
xor ebx, ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add edi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], edi
test eax, eax
jle 0x1003891a
nop word [eax + eax]
mov esi, dword [esp + ebx*4 + 0xdc]
mov edx, dword [esp + ebx*4 + 0x124]
mov dword [esp + 0x68], edx
mov eax, dword [esi + 0x3c]
mov dword [esp + ecx*4 + 0xa8], eax
mov dword [esp + ecx*4 + 0xc0], edx
test ecx, ecx
je 0x10038875
cmp edx, dword [esp + ecx*4 + 0xbc]
jne 0x10038875
dec ecx
mov dword [esp + 0x14], ecx
cmp byte [esp + 0xf], 0
jne 0x10038899
mov eax, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x3c]
mov dword [esp + ecx*4 + 0xa8], eax
lea eax, [edx + 1]
mov dword [esp + ecx*4 + 0xc0], eax
sub edi, dword [esi + 0x14]
lea eax, [esp + 0xfc]
cmp byte [esi + 0xc], 0
lea eax, [eax + ebx*4]
mov dword [esp + 0x3c], eax
mov dword [eax], edi
mov dword [esp + 0x10], 0
jbe 0x100388f9
lea ebx, [esi + 0x24]
nop dword [eax]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x18]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x18], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x100388c0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x2c]
mov dword [eax], edi
mov eax, dword [esp + 0x4c]
inc ecx
mov edi, dword [esp + 0x40]
mov dword [esp + ebx*4 + 0x110], edx
inc ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ecx
cmp ebx, eax
jl 0x10038840
mov ebx, dword [esp + 0x98]
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], 0
test eax, eax
jle 0x10038b66
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
nop word [eax + eax]
lea eax, [esp + 0xfc]
add eax, ecx
mov dword [esp + 0x3c], eax
mov edi, dword [eax]
cmp edi, dword [esp + 0x40]
jle 0x10038a93
mov ebx, dword [esp + 0x98]
jmp 0x100389cb
push 0x10131d5c
push 0x12ada
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov edi, 0xb
jmp 0x100396b1
push 0x10131d5c
push 0x12ac2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov edi, 0xb
jmp 0x100396b1
lea eax, [esp + 0xfc]
add eax, ecx
cmp edx, esi
jl 0x100389f1
inc edx
mov dword [esp + 0x28], edx
cmp edx, 5
jg 0x10038cab
mov dword [esp + ecx + 0x100], 0
mov edi, dword [eax]
mov dword [esp + ecx + 0x114], ebx
mov esi, dword [esp + ecx + 0x110]
mov edx, dword [esp + 0xa4]
lea ecx, [esi - 1]
mov dword [esp + 0x68], ecx
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x10038a27
mov edx, ecx
lea ecx, [esp + 0x98]
call fcn.100377c0
mov edx, dword [esp + 0xa4]
movzx eax, ax
mov ecx, dword [esp + 0x3c]
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0xf], 0
mov dword [ecx], edi
jne 0x10038a64
cmp esi, ebx
jge 0x10038a62
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10038a5a
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.100377c0
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x10038a64
xor eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
add dword [esp + ecx + 0x100], eax
mov eax, dword [esp + 0x68]
mov dword [esp + ecx + 0x110], eax
cmp edi, dword [esp + 0x40]
jg 0x100389c2
mov ebx, dword [esp + 0x98]
mov esi, dword [esp + ecx + 0x110]
cmp esi, ebx
jge 0x10038b43
mov edx, dword [esp + 0xa4]
nop dword [eax]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10038ad5
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.100377c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xa4]
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x40]
jg 0x10038c80
inc esi
mov dword [esp + ecx + 0xfc], edi
cmp byte [esp + 0xf], 0
mov dword [esp + ecx + 0x110], esi
jne 0x10038b30
cmp esi, ebx
jge 0x10038b2e
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10038b22
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.100377c0
mov edx, dword [esp + 0xa4]
movzx eax, ax
mov ecx, dword [esp + 0x14]
movzx eax, ax
add eax, 2
jmp 0x10038b30
xor eax, eax
sub dword [esp + ecx + 0x100], eax
cmp esi, ebx
jl 0x10038ab0
mov edx, dword [esp + 0x20]
mov esi, edx
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x44]
add ecx, 4
inc eax
mov dword [esp + 0x14], ecx
inc edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], edx
cmp eax, esi
jl 0x10038950
lea eax, [esi - 1]
mov ecx, eax
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x10038d42
nop word [eax + eax]
shl ecx, 2
mov dword [esp + 0x54], ecx
mov eax, dword [esp + ecx + 0xfc]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + ecx + 0xf8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x110]
sub eax, 4
mov dword [esp + 0x2c], eax
mov esi, dword [eax + ecx]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x14], esi
dec esi
mov edx, esi
sub edx, dword [esp + 0x50]
inc edx
cmp word [eax + edx*2], 0
lea eax, [eax + edx*2]
mov dword [esp + 0x44], eax
jne 0x10038bdb
lea ecx, [esp + 0x98]
call fcn.100377c0
mov ebx, dword [esp + 0x3c]
nop
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x10038c01
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.100377c0
movzx eax, ax
movzx edi, ax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], edi
movzx edx, word [eax]
test ebx, ebx
je 0x10038c48
cmp dword [ebp + 0x10], 0
jne 0x10038cfb
mov ecx, dword [esp + 0x28]
add edx, ebx
dec ecx
mov eax, 2
cmp dword [esp + 0x10], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x20]
sub ecx, eax
lea eax, [edx + 2]
sub ecx, edi
cmp eax, ecx
jg 0x10038cfb
mov ecx, dword [esp + 0x20]
lea ebx, [edx + 2]
mov edx, dword [esp + 0x2c]
mov eax, 0xfffffffe
sub dword [esp + 0x44], 2
sub eax, edi
add ecx, eax
mov edi, esi
sub esi, 1
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edi
mov dword [edx + eax], edi
jns 0x10038be0
jmp 0x10038d0b
cmp esi, ebx
jge 0x10038b3f
cmp dword [esp + 0x44], 0
jle 0x10038c98
mov eax, dword [esp + ecx + 0x10c]
jmp 0x10038c9a
xor eax, eax
cmp esi, eax
jle 0x10038cd3
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
jmp 0x10038b49
push 0x10131d5c
push 0x12b3f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov edi, 0xb
jmp 0x100396b1
push 0x10131d5c
push 0x12b60
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov edi, 0xb
jmp 0x100396b1
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [esp + eax + 0xf8], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + eax + 0xfc], ebx
mov ebx, dword [esp + 0x98]
cmp ecx, 1
jbe 0x10038d2f
mov eax, dword [eax + edx - 4]
jmp 0x10038d31
xor eax, eax
cmp edi, eax
jle 0x10038dae
dec ecx
mov dword [esp + 0x10], ecx
test ecx, ecx
jg 0x10038b80
mov eax, dword [esp + 0xdc]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x2c], eax
lea eax, [esi + 1]
cmp dword [esp + 0x28], esi
jle 0x10038f0f
cmp esi, dword [esp + 0x4c]
jge 0x10038e3d
mov eax, dword [esp + esi*4 + 0xdc]
mov dword [esp + esi*4 + 0xe8], eax
mov dword [esp + esi*4 + 0xdc], 0
mov dword [esp + 0x50], eax
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x10], eax
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x10038dda
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x10038dda
cmp dword [edx + 0x68], 0
je 0x10038dd6
call fcn.1002b380
jmp 0x10038dff
push 0x10131d5c
push 0x12b8c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov edi, 0xb
jmp 0x100396b1
xor edi, edi
jmp 0x10038e01
mov edi, dword [edx + 0x2c]
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x10038e05
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x10038dfa
call fcn.1002cdd0
jmp 0x10038dff
call fcn.1002cd40
mov edi, eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x58]
xor ecx, ecx
sub eax, dword [esp + 0x48]
inc dword [esp + 0x18]
cmp esi, eax
mov eax, dword [esp + 0x50]
sete cl
mov dword [esp + 0x24], edi
inc ecx
mov eax, dword [eax + 0x48]
movsx eax, word [eax + 0x1e]
cmp eax, ecx
jne 0x10038edf
test edi, edi
jne 0x100396b1
jmp 0x10038ece
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0x30]
cmovne ecx, eax
lea eax, [esp + 0x6c]
push 0
push ecx
mov ecx, dword [esp + 0x40]
push eax
call fcn.10036340
mov edi, eax
add esp, 0xc
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
test edi, edi
jne 0x100396b1
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x2c]
call fcn.100325b0
mov ecx, dword [esp + 0x38]
inc dword [esp + 0x18]
mov dword [esp + esi*4 + 0xe8], edi
mov dword [esp + esi*4 + 0x124], ebx
cmp byte [ecx + 0x11], 0
je 0x10038ec6
mov edx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
push dword [eax + 4]
push 5
call fcn.100310c0
mov edi, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x100396b1
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
inc esi
cmp esi, dword [esp + 0x28]
jge 0x10038f0f
mov eax, 1
jmp 0x10038d62
test edi, edi
jne 0x100396b1
push 0x10131d5c
push 0x12bad
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov edi, 0xb
jmp 0x100396b1
mov edx, dword [esp + 0x18]
xor ecx, ecx
test edx, edx
jle 0x10038f36
nop dword [eax]
mov eax, dword [esp + ecx*4 + 0xe8]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x138], eax
inc ecx
cmp ecx, edx
jl 0x10038f20
lea eax, [edx - 1]
xor edi, edi
mov dword [esp + 0x30], edi
test eax, eax
jle 0x1003903b
lea eax, [edi + 1]
mov ebx, edi
mov dword [esp + 0x10], eax
mov esi, eax
cmp eax, edx
jge 0x1003902a
mov edi, dword [esp + 0x18]
nop
mov eax, dword [esp + esi*4 + 0xe8]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xe8]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, edi
jl 0x10038f60
mov edi, dword [esp + 0x30]
mov dword [esp + 0x58], ebx
cmp ebx, edi
je 0x10039022
mov ecx, dword [esp + edi*4 + 0xe8]
xor edx, edx
mov edi, dword [esp + 0x38]
mov esi, dword [esp + ebx*4 + 0xe8]
mov eax, dword [ecx + 4]
mov dword [esp + 0x50], eax
mov eax, dword [0x10142ac0]
div dword [edi + 0x24]
mov ecx, dword [ecx + 0x48]
mov ebx, dword [esi + 4]
movzx edi, word [ecx + 0x1c]
lea edx, [eax + 1]
mov eax, dword [esi + 0x48]
movzx esi, word [eax + 0x1c]
mov word [ecx + 0x1c], si
call fcn.10027220
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + ecx*4 + 0xe8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], di
mov edi, dword [esp + 0x50]
mov edx, edi
call fcn.10027220
mov ecx, dword [esp + 0x30]
mov edx, ebx
mov eax, dword [esp + ecx*4 + 0xe8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], si
call fcn.10027220
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + ecx*4 + 0xe8]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x58]
mov eax, dword [esp + eax*4 + 0xe8]
mov dword [eax + 4], edi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edi, eax
lea eax, [edx - 1]
mov dword [esp + 0x30], edi
cmp edi, eax
jl 0x10038f47
test byte [esp + 0x2c], 8
mov eax, dword [esp + edx*4 + 0xe4]
mov ecx, dword [esp + 0x5c]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x10039088
mov ecx, dword [esp + 0x4c]
cmp ecx, edx
je 0x10039088
lea eax, [esp + 0xe8]
lea esi, [esp + 0xdc]
cmovge eax, esi
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + eax*4 + 0xe4]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x98]
cmp byte [eax + 0x11], 0
je 0x1003928a
mov esi, dword [esp + 0xe8]
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x14], ecx
movzx edx, word [esi + 0x18]
movzx eax, byte [esi + 0xc]
add edx, eax
mov dword [esp + 0x10], edx
test ebx, ebx
jle 0x10039291
mov dword [esp + 0x58], ecx
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x20], eax
cmp ecx, edx
jne 0x1003912d
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
mov dword [esp + 0x50], eax
inc edi
cmp edi, ebx
jge 0x10039103
mov esi, dword [esp + edi*4 + 0xe8]
jmp 0x1003910a
mov esi, dword [esp + edi*4 + 0xdc]
movzx eax, word [esi + 0x18]
add eax, dword [esp + 0x50]
movzx ecx, byte [esi + 0xc]
add ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x14]
cmp ecx, edx
je 0x100390f5
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x58]
cmp ecx, dword [esp + eax + 0x110]
jne 0x10039162
mov eax, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x5c], eax
shl eax, 2
cmp byte [esp + 0xf], 0
mov dword [esp + 0x58], eax
mov eax, dword [esp + eax + 0xe8]
mov dword [esp + 0x28], eax
je 0x1003927d
jmp 0x10039166
mov eax, dword [esp + 0x28]
cmp edi, dword [esp + 0x18]
jge 0x1003918c
mov eax, dword [eax + 4]
cmp eax, dword [esp + edi*4 + 0x138]
mov eax, dword [esp + 0x20]
jne 0x10039190
cmp eax, dword [esi + 0x38]
jb 0x10039190
cmp eax, dword [esi + 0x3c]
jb 0x1003927d
jmp 0x10039190
mov eax, dword [esp + 0x20]
cmp word [esp + 0x64], 0
jne 0x100391c2
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x3c]
push dword [edx + 4]
mov edx, dword [eax]
push 5
bswap edx
call fcn.100310c0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + ecx*2]
test ax, ax
jne 0x100391e3
mov edx, ecx
lea ecx, [esp + 0x98]
call fcn.100377c0
movzx eax, ax
mov ecx, dword [esp + 0x28]
cmp ax, word [ecx + 0x10]
jbe 0x10039269
cmp dword [esp + 0x1c], 0
jne 0x100396ad
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [ecx + 0x50]
push ecx
call eax
movzx eax, word [esp + 0x9c]
add esp, 0xc
cmp eax, dword [esp + 0x8c]
jae 0x10039275
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x20]
cmp edx, ecx
jb 0x10039234
add eax, ecx
cmp edx, eax
jb 0x1003930a
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
movzx eax, word [esp + 0x96]
push dword [edx + 4]
mov edx, dword [eax + ecx - 4]
mov eax, dword [esp + 0x30]
push 3
bswap edx
mov ecx, dword [eax + 0x34]
call fcn.100310c0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x1003926d
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x100396ad
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, ebx
jl 0x100390d2
mov esi, dword [esp + 0xe8]
mov ecx, dword [esp + 0x18]
xor eax, eax
dec ecx
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x100394a1
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esp + eax*4 + 0xe8]
mov esi, dword [esp + eax*4 + 0x110]
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x74]
mov edi, dword [eax + esi*4]
add ecx, dword [esp + 0x60]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x5c]
movzx edx, bx
movzx eax, word [eax + esi*2]
mov ebx, dword [esp + 0x98]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x10039332
mov ecx, dword [ecx + 0x38]
mov eax, dword [edi]
mov dword [ecx + 8], eax
jmp 0x100393f8
push 0x10131d5c
push 0x11106
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov edi, 0xb
jmp 0x100396b1
cmp byte [esp + 0xf], 0
je 0x100393df
lea eax, [esp + 0x80]
dec esi
push eax
mov eax, dword [esp + 0xa4]
push dword [eax + esi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x90]
add esp, 0xc
mov eax, dword [esp + 0x30]
mov edi, eax
mov ecx, dword [esp + 0x80]
test edx, edx
ja 0x100393c5
jb 0x10039378
cmp ecx, 0x7f
ja 0x10039390
and cl, 0x7f
mov dword [esp + 0x30], 0
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
jmp 0x100393f8
test edx, edx
ja 0x100393c5
jb 0x1003939e
cmp ecx, 0x3fff
ja 0x100393c5
mov eax, ecx
shrd eax, edx, 7
mov edx, dword [esp + 0x30]
or al, 0x80
mov dword [esp + 0x30], 0
and cl, 0x7f
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
jmp 0x100393f8
push edx
push ecx
lea ecx, [eax + 4]
call fcn.100219f0
add esp, 8
mov dword [esp + 0x30], 0
lea edx, [eax + 4]
jmp 0x100393f8
sub edi, 4
cmp eax, 4
jne 0x100393f8
mov eax, dword [esp + 0x34]
push edi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x60], edx
xor eax, eax
cmp dword [esp + 0xc0], esi
jg 0x10039416
cmp eax, 6
jge 0x10039416
inc eax
cmp dword [esp + eax*4 + 0xc0], esi
jle 0x10039407
mov ecx, dword [esp + eax*4 + 0xa8]
cmp ecx, edi
jb 0x10039428
lea eax, [edx + edi]
cmp ecx, eax
jb 0x10039479
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
push dword [ecx + 4]
mov ecx, dword [esp + 0x38]
push dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x54]
push edi
lea edx, [edx + eax]
call fcn.100374e0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x24], edi
test edi, edi
jne 0x100396b1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
dec ecx
mov dword [esp + 0x10], eax
cmp eax, ecx
jl 0x100392b0
mov esi, dword [esp + 0xe8]
jmp 0x100394a5
push 0x10131d5c
push 0x12c75
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1001fea0
add esp, 0x14
mov edi, 0xb
jmp 0x100396b1
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, 1
sub eax, ecx
mov dword [esp + 0x60], eax
cmp eax, ecx
jge 0x100395a6
nop dword [eax]
cdq
mov ecx, eax
lea eax, [esp + 0x14c]
xor ecx, edx
sub ecx, edx
add eax, ecx
mov dword [esp + 0x50], eax
cmp byte [eax], 0
jne 0x1003958a
cmp dword [esp + 0x60], 0
jge 0x100394f8
mov eax, dword [esp + ecx*4 + 0x120]
cmp eax, dword [esp + ecx*4 + 0x10c]
jl 0x1003958a
test ecx, ecx
jne 0x10039509
mov esi, dword [esp + 0x110]
xor edx, edx
xor eax, eax
jmp 0x1003953c
cmp ecx, dword [esp + 0x4c]
jge 0x10039521
xor edx, edx
cmp byte [esp + 0xf], dl
sete dl
add edx, dword [esp + ecx*4 + 0x120]
jmp 0x10039523
mov edx, ebx
mov esi, dword [esp + ecx*4 + 0x110]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
add eax, dword [esp + ecx*4 + 0x10c]
sub esi, eax
shl ecx, 2
lea edi, [esp + 0x98]
push edi
mov dword [esp + 0x40], ecx
push esi
mov ecx, dword [esp + ecx + 0xf0]
push eax
call fcn.10037c20
mov edi, eax
add esp, 0xc
mov dword [esp + 0x24], edi
test edi, edi
jne 0x100396b1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov byte [eax], 1
mov eax, dword [esp + 0x3c]
sub ecx, dword [esp + eax + 0xfc]
mov eax, dword [esp + eax + 0xe8]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x60], eax
cmp eax, ecx
jl 0x100394c0
mov esi, dword [esp + 0xe8]
cmp dword [ebp + 0xc], 0
je 0x10039647
mov ebx, dword [esp + 0x34]
cmp word [ebx + 0x18], 0
jne 0x10039647
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x10039647
or edx, 0xffffffff
mov ecx, esi
call fcn.10031840
mov ecx, dword [esp + 0xe8]
mov edx, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
call fcn.10038120
mov edi, dword [esp + 0x28]
add esp, 4
test edi, edi
jne 0x10039611
mov ecx, dword [esp + 0xe8]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.100369c0
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c]
mov esi, edx
cmp edx, ebx
jge 0x100396b1
mov ecx, dword [esp + esi*4 + 0xdc]
test edi, edi
jne 0x10039640
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.100369c0
add esp, 4
mov edi, eax
inc esi
cmp esi, ebx
jl 0x10039623
jmp 0x100396b1
mov ebx, dword [esp + 0x38]
cmp byte [ebx + 0x11], 0
je 0x10039611
cmp word [esp + 0x64], 0
jne 0x10039611
xor esi, esi
test ecx, ecx
jle 0x10039611
nop
mov eax, dword [esp + esi*4 + 0xe8]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.100310c0
mov edx, dword [esp + 0x24]
inc esi
add esp, 0xc
cmp esi, edx
jl 0x10039660
mov edi, dword [esp + 0x24]
jmp 0x10039615
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0xe0]
push 0
push eax
call fcn.10106200
add esp, 0xc
jmp 0x100396b1
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x100396c5
push eax
call fcn.1001cd70
add esp, 4
mov ebx, dword [esp + 0x4c]
xor esi, esi
test ebx, ebx
jle 0x100396e8
nop
mov ecx, dword [esp + esi*4 + 0xdc]
test ecx, ecx
je 0x100396e3
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
inc esi
cmp esi, ebx
jl 0x100396d0
mov ebx, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
jle 0x1003970a
mov ecx, dword [esp + esi*4 + 0xe8]
test ecx, ecx
je 0x10039705
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
inc esi
cmp esi, ebx
jl 0x100396f2
mov ecx, dword [esp + 0x154]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret