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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x10165004]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x94]
xor ebx, ebx
mov dword [esp + 0x44], edx
push edi
push 0x40
mov edi, ecx
mov dword [esp + 0x74], esi
push ebx
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x158], ebx
mov byte [esp + 0x15c], bl
call fcn.1012aa20
mov eax, dword [edi + 0x34]
add esp, 0xc
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x1003c224
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.10129131
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 0x18]
movzx edx, byte [edi + 0xc]
lea esi, [edx + ecx]
cmp esi, 2
jae 0x1003c23a
mov dword [esp + 0x50], ebx
jmp 0x1003c269
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x1003c248
mov dword [esp + 0x50], ebx
jmp 0x1003c25f
cmp eax, esi
jne 0x1003c25a
mov eax, dword [ebp + 0x10]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x50], esi
jmp 0x1003c262
dec eax
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x68], esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
sub eax, edx
lea edx, [eax + esi]
cmp edx, ecx
jne 0x1003c28a
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x1003c29e
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]
mov dword [esp + 0x5c], ecx
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x34], eax
mov edi, eax
mov dword [esp + 0x6c], eax
test ebx, ebx
jne 0x1003c395
mov eax, dword [esp + 0x3c]
cmp edi, dword [eax + 0x30]
jbe 0x1003c2ec
push 0x10156dc4
push 0x1142d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021520
add esp, 0x14
mov ebx, 0xb
jmp 0x1003c381
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push 0
push ecx
push edi
push eax
mov eax, dword [eax + 0xdc]
call eax
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x1003c385
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 8]
mov dword [esp + esi*4 + 0xdc], eax
cmp byte [eax], bl
jne 0x1003c37f
mov ecx, dword [edx + 8]
cmp edi, dword [ecx + 4]
je 0x1003c346
mov eax, dword [edx + 4]
cmp edi, 1
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 4], edi
mov byte [ecx + 9], al
mov ecx, dword [esp + esi*4 + 0xdc]
call fcn.10035b50
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x1003c37f
mov ecx, dword [esp + esi*4 + 0xdc]
test ecx, ecx
je 0x1003c385
mov ecx, dword [ecx + 0x48]
call fcn.1002fa70
mov edi, 4
mov dword [esp + 0x20], ebx
mov eax, esi
imul edi, eax
jmp 0x1003c39c
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov edi, 4
mov dword [esp + 0x20], ebx
mov eax, esi
imul edi, eax
jmp 0x1003c39c
lea edi, [esi*4]
test ebx, ebx
jne 0x1003d6ab
lea eax, [esp + 0xdc]
add eax, edi
mov dword [esp + 0x30], eax
mov ecx, dword [eax]
cmp dword [ecx + 0x14], ebx
jge 0x1003c3d3
call fcn.10035920
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x1003c4fe
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
add eax, 4
movzx ecx, word [ecx + 0x18]
add eax, ecx
mov ecx, esi
dec esi
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x1003c518
mov edi, dword [esp + 0x38]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x1003c442
mov eax, dword [esp + 0x50]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x1003c442
mov eax, dword [edi + 0x24]
push eax
mov dword [esp + esi*4 + 0x7c], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x3c]
bswap edi
push eax
mov dword [esp + 0x3c], edi
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x74], edi
call eax
movzx eax, ax
add esp, 8
mov dword [esp + esi*4 + 0xfc], eax
mov eax, dword [esp + 0x38]
mov byte [eax + 0xc], 0
jmp 0x1003c2b3
mov ecx, dword [esp + 0x50]
movzx eax, dl
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
mov edi, dword [edi + 0x38]
movzx ecx, cx
and ecx, eax
add edi, ecx
push edi
mov dword [esp + esi*4 + 0x7c], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [eax + 0x4c]
call eax
mov edx, dword [esp + 0x44]
add esp, 8
movzx ebx, ax
mov dword [esp + esi*4 + 0xfc], ebx
test byte [edx + 0x18], 0xc
je 0x1003c4cd
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x1003c4cd
mov eax, dword [esp + 0x70]
push ebx
add eax, ecx
push edi
push eax
call fcn.1012bec0
mov eax, dword [esp + 0x44]
add esp, 0xc
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x70]
mov dword [esp + esi*4 + 0x78], edi
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x20]
push eax
push ebx
mov ebx, dword [esp + 0x40]
mov ecx, ebx
movzx eax, byte [ebx + 0xc]
sub edx, eax
add edx, esi
call fcn.1003b310
mov ebx, dword [esp + 0x28]
add esp, 8
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
jmp 0x1003c2b3
push edi
lea eax, [esp + 0xe0]
push 0
push eax
call fcn.1012aa20
add esp, 0xc
xor edi, edi
jmp 0x1003ce04
lea esi, [eax + 3]
mov eax, dword [esp + 0x3c]
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.1001e1a0
mov ebx, eax
add esp, 8
mov dword [esp + 0xa0], ebx
test ebx, ebx
jne 0x1003c54d
lea ebx, [eax + 7]
xor edi, edi
jmp 0x1003ce04
mov ecx, dword [esp + 0xdc]
lea eax, [ebx + esi*4]
mov dword [esp + 0xa4], eax
lea eax, [eax + esi*2]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
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 + 0x58], eax
xor eax, eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x40], eax
test esi, esi
jle 0x1003c7b4
mov ebx, dword [esp + 0x98]
shl eax, 2
mov dword [esp + 0x44], eax
mov edi, dword [esp + eax + 0xdc]
mov dword [esp + 0x28], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x1c], eax
add esi, edx
movzx eax, word [edi + 0x1a]
mov ecx, eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x24], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1003ca16
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x1c]
add eax, eax
push eax
mov eax, dword [esp + 0xa8]
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.1012aa20
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x1003c695
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x1c], edx
jb 0x1003c9ec
test edx, edx
je 0x1003c667
mov edi, dword [esp + 0x54]
nop
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x2c]
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 0x1003c630
mov edi, dword [esp + 0x28]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x24], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x1003c695
mov esi, dword [esp + 0xa0]
lea ecx, [edi + 0x24]
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 0x1003c678
mov esi, dword [esp + 0x24]
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 + 0x2c], eax
cmp esi, eax
jae 0x1003c6e2
mov edi, eax
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x74]
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 0x1003c6b0
mov edi, dword [esp + 0x28]
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [esp + ecx + 0x124], ebx
cmp eax, dword [esp + 0x68]
jge 0x1003c7a3
cmp byte [esp + 0xf], 0
jne 0x1003c7a3
movzx eax, word [esp + ecx + 0xfc]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0x30]
push eax
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x14]
add esi, ecx
add ecx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
push dword [esp + eax + 0x7c]
push esi
call fcn.1012bec0
mov ecx, dword [esp + 0x70]
add esp, 0xc
mov edx, dword [esp + 0xa4]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0xa0]
mov dword [esi + ebx*4], eax
mov ax, word [edx + ebx*2]
sub ax, cx
mov word [edx + ebx*2], ax
cmp byte [edi + 8], 0
movzx ecx, ax
jne 0x1003c776
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x1003c797
cmp ecx, 4
jae 0x1003c797
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov byte [ecx + eax], 0
inc eax
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x1003c783
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
inc ebx
mov dword [esp + 0x98], ebx
mov esi, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x40], eax
cmp eax, esi
jl 0x1003c5a2
mov eax, dword [esp + 0x64]
xor edx, edx
movzx ecx, ax
xor ebx, ebx
mov eax, dword [esp + 0x3c]
add ecx, 0xfffffff4
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ebx
add ecx, dword [eax + 0x28]
mov dword [esp + 0x54], ecx
test esi, esi
jle 0x1003c8bf
mov ecx, esi
lea edi, [esp + 0x110]
lea esi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
nop
mov esi, dword [esp + ebx*4 + 0xdc]
mov ecx, dword [esp + ebx*4 + 0x124]
mov eax, dword [esi + 0x3c]
mov dword [esp + edx*4 + 0xa8], eax
mov dword [esp + edx*4 + 0xc0], ecx
test edx, edx
je 0x1003c821
cmp ecx, dword [esp + edx*4 + 0xbc]
jne 0x1003c821
dec edx
mov dword [esp + 0x10], edx
cmp byte [esp + 0xf], 0
jne 0x1003c845
mov eax, dword [esp + 0x38]
inc edx
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + edx*4 + 0xa8], eax
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0xc0], eax
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0xfc]
mov edi, ecx
mov dword [esp + 0x30], 0
sub edi, dword [esi + 0x14]
lea eax, [eax + ebx*4]
cmp byte [esi + 0xc], 0
mov dword [esp + 0x68], eax
mov dword [eax], edi
jbe 0x1003c8a9
lea ebx, [esi + 0x24]
nop
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x38]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x38], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x1003c870
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
mov dword [eax], edi
mov esi, dword [esp + 0x4c]
inc ebx
inc edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edx
cmp ebx, esi
jl 0x1003c7f0
mov ebx, dword [esp + 0x98]
lea edx, [esp + 0x110]
sub edx, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x44], edx
mov eax, esi
mov dword [esp + 0x28], eax
test esi, esi
jle 0x1003cbb9
xor edx, edx
mov dword [esp + 0x40], 1
mov dword [esp + 0x10], edx
nop dword [eax + eax]
lea eax, [esp + 0xfc]
add eax, edx
mov dword [esp + 0x2c], eax
mov edi, dword [eax]
cmp edi, ecx
jle 0x1003ca69
mov esi, dword [esp + 0x98]
lea ecx, [esp + 0x100]
add ecx, edx
nop word [eax + eax]
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0xfc]
lea eax, [eax + edx]
mov dword [esp + 0x30], ecx
cmp ebx, dword [esp + 0x28]
jl 0x1003c965
inc ebx
mov dword [esp + 0x28], ebx
cmp ebx, 5
jg 0x1003cb5f
mov dword [ecx], 0
mov edi, dword [eax]
mov dword [esp + edx + 0x114], esi
lea eax, [esp + 0x110]
add eax, edx
mov dword [esp + 0x24], eax
mov ebx, dword [eax]
mov eax, dword [esp + 0xa4]
lea edx, [ebx - 1]
movzx eax, word [eax + edx*2]
mov dword [esp + 0x68], edx
test ax, ax
jne 0x1003c99e
lea ecx, [esp + 0x98]
call fcn.1003b770
mov ecx, dword [esp + 0x30]
movzx eax, ax
mov edx, dword [esp + 0x2c]
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0xf], 0
mov dword [edx], edi
jne 0x1003ca42
cmp ebx, esi
jge 0x1003ca40
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x1003c9e0
mov edx, ebx
lea ecx, [esp + 0x98]
call fcn.1003b770
movzx eax, ax
mov ecx, dword [esp + 0x30]
movzx eax, ax
add eax, 2
jmp 0x1003ca42
push 0x10156dc4
push 0x12ada
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021520
add esp, 0x14
mov ebx, 0xb
xor edi, edi
jmp 0x1003ce04
push 0x10156dc4
push 0x12ac2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021520
add esp, 0x14
mov ebx, 0xb
xor edi, edi
jmp 0x1003ce04
xor eax, eax
mov edx, dword [esp + 0x24]
add dword [ecx], eax
mov eax, dword [esp + 0x68]
mov dword [edx], eax
mov edx, dword [esp + 0x10]
cmp edi, dword [esp + 0x54]
jg 0x1003c930
mov ebx, dword [esp + 0x98]
mov ecx, dword [esp + 0x24]
jmp 0x1003ca76
lea ecx, [esp + 0x110]
add ecx, edx
mov dword [esp + 0x24], ecx
mov esi, dword [ecx]
cmp esi, ebx
jge 0x1003cb13
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x1003caa5
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.1003b770
mov ecx, dword [esp + 0x24]
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x54]
jg 0x1003cb0b
mov edx, dword [esp + 0x2c]
inc esi
cmp byte [esp + 0xf], 0
mov dword [ecx], esi
mov dword [edx], edi
jne 0x1003caf6
cmp esi, ebx
jge 0x1003caf4
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x1003caec
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.1003b770
mov ecx, dword [esp + 0x24]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x1003caf6
xor eax, eax
mov edx, dword [esp + 0x10]
sub dword [esp + edx + 0x100], eax
cmp esi, ebx
jl 0x1003ca80
jmp 0x1003cb0f
mov edx, dword [esp + 0x10]
cmp esi, ebx
jl 0x1003cb1f
mov ecx, dword [esp + 0x40]
mov eax, ecx
mov dword [esp + 0x28], eax
jmp 0x1003cb3d
cmp dword [esp + 0x1c], 0
jle 0x1003cb2f
mov eax, dword [esp + 0x44]
mov eax, dword [edx + eax]
jmp 0x1003cb31
xor eax, eax
cmp esi, eax
jle 0x1003cb8f
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
add edx, 4
inc esi
mov dword [esp + 0x10], edx
inc ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], ecx
cmp esi, eax
jge 0x1003cb89
mov ecx, dword [esp + 0x54]
jmp 0x1003c900
push 0x10156dc4
push 0x12b3f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021520
add esp, 0x14
mov ebx, 0xb
xor edi, edi
jmp 0x1003ce04
mov edx, dword [esp + 0x44]
jmp 0x1003cbbd
push 0x10156dc4
push 0x12b60
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021520
add esp, 0x14
mov ebx, 0xb
xor edi, edi
jmp 0x1003ce04
mov dword [esp + 0x44], edx
dec eax
mov ecx, eax
mov dword [esp + 0x24], eax
test ecx, ecx
jle 0x1003cd03
nop dword [eax]
shl ecx, 2
mov dword [esp + 0x40], ecx
mov esi, dword [edx + ecx]
mov eax, dword [esp + ecx + 0xf8]
dec esi
mov edi, dword [esp + ecx + 0xfc]
mov edx, esi
sub edx, dword [esp + 0x58]
mov dword [esp + 0x10], eax
inc edx
mov eax, dword [esp + 0xa4]
cmp word [eax + edx*2], 0
lea eax, [eax + edx*2]
mov dword [esp + 0x1c], eax
jne 0x1003cc15
lea ecx, [esp + 0x98]
call fcn.1003b770
mov ebx, dword [esp + 0x1c]
nop dword [eax]
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x1003cc41
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.1003b770
movzx eax, ax
movzx edx, word [ebx]
movzx eax, ax
mov dword [esp + 0x2c], eax
test edi, edi
je 0x1003cc82
cmp dword [ebp + 0x10], 0
jne 0x1003ccb5
mov ecx, dword [esp + 0x28]
add edx, edi
mov ebx, dword [esp + 0x1c]
dec ecx
cmp dword [esp + 0x24], ecx
mov eax, 2
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x10]
sub ecx, eax
lea eax, [edx + 2]
sub ecx, dword [esp + 0x2c]
cmp eax, ecx
jg 0x1003ccb5
mov ecx, dword [esp + 0x10]
lea edi, [edx + 2]
mov edx, dword [esp + 0x40]
mov eax, 0xfffffffe
sub eax, dword [esp + 0x2c]
sub ebx, 2
add ecx, eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov dword [eax + edx], esi
sub esi, 1
jns 0x1003cc20
jmp 0x1003ccc1
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x98]
mov dword [esp + edx + 0xf8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + edx + 0xfc], edi
cmp ecx, 1
jbe 0x1003cce5
mov eax, dword [eax + edx - 4]
jmp 0x1003cce7
xor eax, eax
mov esi, dword [esp + 0x44]
cmp dword [esi + edx], eax
jle 0x1003cd6f
dec ecx
mov edx, esi
mov dword [esp + 0x24], ecx
test ecx, ecx
jg 0x1003cbd0
mov eax, dword [esp + 0xdc]
xor edi, edi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x30], eax
lea eax, [edi + 1]
cmp dword [esp + 0x28], edi
jle 0x1003cf3d
cmp edi, dword [esp + 0x4c]
jge 0x1003ce73
mov eax, dword [esp + edi*4 + 0xdc]
mov dword [esp + edi*4 + 0xe8], eax
mov dword [esp + edi*4 + 0xdc], 0
mov dword [esp + 0x58], eax
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x2c], eax
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x1003cd9a
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x1003cd9a
cmp dword [edx + 0x68], 0
je 0x1003cd96
call fcn.1002e440
jmp 0x1003cdbf
push 0x10156dc4
push 0x12b8c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021520
add esp, 0x14
mov ebx, 0xb
xor edi, edi
jmp 0x1003ce04
xor esi, esi
jmp 0x1003cdc1
mov esi, dword [edx + 0x2c]
mov dword [esp + 0x18], esi
test esi, esi
jne 0x1003cdc5
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x1003cdba
call fcn.10030010
jmp 0x1003cdbf
call fcn.1002ff80
mov esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x48]
xor ecx, ecx
sub eax, dword [esp + 0x50]
inc dword [esp + 0x14]
cmp edi, eax
mov eax, dword [esp + 0x58]
sete cl
mov dword [esp + 0x20], esi
inc ecx
mov eax, dword [eax + 0x48]
movsx eax, word [eax + 0x1e]
cmp eax, ecx
je 0x1003cdf4
test esi, esi
je 0x1003cf15
test esi, esi
je 0x1003cf04
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x1003ce18
mov edx, eax
xor ecx, ecx
call fcn.1001e480
mov eax, dword [esp + 0x4c]
xor esi, esi
test eax, eax
jle 0x1003ce3e
mov ecx, dword [esp + esi*4 + 0xdc]
test ecx, ecx
je 0x1003ce39
mov ecx, dword [ecx + 0x48]
call fcn.1002fa70
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x1003ce22
xor esi, esi
test edi, edi
jle 0x1003ce5c
mov ecx, dword [esp + esi*4 + 0xe8]
test ecx, ecx
je 0x1003ce57
mov ecx, dword [ecx + 0x48]
call fcn.1002fa70
inc esi
cmp esi, edi
jl 0x1003ce44
mov ecx, dword [esp + 0x154]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10129131
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x2c]
mov ecx, dword [esp + 0x34]
cmovne ecx, eax
lea eax, [esp + 0x6c]
push 0
push ecx
mov ecx, dword [esp + 0x44]
push eax
call fcn.1003a240
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
test esi, esi
jne 0x1003cdfc
mov esi, dword [esp + 0x2c]
mov ecx, esi
mov edx, dword [esp + 0x30]
call fcn.10035c60
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x14]
mov dword [esp + edi*4 + 0xe8], esi
mov dword [esp + edi*4 + 0x124], ebx
cmp byte [ecx + 0x11], 0
je 0x1003cefc
mov edx, dword [esi + 4]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push 5
call fcn.10034750
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1003cdfc
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
inc edi
cmp edi, dword [esp + 0x28]
jge 0x1003cf3d
mov eax, 1
jmp 0x1003cd23
push 0x10156dc4
push 0x12bad
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021520
add esp, 0x14
mov ebx, 0xb
jmp 0x1003ce00
mov edx, dword [esp + 0x14]
xor ecx, ecx
test edx, edx
jle 0x1003cf66
nop word [eax + 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 0x1003cf50
lea eax, [edx - 1]
xor edi, edi
mov dword [esp + 0x34], edi
test eax, eax
jle 0x1003d06b
lea eax, [edi + 1]
mov ebx, edi
mov dword [esp + 0x2c], eax
mov esi, eax
cmp eax, edx
jge 0x1003d05a
mov edi, dword [esp + 0x14]
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 0x1003cf90
mov edi, dword [esp + 0x34]
mov dword [esp + 0x48], ebx
cmp ebx, edi
je 0x1003d052
mov ecx, dword [esp + edi*4 + 0xe8]
xor edx, edx
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + ebx*4 + 0xe8]
mov eax, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov eax, dword [0x10167ac0]
div dword [esi + 0x24]
mov ecx, dword [ecx + 0x48]
mov ebx, dword [edi + 4]
movzx esi, word [ecx + 0x1c]
lea edx, [eax + 1]
mov eax, dword [edi + 0x48]
movzx edi, word [eax + 0x1c]
mov word [ecx + 0x1c], di
call fcn.1002a070
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + ecx*4 + 0xe8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], si
mov esi, dword [esp + 0x58]
mov edx, esi
call fcn.1002a070
mov ecx, dword [esp + 0x34]
mov edx, ebx
mov eax, dword [esp + ecx*4 + 0xe8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], di
call fcn.1002a070
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + ecx*4 + 0xe8]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x48]
mov eax, dword [esp + eax*4 + 0xe8]
mov dword [eax + 4], esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov edi, eax
lea eax, [edx - 1]
mov dword [esp + 0x34], edi
cmp edi, eax
jl 0x1003cf77
test byte [esp + 0x30], 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 0x1003d0b8
mov ecx, dword [esp + 0x4c]
cmp ecx, edx
je 0x1003d0b8
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 + 0x14]
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 + 0x3c]
mov esi, dword [esp + 0x98]
cmp byte [eax + 0x11], 0
je 0x1003d2be
mov edi, dword [esp + 0xe8]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x24], ecx
movzx edx, word [edi + 0x18]
movzx eax, byte [edi + 0xc]
add edx, eax
mov dword [esp + 0x1c], edx
test esi, esi
jle 0x1003d2be
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x10], eax
cmp ecx, edx
jne 0x1003d15d
mov esi, dword [esp + 0x14]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
mov dword [esp + 0x58], eax
inc ebx
cmp ebx, esi
jge 0x1003d133
mov edi, dword [esp + ebx*4 + 0xe8]
jmp 0x1003d13a
mov edi, dword [esp + ebx*4 + 0xdc]
movzx eax, word [edi + 0x18]
add eax, dword [esp + 0x58]
movzx ecx, byte [edi + 0xc]
add ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, edx
je 0x1003d125
mov esi, dword [esp + 0x98]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x48]
cmp ecx, dword [esp + eax + 0x110]
jne 0x1003d192
mov eax, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x5c], eax
shl eax, 2
cmp byte [esp + 0xf], 0
mov dword [esp + 0x48], eax
mov eax, dword [esp + eax + 0xe8]
mov dword [esp + 0x28], eax
je 0x1003d2b1
jmp 0x1003d196
mov eax, dword [esp + 0x28]
cmp ebx, dword [esp + 0x14]
jge 0x1003d1bc
mov eax, dword [eax + 4]
cmp eax, dword [esp + ebx*4 + 0x138]
mov eax, dword [esp + 0x10]
jne 0x1003d1c0
cmp eax, dword [edi + 0x38]
jb 0x1003d1c0
cmp eax, dword [edi + 0x3c]
jb 0x1003d2b1
jmp 0x1003d1c0
mov eax, dword [esp + 0x10]
cmp word [esp + 0x64], 0
jne 0x1003d1f2
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x40]
push dword [edx + 4]
mov edx, dword [eax]
push 5
bswap edx
call fcn.10034750
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + ecx*2]
test ax, ax
jne 0x1003d213
mov edx, ecx
lea ecx, [esp + 0x98]
call fcn.1003b770
movzx eax, ax
mov ecx, dword [esp + 0x28]
cmp ax, word [ecx + 0x10]
jbe 0x1003d29d
cmp dword [esp + 0x18], 0
jne 0x1003cdfc
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x14]
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 0x1003d2a9
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
jb 0x1003d268
add eax, ecx
cmp edx, eax
jb 0x1003d32b
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
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.10034750
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x1003d2a1
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1003cdfc
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, esi
jl 0x1003d102
mov eax, dword [esp + 0x14]
xor edi, edi
dec eax
mov dword [esp + 0x48], edi
test eax, eax
jle 0x1003d4bf
mov ecx, dword [esp + edi*4 + 0xe8]
mov edi, dword [esp + edi*4 + 0x110]
mov eax, dword [esp + 0xa0]
mov esi, dword [esp + 0x60]
add esi, dword [esp + 0x70]
mov dword [esp + 0x5c], ecx
mov ebx, dword [eax + edi*4]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x64]
movzx edx, cx
mov ecx, dword [esp + 0x5c]
movzx eax, word [eax + edi*2]
add edx, eax
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x98]
cmp byte [ecx + 8], 0
jne 0x1003d353
mov ecx, dword [ecx + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x1003d41c
push 0x10156dc4
push 0x11106
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021520
add esp, 0x14
mov ebx, 0xb
jmp 0x1003ce00
cmp byte [esp + 0xf], 0
je 0x1003d403
lea eax, [esp + 0x80]
dec edi
push eax
mov eax, dword [esp + 0xa4]
push dword [eax + edi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x90]
add esp, 0xc
mov eax, dword [esp + 0x34]
mov ebx, eax
mov ecx, dword [esp + 0x80]
test edx, edx
ja 0x1003d3e9
jb 0x1003d399
cmp ecx, 0x7f
ja 0x1003d3b4
and cl, 0x7f
mov dword [esp + 0x34], 0
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
jmp 0x1003d41c
test edx, edx
ja 0x1003d3e9
jb 0x1003d3c2
cmp ecx, 0x3fff
ja 0x1003d3e9
mov eax, ecx
shrd eax, edx, 7
mov edx, dword [esp + 0x34]
or al, 0x80
mov dword [esp + 0x34], 0
and cl, 0x7f
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
jmp 0x1003d41c
push edx
push ecx
lea ecx, [eax + 4]
call fcn.100230c0
add esp, 8
mov dword [esp + 0x34], 0
lea edx, [eax + 4]
jmp 0x1003d41c
sub ebx, 4
cmp eax, 4
jne 0x1003d41c
mov eax, dword [esp + 0x38]
push ebx
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], edi
jg 0x1003d43f
nop dword [eax + eax]
cmp eax, 6
jge 0x1003d43f
inc eax
cmp dword [esp + eax*4 + 0xc0], edi
jle 0x1003d430
mov ecx, dword [esp + eax*4 + 0xa8]
cmp ecx, ebx
jb 0x1003d451
lea eax, [edx + ebx]
cmp ecx, eax
jb 0x1003d497
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
push dword [eax + 4]
push dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x5c]
push ebx
lea edx, [edx + edi]
call fcn.1003b430
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x1003ce00
mov eax, dword [esp + 0x14]
inc edi
dec eax
mov dword [esp + 0x48], edi
cmp edi, eax
jl 0x1003d2d1
jmp 0x1003d4c3
push 0x10156dc4
push 0x12c75
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021520
add esp, 0x14
mov ebx, 0xb
jmp 0x1003ce00
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0x60], ecx
cmp ecx, edi
jge 0x1003d5bd
nop word [eax + eax]
mov eax, ecx
cdq
mov ecx, eax
lea eax, [esp + 0x14c]
xor ecx, edx
sub ecx, edx
add eax, ecx
mov dword [esp + 0x58], eax
cmp byte [eax], 0
jne 0x1003d5ac
cmp dword [esp + 0x60], 0
lea edi, [ecx*4]
jge 0x1003d521
mov eax, dword [esp + edi + 0x120]
cmp eax, dword [esp + edi + 0x10c]
jl 0x1003d5a8
test ecx, ecx
jne 0x1003d532
mov ecx, dword [esp + 0x110]
xor edx, edx
xor eax, eax
jmp 0x1003d565
cmp ecx, dword [esp + 0x4c]
jge 0x1003d54a
xor edx, edx
cmp byte [esp + 0xf], dl
sete dl
add edx, dword [esp + edi + 0x120]
jmp 0x1003d54c
mov edx, esi
mov ecx, dword [esp + edi + 0x110]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
add eax, dword [esp + edi + 0x10c]
sub ecx, eax
lea ebx, [esp + 0x98]
push ebx
push ecx
mov ecx, dword [esp + edi + 0xf0]
push eax
call fcn.1003bbc0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x1003ce00
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + edi + 0xfc]
mov byte [eax], 1
mov eax, dword [esp + edi + 0xe8]
mov dword [eax + 0x14], ecx
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
inc ecx
mov dword [esp + 0x60], ecx
cmp ecx, edi
jl 0x1003d4e0
cmp dword [ebp + 0xc], 0
je 0x1003d62b
mov esi, dword [esp + 0x38]
cmp word [esi + 0x18], 0
jne 0x1003d62b
mov ecx, dword [esp + 0xe8]
movzx eax, byte [esi + 9]
cmp eax, dword [ecx + 0x14]
jg 0x1003d62b
or edx, 0xffffffff
call fcn.10034ed0
mov ecx, dword [esp + 0xe8]
mov edx, esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
call fcn.1003c0c0
mov ebx, dword [esp + 0x24]
add esp, 4
test ebx, ebx
jne 0x1003d671
mov ecx, dword [esp + 0xe8]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.1003a8d0
add esp, 4
mov ebx, eax
jmp 0x1003d671
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x1003d671
cmp word [esp + 0x64], 0
jne 0x1003d671
xor esi, esi
test edi, edi
jle 0x1003d671
mov eax, dword [esp + esi*4 + 0xe8]
lea edx, [esp + 0x20]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.10034750
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0xc
cmp esi, edi
jl 0x1003d643
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
mov esi, edi
cmp edi, eax
jge 0x1003ce04
nop
mov ecx, dword [esp + esi*4 + 0xdc]
test ebx, ebx
jne 0x1003d6a1
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.1003a8d0
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jl 0x1003d680
jmp 0x1003ce04
lea eax, [edi + 4]
push eax
jmp 0x1003c4ff