Function at 0x1003c4c0
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 + 0x6c], esi
push edi
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x140], edi
mov byte [esp + 0x144], 0
call fcn.10129b70
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x34], eax
test esi, esi
jne 0x1003c552
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.10128281
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
lea esi, [ecx + edx]
cmp esi, 2
jae 0x1003c568
mov dword [esp + 0x44], edi
jmp 0x1003c597
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x1003c576
mov dword [esp + 0x44], edi
jmp 0x1003c58d
cmp eax, esi
jne 0x1003c588
mov eax, dword [ebp + 0x10]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x44], esi
jmp 0x1003c590
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 0x1003c5b4
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x1003c5c8
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 + 0x20], eax
mov ebx, eax
mov dword [esp + 0x50], eax
nop dword [eax]
test edi, edi
jne 0x1003c6c3
mov eax, dword [esp + 0x34]
cmp ebx, dword [eax + 0x30]
jbe 0x1003c619
push 0x10155e9c
push 0x1142d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021710
add esp, 0x14
mov edi, 0xb
jmp 0x1003c6af
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xdc]
call eax
mov edi, eax
add esp, 0x10
mov dword [esp + 0x18], edi
test edi, edi
jne 0x1003c6b3
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov dword [esp + esi*4 + 0xbc], eax
cmp byte [eax], 0
jne 0x1003c6ad
mov ecx, dword [edx + 8]
cmp ebx, dword [ecx + 4]
je 0x1003c674
mov eax, dword [edx + 4]
cmp ebx, 1
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x34]
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 [esp + esi*4 + 0xbc]
call fcn.10035f30
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x1003c6ad
mov ecx, dword [esp + esi*4 + 0xbc]
test ecx, ecx
je 0x1003c6b3
mov ecx, dword [ecx + 0x48]
call fcn.1002fcf0
mov ebx, 4
mov dword [esp + 0x1c], edi
mov eax, esi
imul ebx, eax
jmp 0x1003c6ca
xor edi, edi
mov dword [esp + 0x18], edi
mov ebx, 4
mov dword [esp + 0x1c], edi
mov eax, esi
imul ebx, eax
jmp 0x1003c6ca
lea ebx, [esi*4]
test edi, edi
jne 0x1003d8c8
lea eax, [esp + 0xbc]
add eax, ebx
mov dword [esp + 0x24], eax
mov ecx, dword [eax]
cmp dword [ecx + 0x14], edi
jge 0x1003c701
call fcn.10035d00
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x1003c834
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
add ecx, 4
movzx eax, word [eax + 0x18]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x1003c84e
mov ebx, dword [esp + 0x38]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x1003c770
mov eax, dword [esp + 0x44]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x1003c770
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 + 0x28], 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 0x1003c5e0
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 + 0x24], 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 + 0x34]
mov dword [esp + 0x24], edx
mov dword [esp + esi*4 + 0xdc], edx
test byte [eax + 0x18], 0xc
je 0x1003c807
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
mov edx, dword [esp + 0x34]
cmp eax, dword [edx + 0x28]
mov edx, dword [esp + 0x24]
jg 0x1003c807
mov eax, dword [esp + 0x68]
push edx
add eax, ecx
push edi
push eax
call fcn.1012b000
mov eax, dword [esp + 0x44]
add esp, 0xc
mov edx, dword [esp + 0x24]
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x68]
mov dword [esp + esi*4 + 0x70], edi
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x1c]
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.1003b6a0
mov edi, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x18], edi
jmp 0x1003c5e0
push ebx
lea eax, [esp + 0xc0]
push 0
push eax
call fcn.10129b70
add esp, 0xc
xor ebx, ebx
jmp 0x1003d8d9
mov eax, dword [esp + 0x34]
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.1001e500
mov ebx, eax
add esp, 8
mov dword [esp + 0x80], ebx
test ebx, ebx
jne 0x1003c881
lea edi, [eax + 7]
jmp 0x1003d8d9
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 + 0x30], 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 + 0x28], edx
test ebx, ebx
jle 0x1003cb02
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 + 0x2c], eax
movzx eax, word [edi + 0x1a]
mov esi, eax
mov dword [esp + 0x64], eax
mov al, byte [edx]
mov dword [esp + 0x6c], esi
movzx esi, word [edi + 0x12]
add esi, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x24], esi
cmp al, byte [ecx]
jne 0x1003ccf6
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x2c]
add eax, eax
push eax
mov eax, dword [esp + 0x88]
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.10129b70
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x1003c9af
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x2c], edx
jb 0x1003cad4
test edx, edx
je 0x1003c984
mov edi, dword [esp + 0x4c]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x6c]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x80]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x1003c950
mov edi, dword [esp + 0x48]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x24], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x1003c9af
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 0x1003c995
mov esi, dword [esp + 0x24]
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 + 0x6c], eax
cmp esi, eax
jae 0x1003c9ff
mov edi, eax
nop word [eax + 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, edx
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edi
jb 0x1003c9d0
mov edi, dword [esp + 0x48]
mov dword [esp + 0x78], ebx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + edx*4 + 0x104], ebx
cmp edx, eax
jge 0x1003cabd
cmp byte [esp + 0xf], 0
jne 0x1003cabd
movzx eax, word [esp + edx*4 + 0xdc]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x30]
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.1012b000
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 0x1003ca8e
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x1003cab4
cmp ecx, 4
jae 0x1003cab4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
nop dword [eax + eax]
mov byte [ecx + eax], 0
inc eax
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x1003caa0
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x78], ebx
inc edx
mov dword [esp + 0x28], edx
cmp edx, dword [esp + 0x3c]
jge 0x1003cafe
mov ecx, dword [esp + 0xbc]
jmp 0x1003c8d0
push 0x10155e9c
push 0x12ada
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021710
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1003d8d9
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x60]
xor edx, edx
movzx esi, ax
mov eax, dword [esp + 0x34]
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 + 0x2c], eax
test ebx, ebx
jle 0x1003cc12
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 0x1003cb78
cmp ecx, dword [esp + edx*4 + 0x9c]
jne 0x1003cb78
dec edx
mov dword [esp + 0x10], edx
cmp byte [esp + 0xf], 0
jne 0x1003cb9c
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]
lea eax, [esp + 0xdc]
sub edi, dword [esi + 0x14]
add eax, ebx
cmp byte [esi + 0xc], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], 0
mov dword [eax], edi
jbe 0x1003cbf4
lea ebx, [esi + 0x24]
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 0x1003cbc3
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x10]
mov dword [eax], edi
mov eax, dword [esp + 0x2c]
inc edx
mov ebx, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], edx
cmp eax, ebx
jl 0x1003cb40
mov esi, dword [esp + 0x4c]
mov ecx, ebx
mov dword [esp + 0x24], 0
test ebx, ebx
mov dword [esp + 0x48], ecx
mov ebx, dword [esp + 0x78]
jle 0x1003ce99
mov eax, 1
xor edi, edi
mov dword [esp + 0x28], eax
nop word [eax + eax]
mov edx, dword [esp + edi + 0xdc]
mov dword [esp + 0x10], edx
cmp edx, esi
jle 0x1003cd52
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0xe0]
add ecx, edi
cmp eax, dword [esp + 0x48]
jl 0x1003cc81
inc eax
mov dword [esp + 0x48], eax
cmp eax, 5
jg 0x1003ce45
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 0x1003cca7
lea ecx, [esp + 0x78]
call fcn.1003ba80
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 0x1003cd22
cmp ebx, esi
jge 0x1003cd20
mov eax, dword [esp + 0x84]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x1003ccee
mov edx, ebx
lea ecx, [esp + 0x78]
call fcn.1003ba80
mov edx, dword [esp + 0x10]
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x1003cd22
push 0x10155e9c
push 0x12ac2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021710
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1003d8d9
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 + 0x28]
cmp edx, dword [esp + 0x4c]
jg 0x1003cc60
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + edi + 0xf0]
cmp esi, ebx
jge 0x1003cdfd
mov ecx, dword [esp + 0x84]
nop dword [eax + eax]
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1003cd92
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.1003ba80
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 0x1003cdf9
inc esi
mov dword [esp + edi + 0xdc], edx
cmp byte [esp + 0xf], 0
mov dword [esp + edi + 0xf0], esi
jne 0x1003cdea
cmp esi, ebx
jge 0x1003cde8
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1003cde0
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.1003ba80
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x1003cdea
xor eax, eax
sub dword [esp + edi + 0xe0], eax
cmp esi, ebx
jl 0x1003cd70
cmp esi, ebx
jl 0x1003ce09
mov eax, dword [esp + 0x28]
mov ecx, eax
mov dword [esp + 0x48], ecx
jmp 0x1003ce27
cmp dword [esp + 0x24], 0
jle 0x1003ce19
mov eax, dword [esp + edi + 0xec]
jmp 0x1003ce1b
xor eax, eax
cmp esi, eax
jle 0x1003ce6f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
inc eax
inc esi
mov dword [esp + 0x28], eax
add edi, 4
mov dword [esp + 0x24], esi
cmp esi, ecx
jge 0x1003ce99
mov esi, dword [esp + 0x4c]
jmp 0x1003cc40
push 0x10155e9c
push 0x12b3f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021710
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1003d8d9
push 0x10155e9c
push 0x12b60
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021710
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1003d8d9
lea eax, [ecx - 1]
mov edx, 1
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x1003d02f
lea ecx, [esp + 0xdc]
sub ecx, 4
lea edx, [esp + 0xf0]
sub edx, 4
mov dword [esp + 0x18], ecx
lea edi, [esp + 0xdc]
mov dword [esp + 0x28], 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 + 0x24], eax
jne 0x1003cf03
lea ecx, [esp + 0x78]
call fcn.1003ba80
mov ebx, dword [esp + 0x2c]
nop word [eax + eax]
mov eax, dword [esp + 0x84]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x1003cf2e
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.1003ba80
movzx eax, ax
movzx edx, ax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], edx
movzx eax, word [eax]
mov dword [esp + 0x30], eax
test edi, edi
je 0x1003cf77
cmp dword [ebp + 0x10], 0
jne 0x1003cfa4
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 + 0x30]
add eax, 2
sub ecx, edx
add eax, edi
cmp eax, ecx
jg 0x1003cfa4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
add eax, 2
sub dword [esp + 0x24], 2
add edi, eax
mov eax, 0xfffffffe
sub eax, edx
mov edx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x10], ecx
mov dword [edx + ebx*4], esi
sub esi, 1
jns 0x1003cf10
jmp 0x1003cfac
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0xdc]
mov esi, dword [esp + 0x18]
mov dword [ebx + eax*4], edi
mov ebx, dword [esp + 0x78]
mov dword [esi + eax*4], ecx
cmp eax, 1
jle 0x1003cfd0
mov ecx, dword [edx + eax*4 - 4]
jmp 0x1003cfd2
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x1003d005
dec eax
lea edi, [esp + 0xdc]
mov dword [esp + 0x2c], eax
mov ecx, esi
test eax, eax
jg 0x1003ced0
mov eax, dword [esp + 0xbc]
xor esi, esi
mov eax, dword [eax + 0x38]
lea edx, [esi + 1]
movzx eax, byte [eax]
mov dword [esp + 0x24], eax
jmp 0x1003d050
push 0x10155e9c
push 0x12b8c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021710
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x1003d8d9
mov eax, dword [esp + 0xbc]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x24], eax
test ecx, ecx
jle 0x1003d1d1
nop word [eax + eax]
cmp esi, dword [esp + 0x3c]
jge 0x1003d107
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 + 0x30], eax
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x1003d0a0
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x1003d0a0
cmp dword [edx + 0x68], 0
je 0x1003d09c
call fcn.1002e6e0
jmp 0x1003d0c5
xor edi, edi
jmp 0x1003d0c7
mov edi, dword [edx + 0x2c]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x1003d0cb
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x1003d0c0
call fcn.10030290
jmp 0x1003d0c5
call fcn.10030200
mov edi, eax
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x40]
xor ecx, ecx
sub eax, dword [esp + 0x44]
inc dword [esp + 0x14]
cmp esi, eax
mov eax, dword [esp + 0x54]
sete cl
mov dword [esp + 0x1c], edi
inc ecx
mov eax, dword [eax + 0x48]
movsx eax, word [eax + 0x1e]
cmp eax, ecx
je 0x1003d0fa
test edi, edi
je 0x1003d1a9
test edi, edi
jne 0x1003d8d5
jmp 0x1003d198
cmp dword [ebp + 0x10], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmovne eax, edx
push 0
push eax
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x3c]
call fcn.1003a5a0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x1003d8d5
mov edi, dword [esp + 0x30]
mov ecx, edi
mov edx, dword [esp + 0x24]
call fcn.10036040
mov ecx, dword [esp + 0x34]
inc dword [esp + 0x14]
mov dword [esp + esi*4 + 0xc8], edi
mov dword [esp + esi*4 + 0x104], ebx
cmp byte [ecx + 0x11], 0
je 0x1003d190
mov edx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push 5
call fcn.100349e0
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x18], edi
test edi, edi
jne 0x1003d8d5
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], eax
inc esi
cmp esi, dword [esp + 0x48]
jge 0x1003d1d1
mov edx, 1
jmp 0x1003d050
push 0x10155e9c
push 0x12bad
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021710
add esp, 0x14
mov edi, 0xb
jmp 0x1003d8d5
mov edx, dword [esp + 0x14]
xor ecx, ecx
test edx, edx
jle 0x1003d1f6
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 0x1003d1e0
lea ebx, [edx - 1]
xor edi, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], edi
test ebx, ebx
jle 0x1003d307
mov eax, ebx
nop dword [eax]
lea esi, [edi + 1]
mov ebx, edi
cmp esi, edx
jge 0x1003d2fa
mov edi, dword [esp + 0x14]
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 0x1003d230
mov edi, dword [esp + 0x20]
mov dword [esp + 0x40], ebx
cmp ebx, edi
je 0x1003d2f2
mov ecx, dword [esp + edi*4 + 0xc8]
xor edx, edx
mov esi, dword [esp + 0x34]
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.1002a350
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.1002a350
mov ecx, dword [esp + 0x20]
mov edx, ebx
mov eax, dword [esp + ecx*4 + 0xc8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], di
call fcn.1002a350
mov edi, dword [esp + 0x20]
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 + 0x14]
mov eax, dword [esp + 0x2c]
inc edi
mov dword [esp + 0x20], edi
cmp edi, eax
jl 0x1003d210
test byte [esp + 0x24], 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 0x1003d354
mov ecx, dword [esp + 0x3c]
cmp ecx, edx
je 0x1003d354
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 + 0x14]
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 + 0x34]
mov esi, dword [esp + 0x78]
cmp byte [eax + 0x11], 0
je 0x1003d501
mov edi, dword [esp + 0xc8]
xor ecx, ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x28], ecx
movzx eax, byte [edi + 0xc]
movzx edx, word [edi + 0x18]
add edx, eax
xor eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], eax
test esi, esi
jle 0x1003d501
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], edi
nop
mov ebx, dword [esp + 0x80]
mov ebx, dword [ebx + eax*4]
mov dword [esp + 0x50], ebx
cmp eax, edx
jne 0x1003d404
mov esi, dword [esp + 0x28]
xor eax, eax
cmp byte [esp + 0xf], al
mov ebx, dword [esp + 0x14]
sete al
mov dword [esp + 0x54], eax
inc esi
cmp esi, ebx
jge 0x1003d3d5
mov edi, dword [esp + esi*4 + 0xc8]
jmp 0x1003d3dc
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 0x1003d3c7
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 0x40]
cmp eax, dword [esp + ebx + 0xf0]
mov ebx, dword [esp + 0x18]
jne 0x1003d43f
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 + 0x20], esi
mov esi, dword [esp + 0x78]
je 0x1003d4f0
cmp ecx, dword [esp + 0x14]
jge 0x1003d469
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
cmp eax, dword [esp + ecx*4 + 0x118]
mov eax, dword [esp + 0x50]
jne 0x1003d46d
cmp eax, dword [edi + 0x38]
jb 0x1003d46d
cmp eax, dword [edi + 0x3c]
jb 0x1003d4ec
jmp 0x1003d46d
mov eax, dword [esp + 0x50]
cmp word [esp + 0x60], 0
jne 0x1003d49b
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
bswap edx
push dword [ecx + 4]
mov ecx, dword [esp + 0x3c]
push 5
call fcn.100349e0
mov ebx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x84]
movzx eax, word [eax + edx*2]
test ax, ax
jne 0x1003d4bb
lea ecx, [esp + 0x78]
call fcn.1003ba80
movzx eax, ax
mov ecx, dword [esp + 0x20]
cmp ax, word [ecx + 0x10]
jbe 0x1003d4e0
lea eax, [esp + 0x1c]
mov edx, edi
push eax
push dword [esp + 0x54]
call fcn.100350d0
mov ebx, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x1003d8d1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x10], eax
cmp eax, esi
jl 0x1003d3a0
mov eax, dword [esp + 0x14]
xor ebx, ebx
dec eax
mov dword [esp + 0x40], ebx
test eax, eax
jle 0x1003d6df
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 + 0x68]
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 + 0x20], esi
mov esi, dword [esp + 0x78]
cmp byte [ecx + 8], 0
jne 0x1003d577
mov ecx, dword [ecx + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x1003d63d
cmp byte [esp + 0xf], 0
je 0x1003d624
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 + 0x20]
mov ebx, eax
mov ecx, dword [esp + 0x118]
test edx, edx
ja 0x1003d60a
jb 0x1003d5bd
cmp ecx, 0x7f
ja 0x1003d5d5
and cl, 0x7f
mov dword [esp + 0x20], 0
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
jmp 0x1003d63d
test edx, edx
ja 0x1003d60a
jb 0x1003d5e3
cmp ecx, 0x3fff
ja 0x1003d60a
mov eax, ecx
shrd eax, edx, 7
mov edx, dword [esp + 0x20]
or al, 0x80
mov dword [esp + 0x20], 0
and cl, 0x7f
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
jmp 0x1003d63d
push edx
push ecx
lea ecx, [eax + 4]
call fcn.100233a0
add esp, 8
mov dword [esp + 0x20], 0
lea edx, [eax + 4]
jmp 0x1003d63d
sub ebx, 4
cmp eax, 4
jne 0x1003d63d
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 0x1003d65f
nop dword [eax]
cmp eax, 6
jge 0x1003d65f
inc eax
cmp dword [esp + eax*4 + 0xa0], edi
jle 0x1003d650
mov ecx, dword [esp + eax*4 + 0x88]
cmp ecx, ebx
jb 0x1003d671
lea eax, [edx + ebx]
cmp ecx, eax
jb 0x1003d6b7
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
push dword [eax + 4]
push dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x50]
lea edx, [edx + ebx]
call fcn.1003b7c0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x1003d8d5
mov eax, dword [esp + 0x14]
inc ebx
dec eax
mov dword [esp + 0x40], ebx
cmp ebx, eax
jl 0x1003d520
jmp 0x1003d6e3
push 0x10155e9c
push 0x12c75
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10021710
add esp, 0x14
mov edi, 0xb
jmp 0x1003d8d5
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub ecx, ebx
mov dword [esp + 0x5c], ecx
cmp ecx, ebx
jge 0x1003d7de
nop word [eax + eax]
mov eax, ecx
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
cmp byte [esp + ebx + 0x134], 0
jne 0x1003d7cd
test ecx, ecx
lea ecx, [ebx*4]
jns 0x1003d736
mov eax, dword [esp + ecx + 0x100]
cmp eax, dword [esp + ecx + 0xec]
jl 0x1003d7c9
test ebx, ebx
jne 0x1003d747
mov edi, dword [esp + 0xf0]
xor edx, edx
xor eax, eax
jmp 0x1003d77a
cmp ebx, dword [esp + 0x3c]
jge 0x1003d75f
xor edx, edx
cmp byte [esp + 0xf], dl
sete dl
add edx, dword [esp + ecx + 0x100]
jmp 0x1003d761
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.1003bed0
mov esi, dword [esp + 0x84]
mov edi, eax
add esp, 0xc
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x1003d8d5
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 + 0x14]
inc ecx
mov dword [esp + 0x5c], ecx
cmp ecx, ebx
jl 0x1003d700
cmp dword [ebp + 0xc], 0
je 0x1003d844
mov esi, dword [esp + 0x38]
cmp word [esi + 0x18], 0
jne 0x1003d844
mov ecx, dword [esp + 0xc8]
movzx eax, byte [esi + 9]
cmp eax, dword [ecx + 0x14]
jg 0x1003d844
or edx, 0xffffffff
call fcn.100352a0
mov ecx, dword [esp + 0xc8]
mov edx, esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call fcn.1003c3f0
mov edi, dword [esp + 0x20]
add esp, 4
test edi, edi
jne 0x1003d88e
mov ecx, dword [esp + 0xc8]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.1003ac60
add esp, 4
mov edi, eax
jmp 0x1003d88e
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x11], 0
je 0x1003d88e
cmp word [esp + 0x60], 0
jne 0x1003d88e
xor esi, esi
test ebx, ebx
jle 0x1003d88e
nop dword [eax]
mov eax, dword [esp + esi*4 + 0xc8]
lea edx, [esp + 0x1c]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.100349e0
mov ecx, dword [esp + 0x40]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x1003d860
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov esi, ebx
cmp ebx, eax
jge 0x1003d8d9
nop dword [eax + eax]
mov ecx, dword [esp + esi*4 + 0xbc]
test edi, edi
jne 0x1003d8c1
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.1003ac60
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
jl 0x1003d8a0
jmp 0x1003d8d9
lea eax, [ebx + 4]
push eax
jmp 0x1003c835
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1003d8ed
mov edx, eax
xor ecx, ecx
call fcn.1001e7d0
mov eax, dword [esp + 0x3c]
xor esi, esi
test eax, eax
jle 0x1003d91c
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0xbc]
test ecx, ecx
je 0x1003d917
mov ecx, dword [ecx + 0x48]
call fcn.1002fcf0
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, eax
jl 0x1003d900
xor esi, esi
test ebx, ebx
jle 0x1003d93a
mov ecx, dword [esp + esi*4 + 0xc8]
test ecx, ecx
je 0x1003d935
mov ecx, dword [ecx + 0x48]
call fcn.1002fcf0
inc esi
cmp esi, ebx
jl 0x1003d922
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10128281
mov esp, ebp
pop ebp
ret