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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x10155004]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x40
push eax
mov dword [esp + 0x18], eax
mov edi, ecx
mov dword [esp + 0x24], eax
xor ebx, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x154], eax
mov byte [esp + 0x158], al
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x78], esi
mov dword [esp + 0x2c], ebx
call fcn.10117800
mov eax, dword [edi + 0x34]
add esp, 0xc
mov dword [esp + 0x44], eax
test esi, esi
jne 0x1004378a
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.10115f0d
mov esp, ebp
pop ebp
ret
movzx edx, word [edi + 0x18]
movzx ecx, byte [edi + 0xc]
lea esi, [ecx + edx]
cmp esi, 2
jae 0x100437a0
mov dword [esp + 0x50], ebx
jmp 0x100437cf
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x100437ae
mov dword [esp + 0x50], ebx
jmp 0x100437c5
cmp eax, esi
jne 0x100437c0
mov eax, dword [ebp + 0x10]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x50], esi
jmp 0x100437c8
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 + 0x58], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edx
jne 0x100437f0
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x10043804
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
xor edx, edx
mov dword [esp + 0x40], ecx
mov edi, dword [ecx]
bswap edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], edi
nop dword [eax]
test edx, edx
jne 0x10043848
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0xf0]
push edx
lea eax, [eax + esi*4]
mov edx, edi
push eax
call fcn.1003d850
mov edx, eax
add esp, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edx
lea edi, [esi*4]
test edx, edx
jne 0x10044ad8
mov ecx, dword [esp + edi + 0xf0]
cmp dword [ecx + 0x14], edx
jge 0x1004387a
call fcn.1003d3a0
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x100439aa
mov eax, dword [esp + edi + 0xf0]
movzx eax, word [eax + 0x18]
add eax, 4
add ebx, eax
mov eax, esi
dec esi
mov dword [esp + 0x18], ebx
test eax, eax
je 0x100439b6
mov edi, dword [esp + 0x2c]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x100438ee
mov eax, dword [esp + 0x50]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x100438ee
mov eax, dword [edi + 0x24]
push eax
mov dword [esp + esi*4 + 0x7c], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x30]
bswap edi
push eax
mov dword [esp + 0x40], edi
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x30], edi
call eax
mov edx, dword [esp + 0x18]
add esp, 8
movzx eax, ax
mov dword [esp + esi*4 + 0xfc], eax
mov eax, dword [esp + 0x2c]
mov byte [eax + 0xc], 0
jmp 0x10043820
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 + 0x3c], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [eax + 0x4c]
call eax
mov edx, dword [esp + 0x4c]
add esp, 8
movzx ebx, ax
mov dword [esp + esi*4 + 0xfc], ebx
test byte [edx + 0x18], 0xc
je 0x10043975
mov eax, dword [esp + 0x2c]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x10043975
mov eax, dword [esp + 0x6c]
push ebx
add eax, ecx
push edi
push eax
call fcn.10118c90
mov eax, dword [esp + 0x38]
add esp, 0xc
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x6c]
mov dword [esp + esi*4 + 0x78], edi
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x1c]
push eax
push ebx
mov ebx, dword [esp + 0x34]
mov ecx, ebx
movzx eax, byte [ebx + 0xc]
sub edx, eax
add edx, esi
call fcn.10042530
mov edx, dword [esp + 0x24]
add esp, 8
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], edx
jmp 0x10043820
lea eax, [esi*4]
jmp 0x10044adb
mov eax, dword [esp + 0x44]
lea esi, [ebx + 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.10025910
add esp, 8
mov dword [esp + 0xa0], eax
test eax, eax
jne 0x100439e7
lea edi, [eax + 7]
jmp 0x10044b06
mov ecx, dword [esp + 0xf0]
lea eax, [eax + esi*4]
mov dword [esp + 0xa4], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x9c], ecx
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 + 0x5c], eax
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x54], eax
jle 0x10043c56
mov ebx, dword [esp + 0x98]
nop word [eax + eax]
shl eax, 2
mov dword [esp + 0x14], eax
mov edi, dword [esp + eax + 0xf0]
mov dword [esp + 0x4c], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x18], eax
add esi, edx
movzx eax, word [edi + 0x1a]
mov ecx, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x34], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x10043dea
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x18]
add eax, eax
push eax
mov eax, dword [esp + 0xa8]
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.10117800
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x10043b3d
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x18], edx
jb 0x10043dc2
test edx, edx
je 0x10043b0a
mov edi, dword [esp + 0x64]
nop
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, edi
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x10043ad0
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x34], esi
mov al, byte [edi + 0xc]
xor edx, edx
test al, al
je 0x10043b3d
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 0x10043b20
mov esi, dword [esp + 0x34]
mov dword [esp + 0x98], ebx
movzx eax, word [edi + 0x12]
mov edx, dword [esp + 0x64]
add eax, edx
movzx ecx, word [edi + 0x18]
lea eax, [eax + ecx*2]
mov dword [esp + 0x74], eax
cmp esi, eax
jae 0x10043b8a
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 0x10043b58
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov dword [esp + ecx + 0x124], ebx
cmp eax, dword [esp + 0x58]
jge 0x10043c47
cmp byte [esp + 0xf], 0
jne 0x10043c47
movzx eax, word [esp + ecx + 0xfc]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0x24]
push eax
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x4c]
add esi, ecx
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
push dword [esp + eax + 0x7c]
push esi
call fcn.10118c90
mov eax, dword [esp + 0x6c]
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 + 0x60]
sub word [edx + ebx*2], ax
cmp byte [edi + 8], 0
jne 0x10043c18
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x10043c3b
cmp word [edx + ebx*2], 4
jae 0x10043c3b
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov byte [ecx + eax], 0
inc eax
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x10043c27
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
inc ebx
mov dword [esp + 0x98], ebx
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x54]
jl 0x10043a40
mov eax, dword [esp + 0x60]
xor ecx, ecx
movzx edi, ax
xor ebx, ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], ebx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add edi, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x48], edi
test eax, eax
jle 0x10043d6a
nop word [eax + eax]
mov esi, dword [esp + ebx*4 + 0xf0]
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 0x10043cc5
cmp edx, dword [esp + ecx*4 + 0xbc]
jne 0x10043cc5
dec ecx
mov dword [esp + 0x14], ecx
cmp byte [esp + 0xf], 0
jne 0x10043ce9
mov eax, dword [esp + 0x2c]
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 + 0x58], eax
mov dword [eax], edi
mov dword [esp + 0x18], 0
jbe 0x10043d49
lea ebx, [esi + 0x24]
nop dword [eax]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x20]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x20], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x10043d10
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x34]
mov dword [eax], edi
mov eax, dword [esp + 0x54]
inc ecx
mov edi, dword [esp + 0x48]
mov dword [esp + ebx*4 + 0x110], edx
inc ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ecx
cmp ebx, eax
jl 0x10043c90
mov ebx, dword [esp + 0x98]
mov esi, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x4c], 0
test eax, eax
jle 0x10043fb6
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ecx
nop word [eax + eax]
lea eax, [esp + 0xfc]
add eax, ecx
mov dword [esp + 0x58], eax
mov edi, dword [eax]
cmp edi, dword [esp + 0x48]
jle 0x10043ee3
mov ebx, dword [esp + 0x98]
jmp 0x10043e1b
push 0x10144edc
push 0x130fa
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov edi, 0xb
jmp 0x10044af2
push 0x10144edc
push 0x130e2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov edi, 0xb
jmp 0x10044af2
lea eax, [esp + 0xfc]
add eax, ecx
cmp edx, esi
jl 0x10043e41
inc edx
mov dword [esp + 0x24], edx
cmp edx, 5
jg 0x100440fb
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 0x10043e77
mov edx, ecx
lea ecx, [esp + 0x98]
call fcn.10042c10
mov edx, dword [esp + 0xa4]
movzx eax, ax
mov ecx, dword [esp + 0x58]
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0xf], 0
mov dword [ecx], edi
jne 0x10043eb4
cmp esi, ebx
jge 0x10043eb2
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10043eaa
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.10042c10
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x10043eb4
xor eax, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
add dword [esp + ecx + 0x100], eax
mov eax, dword [esp + 0x68]
mov dword [esp + ecx + 0x110], eax
cmp edi, dword [esp + 0x48]
jg 0x10043e12
mov ebx, dword [esp + 0x98]
mov esi, dword [esp + ecx + 0x110]
cmp esi, ebx
jge 0x10043f93
mov edx, dword [esp + 0xa4]
nop dword [eax]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10043f25
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.10042c10
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xa4]
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x48]
jg 0x100440d0
inc esi
mov dword [esp + ecx + 0xfc], edi
cmp byte [esp + 0xf], 0
mov dword [esp + ecx + 0x110], esi
jne 0x10043f80
cmp esi, ebx
jge 0x10043f7e
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x10043f72
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.10042c10
mov edx, dword [esp + 0xa4]
movzx eax, ax
mov ecx, dword [esp + 0x30]
movzx eax, ax
add eax, 2
jmp 0x10043f80
xor eax, eax
sub dword [esp + ecx + 0x100], eax
cmp esi, ebx
jl 0x10043f00
mov edx, dword [esp + 0x14]
mov esi, edx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x4c]
add ecx, 4
inc eax
mov dword [esp + 0x30], ecx
inc edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], edx
cmp eax, esi
jl 0x10043da0
lea eax, [esi - 1]
mov ecx, eax
mov dword [esp + 0x18], eax
test ecx, ecx
jle 0x10044192
nop word [eax + eax]
shl ecx, 2
mov dword [esp + 0x64], ecx
mov eax, dword [esp + ecx + 0xfc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + ecx + 0xf8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x110]
sub eax, 4
mov dword [esp + 0x34], eax
mov esi, dword [eax + ecx]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x30], esi
dec esi
mov edx, esi
sub edx, dword [esp + 0x5c]
inc edx
cmp word [eax + edx*2], 0
lea eax, [eax + edx*2]
mov dword [esp + 0x4c], eax
jne 0x1004402b
lea ecx, [esp + 0x98]
call fcn.10042c10
mov ebx, dword [esp + 0x58]
nop
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x10044051
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.10042c10
movzx eax, ax
movzx edi, ax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x58], edi
movzx edx, word [eax]
test ebx, ebx
je 0x10044098
cmp dword [ebp + 0x10], 0
jne 0x1004414b
mov ecx, dword [esp + 0x24]
add edx, ebx
dec ecx
mov eax, 2
cmp dword [esp + 0x18], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, eax
lea eax, [edx + 2]
sub ecx, edi
cmp eax, ecx
jg 0x1004414b
mov ecx, dword [esp + 0x14]
lea ebx, [edx + 2]
mov edx, dword [esp + 0x34]
mov eax, 0xfffffffe
sub dword [esp + 0x4c], 2
sub eax, edi
add ecx, eax
mov edi, esi
sub esi, 1
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edi
mov dword [edx + eax], edi
jns 0x10044030
jmp 0x1004415b
cmp esi, ebx
jge 0x10043f8f
cmp dword [esp + 0x4c], 0
jle 0x100440e8
mov eax, dword [esp + ecx + 0x10c]
jmp 0x100440ea
xor eax, eax
cmp esi, eax
jle 0x10044123
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
jmp 0x10043f99
push 0x10144edc
push 0x1315f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov edi, 0xb
jmp 0x10044af2
push 0x10144edc
push 0x13180
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov edi, 0xb
jmp 0x10044af2
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov dword [esp + eax + 0xf8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + eax + 0xfc], ebx
mov ebx, dword [esp + 0x98]
cmp ecx, 1
jbe 0x1004417f
mov eax, dword [edx + eax - 4]
jmp 0x10044181
xor eax, eax
cmp edi, eax
jle 0x100441fa
dec ecx
mov dword [esp + 0x18], ecx
test ecx, ecx
jg 0x10043fd0
mov eax, dword [esp + 0xf0]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x34], eax
lea eax, [esi + 1]
cmp dword [esp + 0x24], esi
jle 0x10044358
cmp esi, dword [esp + 0x54]
jge 0x10044286
mov edi, dword [esp + esi*4 + 0xf0]
mov dword [esp + esi*4 + 0xdc], edi
mov dword [esp + esi*4 + 0xf0], 0
mov dword [esp + 0x18], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x10044226
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x10044226
cmp dword [edx + 0x68], 0
je 0x10044222
call fcn.10035190
jmp 0x1004424f
push 0x10144edc
push 0x131ac
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov edi, 0xb
jmp 0x10044af2
xor edx, edx
jmp 0x10044251
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10044235
mov edx, eax
jmp 0x10044255
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x1004424a
call fcn.10036ae0
jmp 0x1004424f
call fcn.10036a50
mov edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x3c]
xor ecx, ecx
sub eax, dword [esp + 0x50]
inc dword [esp + 0x20]
cmp esi, eax
mov eax, dword [edi + 0x48]
sete cl
mov dword [esp + 0x1c], edx
inc ecx
cmp dword [eax + 0x20], ecx
jne 0x10044328
test edx, edx
jne 0x10044aee
jmp 0x10044317
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x18]
mov ecx, dword [esp + 0x38]
cmovne ecx, eax
lea eax, [esp + 0x28]
push 0
push ecx
mov ecx, dword [esp + 0x4c]
push eax
call fcn.100414a0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x10044aee
mov edi, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [esp + 0x34]
call fcn.1003d6e0
mov ecx, dword [esp + 0x44]
inc dword [esp + 0x20]
mov dword [esp + esi*4 + 0xdc], edi
mov dword [esp + esi*4 + 0x124], ebx
cmp byte [ecx + 0x11], 0
je 0x1004430f
mov edx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 4]
push 5
call fcn.1003c120
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x10], edi
test edi, edi
jne 0x10044af2
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
inc esi
cmp esi, dword [esp + 0x24]
jge 0x10044358
mov eax, 1
jmp 0x100441b2
test edx, edx
jne 0x10044aee
push 0x10144edc
push 0x131cd
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov edi, 0xb
jmp 0x10044af2
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jle 0x10044378
mov eax, dword [esp + ecx*4 + 0xdc]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x138], eax
inc ecx
cmp ecx, edx
jl 0x10044362
lea eax, [edx - 1]
xor edi, edi
mov dword [esp + 0x28], edi
test eax, eax
jle 0x1004448b
nop dword [eax]
lea eax, [edi + 1]
mov ebx, edi
mov dword [esp + 0x18], eax
mov esi, eax
cmp eax, edx
jge 0x1004447a
mov edi, dword [esp + 0x20]
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xdc]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xdc]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, edi
jl 0x100443b0
mov edi, dword [esp + 0x28]
mov dword [esp + 0x3c], ebx
cmp ebx, edi
je 0x10044472
mov ecx, dword [esp + edi*4 + 0xdc]
xor edx, edx
mov edi, dword [esp + 0x44]
mov esi, dword [esp + ebx*4 + 0xdc]
mov eax, dword [ecx + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [0x1015782c]
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.100310c0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + ecx*4 + 0xdc]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], di
mov edi, dword [esp + 0x5c]
mov edx, edi
call fcn.100310c0
mov ecx, dword [esp + 0x28]
mov edx, ebx
mov eax, dword [esp + ecx*4 + 0xdc]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], si
call fcn.100310c0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + ecx*4 + 0xdc]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + eax*4 + 0xdc]
mov dword [eax + 4], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edi, eax
lea eax, [edx - 1]
mov dword [esp + 0x28], edi
cmp edi, eax
jl 0x10044390
test byte [esp + 0x34], 8
mov eax, dword [esp + edx*4 + 0xd8]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x100444d8
mov ecx, dword [esp + 0x54]
cmp ecx, edx
je 0x100444d8
lea eax, [esp + 0xdc]
lea esi, [esp + 0xf0]
cmovge eax, esi
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + eax*4 + 0xd8]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x98]
cmp byte [eax + 0x11], 0
je 0x100446da
mov esi, dword [esp + 0xdc]
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x14], ecx
movzx edx, word [esi + 0x18]
movzx eax, byte [esi + 0xc]
add edx, eax
mov dword [esp + 0x18], edx
test ebx, ebx
jle 0x100446e1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x38], eax
cmp ecx, edx
jne 0x1004457d
mov ebx, dword [esp + 0x20]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
mov dword [esp + 0x5c], eax
inc edi
cmp edi, ebx
jge 0x10044553
mov esi, dword [esp + edi*4 + 0xdc]
jmp 0x1004455a
mov esi, dword [esp + edi*4 + 0xf0]
movzx eax, word [esi + 0x18]
add eax, dword [esp + 0x5c]
movzx ecx, byte [esi + 0xc]
add ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x14]
cmp ecx, edx
je 0x10044545
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x3c]
cmp ecx, dword [esp + eax + 0x110]
jne 0x100445b2
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
shl eax, 2
cmp byte [esp + 0xf], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + eax + 0xdc]
mov dword [esp + 0x24], eax
je 0x100446cd
jmp 0x100445b6
mov eax, dword [esp + 0x24]
cmp edi, dword [esp + 0x20]
jge 0x100445dc
mov eax, dword [eax + 4]
cmp eax, dword [esp + edi*4 + 0x138]
mov eax, dword [esp + 0x38]
jne 0x100445e0
cmp eax, dword [esi + 0x38]
jb 0x100445e0
cmp eax, dword [esi + 0x3c]
jb 0x100446cd
jmp 0x100445e0
mov eax, dword [esp + 0x38]
cmp word [esp + 0x60], 0
jne 0x10044612
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x48]
push dword [edx + 4]
mov edx, dword [eax]
push 5
bswap edx
call fcn.1003c120
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + ecx*2]
test ax, ax
jne 0x10044633
mov edx, ecx
lea ecx, [esp + 0x98]
call fcn.10042c10
movzx eax, ax
mov ecx, dword [esp + 0x24]
cmp ax, word [ecx + 0x10]
jbe 0x100446b9
cmp dword [esp + 0x10], 0
jne 0x10044aee
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x3c]
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 0x100446c5
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x38]
cmp ecx, edx
jae 0x10044684
add eax, ecx
cmp eax, edx
ja 0x1004475a
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
movzx eax, word [esp + 0x96]
push dword [edx + 4]
mov edx, dword [eax + ecx - 4]
mov eax, dword [esp + 0x2c]
push 3
bswap edx
mov ecx, dword [eax + 0x34]
call fcn.1003c120
mov edx, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x10], edx
jmp 0x100446bd
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x10044aee
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, ebx
jl 0x10044522
mov esi, dword [esp + 0xdc]
mov ecx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x3c], edi
lea eax, [ecx - 1]
test eax, eax
jle 0x100448c4
nop word [eax + eax]
mov eax, dword [esp + edi*4 + 0xdc]
mov esi, dword [esp + edi*4 + 0x110]
mov ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
movzx edx, bx
mov edi, dword [eax + esi*4]
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0x98]
movzx eax, word [eax + esi*2]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x10044782
mov ecx, dword [ecx + 0x38]
mov eax, dword [edi]
mov dword [ecx + 8], eax
jmp 0x10044848
push 0x10144edc
push 0x1169d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov edi, 0xb
jmp 0x10044af2
cmp byte [esp + 0xf], 0
je 0x1004482f
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 + 0x28]
mov edi, eax
mov ecx, dword [esp + 0x80]
test edx, edx
ja 0x10044815
jb 0x100447c8
cmp ecx, 0x7f
ja 0x100447e0
and cl, 0x7f
mov dword [esp + 0x28], 0
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
jmp 0x10044848
test edx, edx
ja 0x10044815
jb 0x100447ee
cmp ecx, 0x3fff
ja 0x10044815
mov eax, ecx
shrd eax, edx, 7
mov edx, dword [esp + 0x28]
or al, 0x80
mov dword [esp + 0x28], 0
and cl, 0x7f
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
jmp 0x10044848
push edx
push ecx
lea ecx, [eax + 4]
call fcn.1002b890
add esp, 8
mov dword [esp + 0x28], 0
lea edx, [eax + 4]
jmp 0x10044848
sub edi, 4
cmp eax, 4
jne 0x10044848
mov eax, dword [esp + 0x2c]
push edi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x70], edx
xor eax, eax
nop
cmp dword [esp + eax*4 + 0xc0], esi
jg 0x1004485f
inc eax
cmp eax, 6
jl 0x10044850
mov ecx, dword [esp + eax*4 + 0xa8]
cmp edi, ecx
jae 0x10044875
lea eax, [edx + edi]
cmp eax, ecx
ja 0x1004491f
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
push dword [eax + 4]
push dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x4c]
lea edx, [edx + edi]
call fcn.10042650
add esp, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10044aee
mov ecx, dword [esp + 0x20]
inc edi
mov dword [esp + 0x3c], edi
lea eax, [ecx - 1]
cmp edi, eax
jl 0x10044700
mov esi, dword [esp + 0xdc]
mov edi, 1
sub edi, ecx
mov dword [esp + 0x40], edi
cmp edi, ecx
jge 0x100449e2
mov eax, edi
cdq
mov ecx, eax
lea eax, [esp + 0x14c]
xor ecx, edx
sub ecx, edx
add eax, ecx
mov dword [esp + 0x5c], eax
cmp byte [eax], 0
jne 0x100449ca
test edi, edi
jns 0x1004490e
mov eax, dword [esp + ecx*4 + 0x120]
cmp eax, dword [esp + ecx*4 + 0x10c]
jl 0x100449ca
test ecx, ecx
jne 0x10044947
mov esi, dword [esp + 0x110]
xor edx, edx
xor eax, eax
jmp 0x1004497a
push 0x10144edc
push 0x13295
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov edi, 0xb
jmp 0x10044af2
cmp ecx, dword [esp + 0x54]
jge 0x1004495f
xor edx, edx
cmp byte [esp + 0xf], dl
sete dl
add edx, dword [esp + ecx*4 + 0x120]
jmp 0x10044961
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
lea edi, [ecx*4]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + edi + 0xe0]
push esi
push eax
call fcn.10043110
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10044aee
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + edi + 0xfc]
mov byte [eax], 1
mov eax, dword [esp + edi + 0xdc]
mov edi, dword [esp + 0x40]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x20]
inc edi
mov dword [esp + 0x40], edi
cmp edi, ecx
jl 0x100448d7
mov esi, dword [esp + 0xdc]
cmp dword [ebp + 0xc], 0
je 0x10044a4b
mov ebx, dword [esp + 0x2c]
cmp word [ebx + 0x18], 0
jne 0x10044a4b
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x10044a4b
or edx, 0xffffffff
mov ecx, esi
call fcn.1003c950
mov ecx, dword [esp + 0xdc]
mov edx, ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call fcn.10043630
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x10], edx
test edx, edx
jne 0x10044a9b
mov ecx, dword [esp + 0xdc]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.10041b20
mov edx, eax
add esp, 4
mov dword [esp + 0x10], edx
jmp 0x10044a9b
mov ebx, dword [esp + 0x44]
cmp byte [ebx + 0x11], 0
je 0x10044a97
cmp word [esp + 0x60], 0
jne 0x10044a97
xor esi, esi
test ecx, ecx
jle 0x10044a97
mov eax, dword [esp + esi*4 + 0xdc]
lea ecx, [esp + 0x1c]
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.1003c120
inc esi
add esp, 0xc
cmp esi, dword [esp + 0x20]
jl 0x10044a63
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
jmp 0x10044a9b
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x54]
cmp esi, ebx
jge 0x10044aee
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0xf0]
test edx, edx
jne 0x10044acd
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.10041b20
add esp, 4
mov edx, eax
inc esi
cmp esi, ebx
jl 0x10044ab0
mov dword [esp + 0x10], edx
jmp 0x10044aee
lea eax, [edi + 4]
push eax
lea eax, [esp + 0xf4]
push 0
push eax
call fcn.10117800
add esp, 0xc
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x10044b06
push eax
call fcn.10025b30
add esp, 4
mov ebx, dword [esp + 0x54]
xor esi, esi
test ebx, ebx
jle 0x10044b28
mov ecx, dword [esp + esi*4 + 0xf0]
test ecx, ecx
je 0x10044b23
mov ecx, dword [ecx + 0x48]
call fcn.100365d0
inc esi
cmp esi, ebx
jl 0x10044b10
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
jle 0x10044b4a
mov ecx, dword [esp + esi*4 + 0xdc]
test ecx, ecx
je 0x10044b45
mov ecx, dword [ecx + 0x48]
call fcn.100365d0
inc esi
cmp esi, ebx
jl 0x10044b32
mov ecx, dword [esp + 0x154]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10115f0d
mov esp, ebp
pop ebp
ret