Function at 0x10038230
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.101062c0
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x38], eax
test esi, esi
jne 0x100382c5
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.101049d1
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
lea esi, [ecx + edx]
cmp esi, 2
jae 0x100382db
mov dword [esp + 0x48], edi
jmp 0x1003830a
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x100382e9
mov dword [esp + 0x48], edi
jmp 0x10038300
cmp eax, esi
jne 0x100382fb
mov eax, dword [ebp + 0x10]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x48], esi
jmp 0x10038303
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 0x1003832b
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x1003833f
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 0x1003841f
mov eax, dword [esp + 0x38]
cmp ebx, dword [eax + 0x30]
jbe 0x1003838d
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 0x10038417
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 0x1003841b
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 8]
mov dword [esp + esi*4 + 0xdc], eax
cmp byte [eax], 0
jne 0x10038415
mov ecx, dword [edx + 8]
cmp ebx, dword [ecx + 4]
je 0x100383ef
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.100324e0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x10038415
mov ecx, dword [esp + esi*4 + 0xdc]
test ecx, ecx
je 0x1003841b
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
jmp 0x1003841b
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
lea ebx, [esi*4]
test edi, edi
jne 0x100396d5
mov ecx, dword [esp + ebx + 0xdc]
cmp dword [ecx + 0x14], edi
jge 0x10038451
call fcn.100322b0
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
test edi, edi
jne 0x10038589
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 0x100385a8
mov ebx, dword [esp + 0x34]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x100384c5
mov eax, dword [esp + 0x48]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x100384c5
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 0x10038354
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 0x1003855c
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 0x1003855c
mov eax, dword [esp + 0x74]
push edx
add eax, ecx
push edi
push eax
call fcn.10107750
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.10037400
mov edi, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x1c], edi
jmp 0x10038354
lea eax, [esi*4]
push eax
lea eax, [esp + 0xe0]
push 0
push eax
call fcn.101062c0
add esp, 0xc
jmp 0x100396f1
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 0x100385d9
lea edi, [eax + 7]
jmp 0x10039705
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 0x10038846
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 0x100389da
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.101062c0
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x1003872d
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x10], edx
jb 0x100389b2
test edx, edx
je 0x100386fa
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 0x100386c0
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 0x1003872d
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 0x10038710
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 0x1003877a
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 0x10038748
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 0x10038837
cmp byte [esp + 0xf], 0
jne 0x10038837
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.10107750
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 0x10038808
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x1003882b
cmp word [edx + ebx*2], 4
jae 0x1003882b
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 0x10038817
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 0x10038630
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 0x1003895a
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 0x100388b5
cmp edx, dword [esp + ecx*4 + 0xbc]
jne 0x100388b5
dec ecx
mov dword [esp + 0x14], ecx
cmp byte [esp + 0xf], 0
jne 0x100388d9
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 0x10038939
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 0x10038900
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 0x10038880
mov ebx, dword [esp + 0x98]
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], 0
test eax, eax
jle 0x10038ba6
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 0x10038ad3
mov ebx, dword [esp + 0x98]
jmp 0x10038a0b
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 0x100396f1
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 0x100396f1
lea eax, [esp + 0xfc]
add eax, ecx
cmp edx, esi
jl 0x10038a31
inc edx
mov dword [esp + 0x28], edx
cmp edx, 5
jg 0x10038ceb
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 0x10038a67
mov edx, ecx
lea ecx, [esp + 0x98]
call fcn.10037800
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 0x10038aa4
cmp esi, ebx
jge 0x10038aa2
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10038a9a
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.10037800
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x10038aa4
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 0x10038a02
mov ebx, dword [esp + 0x98]
mov esi, dword [esp + ecx + 0x110]
cmp esi, ebx
jge 0x10038b83
mov edx, dword [esp + 0xa4]
nop dword [eax]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10038b15
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.10037800
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 0x10038cc0
inc esi
mov dword [esp + ecx + 0xfc], edi
cmp byte [esp + 0xf], 0
mov dword [esp + ecx + 0x110], esi
jne 0x10038b70
cmp esi, ebx
jge 0x10038b6e
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10038b62
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.10037800
mov edx, dword [esp + 0xa4]
movzx eax, ax
mov ecx, dword [esp + 0x14]
movzx eax, ax
add eax, 2
jmp 0x10038b70
xor eax, eax
sub dword [esp + ecx + 0x100], eax
cmp esi, ebx
jl 0x10038af0
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 0x10038990
lea eax, [esi - 1]
mov ecx, eax
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x10038d82
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 0x10038c1b
lea ecx, [esp + 0x98]
call fcn.10037800
mov ebx, dword [esp + 0x3c]
nop
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x10038c41
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.10037800
movzx eax, ax
movzx edi, ax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], edi
movzx edx, word [eax]
test ebx, ebx
je 0x10038c88
cmp dword [ebp + 0x10], 0
jne 0x10038d3b
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 0x10038d3b
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 0x10038c20
jmp 0x10038d4b
cmp esi, ebx
jge 0x10038b7f
cmp dword [esp + 0x44], 0
jle 0x10038cd8
mov eax, dword [esp + ecx + 0x10c]
jmp 0x10038cda
xor eax, eax
cmp esi, eax
jle 0x10038d13
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
jmp 0x10038b89
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 0x100396f1
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 0x100396f1
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 0x10038d6f
mov eax, dword [eax + edx - 4]
jmp 0x10038d71
xor eax, eax
cmp edi, eax
jle 0x10038dee
dec ecx
mov dword [esp + 0x10], ecx
test ecx, ecx
jg 0x10038bc0
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 0x10038f4f
cmp esi, dword [esp + 0x4c]
jge 0x10038e7d
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 0x10038e1a
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x10038e1a
cmp dword [edx + 0x68], 0
je 0x10038e16
call fcn.1002b380
jmp 0x10038e3f
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 0x100396f1
xor edi, edi
jmp 0x10038e41
mov edi, dword [edx + 0x2c]
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x10038e45
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x10038e3a
call fcn.1002cdd0
jmp 0x10038e3f
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 0x10038f1f
test edi, edi
jne 0x100396f1
jmp 0x10038f0e
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.10036380
mov edi, eax
add esp, 0xc
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
test edi, edi
jne 0x100396f1
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x2c]
call fcn.100325f0
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 0x10038f06
mov edx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
push dword [eax + 4]
push 5
call fcn.10031100
mov edi, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x100396f1
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
inc esi
cmp esi, dword [esp + 0x28]
jge 0x10038f4f
mov eax, 1
jmp 0x10038da2
test edi, edi
jne 0x100396f1
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 0x100396f1
mov edx, dword [esp + 0x18]
xor ecx, ecx
test edx, edx
jle 0x10038f76
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 0x10038f60
lea eax, [edx - 1]
xor edi, edi
mov dword [esp + 0x30], edi
test eax, eax
jle 0x1003907b
lea eax, [edi + 1]
mov ebx, edi
mov dword [esp + 0x10], eax
mov esi, eax
cmp eax, edx
jge 0x1003906a
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 0x10038fa0
mov edi, dword [esp + 0x30]
mov dword [esp + 0x58], ebx
cmp ebx, edi
je 0x10039062
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 0x10038f87
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 0x100390c8
mov ecx, dword [esp + 0x4c]
cmp ecx, edx
je 0x100390c8
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 0x100392ca
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 0x100392d1
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 0x1003916d
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 0x10039143
mov esi, dword [esp + edi*4 + 0xe8]
jmp 0x1003914a
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 0x10039135
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x58]
cmp ecx, dword [esp + eax + 0x110]
jne 0x100391a2
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 0x100392bd
jmp 0x100391a6
mov eax, dword [esp + 0x28]
cmp edi, dword [esp + 0x18]
jge 0x100391cc
mov eax, dword [eax + 4]
cmp eax, dword [esp + edi*4 + 0x138]
mov eax, dword [esp + 0x20]
jne 0x100391d0
cmp eax, dword [esi + 0x38]
jb 0x100391d0
cmp eax, dword [esi + 0x3c]
jb 0x100392bd
jmp 0x100391d0
mov eax, dword [esp + 0x20]
cmp word [esp + 0x64], 0
jne 0x10039202
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.10031100
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 0x10039223
mov edx, ecx
lea ecx, [esp + 0x98]
call fcn.10037800
movzx eax, ax
mov ecx, dword [esp + 0x28]
cmp ax, word [ecx + 0x10]
jbe 0x100392a9
cmp dword [esp + 0x1c], 0
jne 0x100396ed
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 0x100392b5
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x20]
cmp edx, ecx
jb 0x10039274
add eax, ecx
cmp edx, eax
jb 0x1003934a
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.10031100
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x100392ad
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x100396ed
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, ebx
jl 0x10039112
mov esi, dword [esp + 0xe8]
mov ecx, dword [esp + 0x18]
xor eax, eax
dec ecx
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x100394e1
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 0x10039372
mov ecx, dword [ecx + 0x38]
mov eax, dword [edi]
mov dword [ecx + 8], eax
jmp 0x10039438
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 0x100396f1
cmp byte [esp + 0xf], 0
je 0x1003941f
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 0x10039405
jb 0x100393b8
cmp ecx, 0x7f
ja 0x100393d0
and cl, 0x7f
mov dword [esp + 0x30], 0
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
jmp 0x10039438
test edx, edx
ja 0x10039405
jb 0x100393de
cmp ecx, 0x3fff
ja 0x10039405
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 0x10039438
push edx
push ecx
lea ecx, [eax + 4]
call fcn.100219f0
add esp, 8
mov dword [esp + 0x30], 0
lea edx, [eax + 4]
jmp 0x10039438
sub edi, 4
cmp eax, 4
jne 0x10039438
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 0x10039456
cmp eax, 6
jge 0x10039456
inc eax
cmp dword [esp + eax*4 + 0xc0], esi
jle 0x10039447
mov ecx, dword [esp + eax*4 + 0xa8]
cmp ecx, edi
jb 0x10039468
lea eax, [edx + edi]
cmp ecx, eax
jb 0x100394b9
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.10037520
mov edi, eax
add esp, 0x10
mov dword [esp + 0x24], edi
test edi, edi
jne 0x100396f1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
dec ecx
mov dword [esp + 0x10], eax
cmp eax, ecx
jl 0x100392f0
mov esi, dword [esp + 0xe8]
jmp 0x100394e5
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 0x100396f1
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 0x100395e6
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 0x100395ca
cmp dword [esp + 0x60], 0
jge 0x10039538
mov eax, dword [esp + ecx*4 + 0x120]
cmp eax, dword [esp + ecx*4 + 0x10c]
jl 0x100395ca
test ecx, ecx
jne 0x10039549
mov esi, dword [esp + 0x110]
xor edx, edx
xor eax, eax
jmp 0x1003957c
cmp ecx, dword [esp + 0x4c]
jge 0x10039561
xor edx, edx
cmp byte [esp + 0xf], dl
sete dl
add edx, dword [esp + ecx*4 + 0x120]
jmp 0x10039563
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.10037c60
mov edi, eax
add esp, 0xc
mov dword [esp + 0x24], edi
test edi, edi
jne 0x100396f1
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 0x10039500
mov esi, dword [esp + 0xe8]
cmp dword [ebp + 0xc], 0
je 0x10039687
mov ebx, dword [esp + 0x34]
cmp word [ebx + 0x18], 0
jne 0x10039687
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x10039687
or edx, 0xffffffff
mov ecx, esi
call fcn.10031880
mov ecx, dword [esp + 0xe8]
mov edx, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
call fcn.10038160
mov edi, dword [esp + 0x28]
add esp, 4
test edi, edi
jne 0x10039651
mov ecx, dword [esp + 0xe8]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.10036a00
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c]
mov esi, edx
cmp edx, ebx
jge 0x100396f1
mov ecx, dword [esp + esi*4 + 0xdc]
test edi, edi
jne 0x10039680
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.10036a00
add esp, 4
mov edi, eax
inc esi
cmp esi, ebx
jl 0x10039663
jmp 0x100396f1
mov ebx, dword [esp + 0x38]
cmp byte [ebx + 0x11], 0
je 0x10039651
cmp word [esp + 0x64], 0
jne 0x10039651
xor esi, esi
test ecx, ecx
jle 0x10039651
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.10031100
mov edx, dword [esp + 0x24]
inc esi
add esp, 0xc
cmp esi, edx
jl 0x100396a0
mov edi, dword [esp + 0x24]
jmp 0x10039655
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0xe0]
push 0
push eax
call fcn.101062c0
add esp, 0xc
jmp 0x100396f1
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x10039705
push eax
call fcn.1001cd70
add esp, 4
mov ebx, dword [esp + 0x4c]
xor esi, esi
test ebx, ebx
jle 0x10039728
nop
mov ecx, dword [esp + esi*4 + 0xdc]
test ecx, ecx
je 0x10039723
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
inc esi
cmp esi, ebx
jl 0x10039710
mov ebx, dword [esp + 0x18]
xor esi, esi
test ebx, ebx
jle 0x1003974a
mov ecx, dword [esp + esi*4 + 0xe8]
test ecx, ecx
je 0x10039745
mov ecx, dword [ecx + 0x48]
call fcn.1002c840
inc esi
cmp esi, ebx
jl 0x10039732
mov ecx, dword [esp + 0x154]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101049d1
mov esp, ebp
pop ebp
ret