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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x74]
push edi
xor edi, edi
mov dword [esp + 0x40], edx
push 0x40
mov ebx, ecx
mov dword [esp + 0x70], esi
push edi
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x140], edi
mov byte [esp + 0x144], 0
call fcn.101298f0
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x30], eax
test esi, esi
jne 0x1003c4f2
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.10128001
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
lea esi, [ecx + edx]
cmp esi, 2
jae 0x1003c508
mov dword [esp + 0x44], edi
jmp 0x1003c537
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x1003c516
mov dword [esp + 0x44], edi
jmp 0x1003c52d
cmp eax, esi
jne 0x1003c528
mov eax, dword [ebp + 0x10]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x44], esi
jmp 0x1003c530
dec eax
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edx
jne 0x1003c554
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x1003c568
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 + 0x58], ecx
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x24], eax
mov ebx, eax
mov dword [esp + 0x50], eax
nop dword [eax]
test edi, edi
jne 0x1003c685
mov eax, dword [esp + 0x30]
cmp ebx, dword [eax + 0x30]
jbe 0x1003c5cc
push 0x10155e9c
push 0x1142d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021700
mov edi, 0xb
add esp, 0x14
mov dword [esp + 0x1c], edi
lea ecx, [esi*4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ecx
jmp 0x1003c690
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
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 0x1003c5b8
mov edx, dword [esp + 0x2c]
lea ecx, [esi*4]
lea edi, [esp + 0xbc]
mov dword [esp + 0x14], ecx
add edi, ecx
mov dword [esp + 0x28], edi
mov eax, dword [edx + 8]
mov dword [edi], eax
cmp byte [eax], 0
jne 0x1003c679
mov ecx, dword [edx + 8]
cmp ebx, dword [ecx + 4]
je 0x1003c63a
mov eax, dword [edx + 4]
cmp ebx, 1
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x30]
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 ecx, dword [edi]
call fcn.10035f00
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x1003c672
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003c5b8
mov ecx, dword [ecx + 0x48]
call fcn.1002fcc0
lea ecx, [esi*4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ecx
jmp 0x1003c690
lea ecx, [esi*4]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
jmp 0x1003c690
lea ecx, [esi*4]
mov dword [esp + 0x14], ecx
test edi, edi
jne 0x1003d888
lea ebx, [esp + 0xbc]
add ebx, ecx
mov ecx, dword [ebx]
cmp dword [ecx + 0x14], edi
jge 0x1003c6bf
call fcn.10035cd0
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
test edi, edi
jne 0x1003c7f2
mov eax, dword [ebx]
mov ecx, dword [esp + 0x34]
add ecx, 4
movzx eax, word [eax + 0x18]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x34], ecx
test eax, eax
je 0x1003c80f
mov ebx, dword [esp + 0x38]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x1003c72e
mov eax, dword [esp + 0x44]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x1003c72e
mov eax, dword [ebx + 0x24]
push eax
mov dword [esp + esi*4 + 0x74], eax
mov ebx, dword [eax]
mov eax, dword [esp + 0x3c]
bswap ebx
push eax
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x58], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [esp + esi*4 + 0xdc], eax
mov eax, dword [esp + 0x38]
mov byte [eax + 0xc], 0
jmp 0x1003c580
mov ecx, dword [esp + 0x44]
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 + 0x74], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x28], eax
mov ebx, eax
mov dword [esp + 0x54], 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 + 0x30]
mov dword [esp + 0x28], edx
mov dword [esp + esi*4 + 0xdc], edx
test byte [eax + 0x18], 0xc
je 0x1003c7c5
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
mov edx, dword [esp + 0x30]
cmp eax, dword [edx + 0x28]
mov edx, dword [esp + 0x28]
jg 0x1003c7c5
mov eax, dword [esp + 0x6c]
push edx
add eax, ecx
push edi
push eax
call fcn.1012ad80
mov eax, dword [esp + 0x44]
add esp, 0xc
mov edx, dword [esp + 0x28]
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x6c]
mov dword [esp + esi*4 + 0x70], edi
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
push edx
mov edx, dword [esp + 0x4c]
mov ecx, edi
movzx eax, byte [edi + 0xc]
sub edx, eax
add edx, esi
call fcn.1003b660
mov edi, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x1c], edi
jmp 0x1003c580
push dword [esp + 0x14]
lea eax, [esp + 0xc0]
push 0
push eax
call fcn.101298f0
add esp, 0xc
xor ebx, ebx
jmp 0x1003d899
mov eax, dword [esp + 0x30]
lea esi, [ecx + 3]
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.1001e4e0
mov ebx, eax
add esp, 8
mov dword [esp + 0x80], ebx
test ebx, ebx
jne 0x1003c842
lea edi, [eax + 7]
jmp 0x1003d899
mov ecx, dword [esp + 0xbc]
lea eax, [ebx + esi*4]
mov ebx, dword [esp + 0x3c]
xor edx, edx
mov dword [esp + 0x84], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x60], eax
mov al, byte [ecx + 2]
mov byte [esp + 0xf], al
movzx eax, al
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], edx
test ebx, ebx
jle 0x1003cac2
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + edx*4 + 0xbc]
mov ecx, dword [ecx + 0x38]
mov dword [esp + 0x48], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x34], eax
movzx eax, word [edi + 0x1a]
mov esi, eax
mov dword [esp + 0x68], eax
mov al, byte [edx]
mov dword [esp + 0x64], esi
movzx esi, word [edi + 0x12]
add esi, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], esi
cmp al, byte [ecx]
jne 0x1003cbb8
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x34]
add eax, eax
push eax
mov eax, dword [esp + 0x88]
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.101298f0
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x1003c96f
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x34], edx
jb 0x1003ca94
test edx, edx
je 0x1003c944
mov edi, dword [esp + 0x4c]
nop dword [eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x64]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x80]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x1003c910
mov edi, dword [esp + 0x48]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x28], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x1003c96f
mov esi, dword [esp + 0x80]
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 0x1003c955
mov esi, dword [esp + 0x28]
mov dword [esp + 0x78], ebx
movzx eax, word [edi + 0x12]
mov edx, dword [esp + 0x4c]
add eax, edx
movzx ecx, word [edi + 0x18]
lea eax, [eax + ecx*2]
mov dword [esp + 0x64], eax
cmp esi, eax
jae 0x1003c9bf
mov edi, eax
nop word [eax + 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 + 0x80]
add ecx, edx
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edi
jb 0x1003c990
mov edi, dword [esp + 0x48]
mov dword [esp + 0x78], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + edx*4 + 0x104], ebx
cmp edx, eax
jge 0x1003ca7d
cmp byte [esp + 0xf], 0
jne 0x1003ca7d
movzx eax, word [esp + edx*4 + 0xdc]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x2c]
push eax
push dword [esp + edx*4 + 0x74]
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x18]
add esi, ecx
add ecx, eax
push esi
mov dword [esp + 0x1c], ecx
call fcn.1012ad80
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov edx, dword [esp + 0x84]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x80]
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 0x1003ca4e
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x1003ca74
cmp ecx, 4
jae 0x1003ca74
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
nop dword [eax + eax]
mov byte [ecx + eax], 0
inc eax
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x1003ca60
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x78], ebx
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x3c]
jge 0x1003cabe
mov ecx, dword [esp + 0xbc]
jmp 0x1003c891
push 0x10155e9c
push 0x12ada
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021700
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1003d899
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x60]
xor edx, edx
movzx esi, ax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add esi, eax
xor eax, eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x1003cc00
mov ecx, ebx
lea esi, [esp + 0x104]
lea edi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
nop
lea ebx, [eax*4]
mov esi, dword [esp + ebx + 0xbc]
mov ecx, dword [esp + ebx + 0x104]
mov eax, dword [esi + 0x3c]
mov dword [esp + edx*4 + 0x88], eax
mov dword [esp + edx*4 + 0xa0], ecx
test edx, edx
je 0x1003cb38
cmp ecx, dword [esp + edx*4 + 0x9c]
jne 0x1003cb38
dec edx
mov dword [esp + 0x10], edx
cmp byte [esp + 0xf], 0
jne 0x1003cb5c
mov eax, dword [esp + 0x38]
inc edx
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + edx*4 + 0x88], eax
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0xa0], eax
mov edi, dword [esp + 0x4c]
sub edi, dword [esi + 0x14]
cmp byte [esi + 0xc], 0
mov dword [esp + ebx + 0xdc], edi
mov dword [esp + 0x2c], 0
jbe 0x1003cbe2
lea ebx, [esi + 0x24]
nop dword [eax + eax]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x34]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x34], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x1003cb80
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xdc], edi
jmp 0x1003cbe6
push 0x10155e9c
push 0x12ac2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021700
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1003d899
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x3c]
inc eax
inc edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
cmp eax, ebx
jl 0x1003cb00
mov esi, dword [esp + 0x4c]
mov ecx, ebx
mov dword [esp + 0x28], 0
test ebx, ebx
mov dword [esp + 0x48], ecx
mov ebx, dword [esp + 0x78]
jle 0x1003ce59
mov eax, 1
xor edi, edi
mov dword [esp + 0x14], eax
nop word [eax + eax]
mov edx, dword [esp + edi + 0xdc]
mov dword [esp + 0x10], edx
cmp edx, esi
jle 0x1003cd18
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0xe0]
add ecx, edi
cmp eax, dword [esp + 0x48]
jl 0x1003cc71
inc eax
mov dword [esp + 0x48], eax
cmp eax, 5
jg 0x1003ce05
mov dword [ecx], 0
mov dword [esp + edi + 0xf4], esi
mov ebx, dword [esp + edi + 0xf0]
mov eax, dword [esp + 0x84]
lea edx, [ebx - 1]
movzx eax, word [eax + edx*2]
test ax, ax
jne 0x1003cc97
lea ecx, [esp + 0x78]
call fcn.1003ba40
movzx eax, ax
mov edx, dword [esp + edi + 0xdc]
movzx ecx, ax
add ecx, 2
sub edx, ecx
cmp byte [esp + 0xf], 0
mov dword [esp + 0x10], edx
mov dword [esp + edi + 0xdc], edx
jne 0x1003cce8
cmp ebx, esi
jge 0x1003cce6
mov eax, dword [esp + 0x84]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x1003ccde
mov edx, ebx
lea ecx, [esp + 0x78]
call fcn.1003ba40
mov edx, dword [esp + 0x10]
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x1003cce8
xor ecx, ecx
mov eax, dword [esp + edi + 0xe0]
add eax, ecx
lea ecx, [esp + 0xe0]
add ecx, edi
mov dword [ecx], eax
lea eax, [ebx - 1]
mov dword [esp + edi + 0xf0], eax
mov eax, dword [esp + 0x14]
cmp edx, dword [esp + 0x4c]
jg 0x1003cc50
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + edi + 0xf0]
cmp esi, ebx
jge 0x1003cdbd
mov ecx, dword [esp + 0x84]
nop
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1003cd52
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.1003ba40
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
movzx eax, ax
movzx eax, ax
add eax, 2
add edx, eax
mov dword [esp + 0x10], edx
cmp edx, dword [esp + 0x4c]
jg 0x1003cdb9
inc esi
mov dword [esp + edi + 0xdc], edx
cmp byte [esp + 0xf], 0
mov dword [esp + edi + 0xf0], esi
jne 0x1003cdaa
cmp esi, ebx
jge 0x1003cda8
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1003cda0
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.1003ba40
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x1003cdaa
xor eax, eax
sub dword [esp + edi + 0xe0], eax
cmp esi, ebx
jl 0x1003cd30
cmp esi, ebx
jl 0x1003cdc9
mov eax, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x48], ecx
jmp 0x1003cde7
cmp dword [esp + 0x28], 0
jle 0x1003cdd9
mov eax, dword [esp + edi + 0xec]
jmp 0x1003cddb
xor eax, eax
cmp esi, eax
jle 0x1003ce2f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x28]
inc eax
inc esi
mov dword [esp + 0x14], eax
add edi, 4
mov dword [esp + 0x28], esi
cmp esi, ecx
jge 0x1003ce59
mov esi, dword [esp + 0x4c]
jmp 0x1003cc30
push 0x10155e9c
push 0x12b3f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021700
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1003d899
push 0x10155e9c
push 0x12b60
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021700
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1003d899
lea eax, [ecx - 1]
mov edx, 1
mov dword [esp + 0x34], eax
test eax, eax
jle 0x1003cfef
lea ecx, [esp + 0xdc]
sub ecx, 4
lea edx, [esp + 0xf0]
sub edx, 4
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0xdc]
mov dword [esp + 0x14], edx
mov esi, dword [edx + eax*4]
mov ecx, dword [ecx + eax*4]
dec esi
mov edi, dword [edi + eax*4]
mov edx, esi
sub edx, dword [esp + 0x54]
mov eax, dword [esp + 0x84]
inc edx
cmp word [eax + edx*2], 0
mov dword [esp + 0x10], ecx
lea eax, [eax + edx*2]
mov dword [esp + 0x28], eax
jne 0x1003cec3
lea ecx, [esp + 0x78]
call fcn.1003ba40
mov ebx, dword [esp + 0x34]
nop word [eax + eax]
mov eax, dword [esp + 0x84]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x1003ceee
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.1003ba40
movzx eax, ax
movzx edx, ax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], edx
movzx eax, word [eax]
mov dword [esp + 0x2c], eax
test edi, edi
je 0x1003cf37
cmp dword [ebp + 0x10], 0
jne 0x1003cf64
mov ecx, dword [esp + 0x48]
mov eax, 2
dec ecx
cmp ebx, ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x2c]
add eax, 2
sub ecx, edx
add eax, edi
cmp eax, ecx
jg 0x1003cf64
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
add eax, 2
sub dword [esp + 0x28], 2
add edi, eax
mov eax, 0xfffffffe
sub eax, edx
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x10], ecx
mov dword [edx + ebx*4], esi
sub esi, 1
jns 0x1003ced0
jmp 0x1003cf6c
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0xdc]
mov esi, dword [esp + 0x1c]
mov dword [ebx + eax*4], edi
mov ebx, dword [esp + 0x78]
mov dword [esi + eax*4], ecx
cmp eax, 1
jle 0x1003cf90
mov ecx, dword [edx + eax*4 - 4]
jmp 0x1003cf92
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x1003cfc5
dec eax
lea edi, [esp + 0xdc]
mov dword [esp + 0x34], eax
mov ecx, esi
test eax, eax
jg 0x1003ce90
mov eax, dword [esp + 0xbc]
xor esi, esi
mov eax, dword [eax + 0x38]
lea edx, [esi + 1]
movzx eax, byte [eax]
mov dword [esp + 0x28], eax
jmp 0x1003d010
push 0x10155e9c
push 0x12b8c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021700
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1003d899
mov eax, dword [esp + 0xbc]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x28], eax
test ecx, ecx
jle 0x1003d191
nop word [eax + eax]
cmp esi, dword [esp + 0x3c]
jge 0x1003d0c7
mov eax, dword [esp + esi*4 + 0xbc]
mov dword [esp + esi*4 + 0xc8], eax
mov dword [esp + esi*4 + 0xbc], 0
mov dword [esp + 0x54], eax
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x2c], eax
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x1003d060
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x1003d060
cmp dword [edx + 0x68], 0
je 0x1003d05c
call fcn.1002e6b0
jmp 0x1003d085
xor edi, edi
jmp 0x1003d087
mov edi, dword [edx + 0x2c]
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x1003d08b
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x1003d080
call fcn.10030260
jmp 0x1003d085
call fcn.100301d0
mov edi, eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x40]
xor ecx, ecx
sub eax, dword [esp + 0x44]
inc dword [esp + 0x18]
cmp esi, eax
mov eax, dword [esp + 0x54]
sete cl
mov dword [esp + 0x20], edi
inc ecx
mov eax, dword [eax + 0x48]
movsx eax, word [eax + 0x1e]
cmp eax, ecx
je 0x1003d0ba
test edi, edi
je 0x1003d169
test edi, edi
jne 0x1003d895
jmp 0x1003d158
cmp dword [ebp + 0x10], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
cmovne eax, edx
push 0
push eax
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x38]
call fcn.1003a560
mov edi, eax
add esp, 0xc
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
test edi, edi
jne 0x1003d895
mov edi, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x28]
call fcn.10036010
mov ecx, dword [esp + 0x30]
inc dword [esp + 0x18]
mov dword [esp + esi*4 + 0xc8], edi
mov dword [esp + esi*4 + 0x104], ebx
cmp byte [ecx + 0x11], 0
je 0x1003d150
mov edx, dword [edi + 4]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push 5
call fcn.100349b0
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x1003d895
mov eax, dword [esp + 0x50]
mov dword [esp + 0x24], eax
inc esi
cmp esi, dword [esp + 0x48]
jge 0x1003d191
mov edx, 1
jmp 0x1003d010
push 0x10155e9c
push 0x12bad
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021700
add esp, 0x14
mov edi, 0xb
jmp 0x1003d895
mov edx, dword [esp + 0x18]
xor ecx, ecx
test edx, edx
jle 0x1003d1b6
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0xc8]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x118], eax
inc ecx
cmp ecx, edx
jl 0x1003d1a0
lea ebx, [edx - 1]
xor edi, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], edi
test ebx, ebx
jle 0x1003d2c7
mov eax, ebx
nop dword [eax]
lea esi, [edi + 1]
mov ebx, edi
cmp esi, edx
jge 0x1003d2ba
mov edi, dword [esp + 0x18]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xc8]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xc8]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, edi
jl 0x1003d1f0
mov edi, dword [esp + 0x24]
mov dword [esp + 0x40], ebx
cmp ebx, edi
je 0x1003d2b2
mov ecx, dword [esp + edi*4 + 0xc8]
xor edx, edx
mov esi, dword [esp + 0x30]
mov edi, dword [esp + ebx*4 + 0xc8]
mov eax, dword [ecx + 4]
mov dword [esp + 0x54], eax
mov eax, dword [0x10167b00]
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.1002a330
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + ecx*4 + 0xc8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], si
mov esi, dword [esp + 0x54]
mov edx, esi
call fcn.1002a330
mov ecx, dword [esp + 0x24]
mov edx, ebx
mov eax, dword [esp + ecx*4 + 0xc8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], di
call fcn.1002a330
mov edi, dword [esp + 0x24]
mov eax, dword [esp + edi*4 + 0xc8]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x40]
mov eax, dword [esp + eax*4 + 0xc8]
mov dword [eax + 4], esi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
inc edi
mov dword [esp + 0x24], edi
cmp edi, eax
jl 0x1003d1d0
test byte [esp + 0x28], 8
mov eax, dword [esp + edx*4 + 0xc4]
mov ecx, dword [esp + 0x58]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x1003d314
mov ecx, dword [esp + 0x3c]
cmp ecx, edx
je 0x1003d314
lea eax, [esp + 0xc8]
lea esi, [esp + 0xbc]
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 + 0xc4]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x78]
cmp byte [eax + 0x11], 0
je 0x1003d4c1
mov edi, dword [esp + 0xc8]
xor ecx, ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x14], ecx
movzx eax, byte [edi + 0xc]
movzx edx, word [edi + 0x18]
add edx, eax
xor eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], eax
test esi, esi
jle 0x1003d4c1
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], edi
nop
mov ebx, dword [esp + 0x80]
mov ebx, dword [ebx + eax*4]
mov dword [esp + 0x50], ebx
cmp eax, edx
jne 0x1003d3c4
mov esi, dword [esp + 0x14]
xor eax, eax
cmp byte [esp + 0xf], al
mov ebx, dword [esp + 0x18]
sete al
mov dword [esp + 0x54], eax
inc esi
cmp esi, ebx
jge 0x1003d395
mov edi, dword [esp + esi*4 + 0xc8]
jmp 0x1003d39c
mov edi, dword [esp + esi*4 + 0xbc]
movzx eax, word [edi + 0x18]
add eax, dword [esp + 0x54]
movzx ecx, byte [edi + 0xc]
add ecx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
cmp eax, edx
je 0x1003d387
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x40]
cmp eax, dword [esp + ebx + 0xf0]
mov ebx, dword [esp + 0x1c]
jne 0x1003d3ff
mov esi, dword [esp + 0x58]
inc esi
mov dword [esp + 0x58], esi
shl esi, 2
cmp byte [esp + 0xf], 0
mov dword [esp + 0x40], esi
mov esi, dword [esp + esi + 0xc8]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x78]
je 0x1003d4b0
cmp ecx, dword [esp + 0x18]
jge 0x1003d429
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [esp + ecx*4 + 0x118]
mov eax, dword [esp + 0x50]
jne 0x1003d42d
cmp eax, dword [edi + 0x38]
jb 0x1003d42d
cmp eax, dword [edi + 0x3c]
jb 0x1003d4ac
jmp 0x1003d42d
mov eax, dword [esp + 0x50]
cmp word [esp + 0x60], 0
jne 0x1003d45b
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
bswap edx
push dword [ecx + 4]
mov ecx, dword [esp + 0x38]
push 5
call fcn.100349b0
mov ebx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x84]
movzx eax, word [eax + edx*2]
test ax, ax
jne 0x1003d47b
lea ecx, [esp + 0x78]
call fcn.1003ba40
movzx eax, ax
mov ecx, dword [esp + 0x24]
cmp ax, word [ecx + 0x10]
jbe 0x1003d4a0
lea eax, [esp + 0x20]
mov edx, edi
push eax
push dword [esp + 0x54]
call fcn.100350a0
mov ebx, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x1003d891
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], eax
cmp eax, esi
jl 0x1003d360
mov eax, dword [esp + 0x18]
xor ebx, ebx
dec eax
mov dword [esp + 0x40], ebx
test eax, eax
jle 0x1003d69f
nop dword [eax]
nop dword [eax + eax]
mov edi, dword [esp + ebx*4 + 0xf0]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + ebx*4 + 0xc8]
mov esi, dword [esp + 0x5c]
add esi, dword [esp + 0x6c]
mov ebx, dword [eax + edi*4]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x60]
movzx edx, cx
mov ecx, dword [esp + 0x58]
movzx eax, word [eax + edi*2]
add edx, eax
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x78]
cmp byte [ecx + 8], 0
jne 0x1003d537
mov ecx, dword [ecx + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x1003d5fd
cmp byte [esp + 0xf], 0
je 0x1003d5e4
lea eax, [esp + 0x118]
dec edi
push eax
mov eax, dword [esp + 0x84]
push dword [eax + edi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x128]
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ebx, eax
mov ecx, dword [esp + 0x118]
test edx, edx
ja 0x1003d5ca
jb 0x1003d57d
cmp ecx, 0x7f
ja 0x1003d595
and cl, 0x7f
mov dword [esp + 0x24], 0
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
jmp 0x1003d5fd
test edx, edx
ja 0x1003d5ca
jb 0x1003d5a3
cmp ecx, 0x3fff
ja 0x1003d5ca
mov eax, ecx
shrd eax, edx, 7
mov edx, dword [esp + 0x24]
or al, 0x80
mov dword [esp + 0x24], 0
and cl, 0x7f
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
jmp 0x1003d5fd
push edx
push ecx
lea ecx, [eax + 4]
call fcn.10023370
add esp, 8
mov dword [esp + 0x24], 0
lea edx, [eax + 4]
jmp 0x1003d5fd
sub ebx, 4
cmp eax, 4
jne 0x1003d5fd
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 + 0x5c], edx
xor eax, eax
cmp dword [esp + 0xa0], edi
jg 0x1003d61f
nop dword [eax]
cmp eax, 6
jge 0x1003d61f
inc eax
cmp dword [esp + eax*4 + 0xa0], edi
jle 0x1003d610
mov ecx, dword [esp + eax*4 + 0x88]
cmp ecx, ebx
jb 0x1003d631
lea eax, [edx + ebx]
cmp ecx, eax
jb 0x1003d677
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
push dword [eax + 4]
push dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x50]
lea edx, [edx + ebx]
call fcn.1003b780
mov edi, eax
add esp, 0x10
mov dword [esp + 0x20], edi
test edi, edi
jne 0x1003d895
mov eax, dword [esp + 0x18]
inc ebx
dec eax
mov dword [esp + 0x40], ebx
cmp ebx, eax
jl 0x1003d4e0
jmp 0x1003d6a3
push 0x10155e9c
push 0x12c75
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021700
add esp, 0x14
mov edi, 0xb
jmp 0x1003d895
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, 1
sub ecx, ebx
mov dword [esp + 0x5c], ecx
cmp ecx, ebx
jge 0x1003d79e
nop word [eax + eax]
mov eax, ecx
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
cmp byte [esp + ebx + 0x134], 0
jne 0x1003d78d
test ecx, ecx
lea ecx, [ebx*4]
jns 0x1003d6f6
mov eax, dword [esp + ecx + 0x100]
cmp eax, dword [esp + ecx + 0xec]
jl 0x1003d789
test ebx, ebx
jne 0x1003d707
mov edi, dword [esp + 0xf0]
xor edx, edx
xor eax, eax
jmp 0x1003d73a
cmp ebx, dword [esp + 0x3c]
jge 0x1003d71f
xor edx, edx
cmp byte [esp + 0xf], dl
sete dl
add edx, dword [esp + ecx + 0x100]
jmp 0x1003d721
mov edx, esi
mov edi, dword [esp + ecx + 0xf0]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
add eax, dword [esp + ecx + 0xec]
sub edi, eax
lea esi, [esp + 0xc8]
add ecx, esi
lea esi, [esp + 0x78]
push esi
mov dword [esp + 0x58], ecx
push edi
mov ecx, dword [ecx]
push eax
call fcn.1003be90
mov esi, dword [esp + 0x84]
mov edi, eax
add esp, 0xc
mov dword [esp + 0x20], edi
test edi, edi
jne 0x1003d895
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + ebx*4 + 0xdc]
mov byte [esp + ebx + 0x134], 1
mov eax, dword [eax]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x5c], ecx
cmp ecx, ebx
jl 0x1003d6c0
cmp dword [ebp + 0xc], 0
je 0x1003d804
mov esi, dword [esp + 0x38]
cmp word [esi + 0x18], 0
jne 0x1003d804
mov ecx, dword [esp + 0xc8]
movzx eax, byte [esi + 9]
cmp eax, dword [ecx + 0x14]
jg 0x1003d804
or edx, 0xffffffff
call fcn.10035270
mov ecx, dword [esp + 0xc8]
mov edx, esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
call fcn.1003c390
mov edi, dword [esp + 0x24]
add esp, 4
test edi, edi
jne 0x1003d84e
mov ecx, dword [esp + 0xc8]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.1003ac20
add esp, 4
mov edi, eax
jmp 0x1003d84e
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x11], 0
je 0x1003d84e
cmp word [esp + 0x60], 0
jne 0x1003d84e
xor esi, esi
test ebx, ebx
jle 0x1003d84e
nop dword [eax]
mov eax, dword [esp + esi*4 + 0xc8]
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.100349b0
mov ecx, dword [esp + 0x3c]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x1003d820
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov esi, ebx
cmp ebx, eax
jge 0x1003d899
nop dword [eax + eax]
mov ecx, dword [esp + esi*4 + 0xbc]
test edi, edi
jne 0x1003d881
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.1003ac20
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
jl 0x1003d860
jmp 0x1003d899
lea eax, [ecx + 4]
push eax
jmp 0x1003c7f6
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1003d8ad
mov edx, eax
xor ecx, ecx
call fcn.1001e7b0
mov eax, dword [esp + 0x3c]
xor esi, esi
test eax, eax
jle 0x1003d8dc
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0xbc]
test ecx, ecx
je 0x1003d8d7
mov ecx, dword [ecx + 0x48]
call fcn.1002fcc0
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
jl 0x1003d8c0
xor esi, esi
test ebx, ebx
jle 0x1003d8fa
mov ecx, dword [esp + esi*4 + 0xc8]
test ecx, ecx
je 0x1003d8f5
mov ecx, dword [ecx + 0x48]
call fcn.1002fcc0
inc esi
cmp esi, ebx
jl 0x1003d8e2
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10128001
mov esp, ebp
pop ebp
ret