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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x100fb074]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov eax, ecx
mov dword [esp + 0x18], 0
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x30], eax
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x114], 0
mov byte [esp + 0x118], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], ecx
push edi
test esi, esi
jne 0x1004b942
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.100b47d2
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x12]
movzx ecx, byte [eax + 1]
lea esi, [ecx + edi]
cmp esi, 2
jae 0x1004b956
xor edx, edx
jmp 0x1004b973
test edx, edx
je 0x1004b969
cmp edx, esi
jne 0x1004b968
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x1004b96c
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x5c], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x60], esi
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x1004b99f
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax + 5]
mov eax, dword [eax + 0x38]
add ecx, 8
add ecx, eax
jmp 0x1004b9ba
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x14]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov edx, dword [ecx]
lea edi, [esp + 0x88]
push 0
bswap edx
mov dword [esp + 0x80], ecx
lea edi, [edi + esi*4]
mov ecx, dword [esp + 0x3c]
push 0
push edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], edx
call fcn.100460c0
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1004bb8c
mov eax, dword [edi]
mov edx, esi
mov dword [esp + 0x64], edx
movzx ecx, word [eax + 0x12]
movzx eax, byte [eax + 1]
inc eax
add eax, dword [esp + 0x20]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x20], ecx
test eax, eax
je 0x1004bbf5
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
add eax, esi
movzx ecx, word [edi + 0x16]
cmp eax, ecx
jne 0x1004ba75
cmp byte [edi + 1], 0
je 0x1004ba75
mov eax, dword [edi + 0x20]
lea edi, [esi*4]
push eax
mov dword [esp + edi + 0x124], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x38]
bswap ecx
push eax
mov dword [esp + 0x50], ecx
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x44], ecx
call eax
movzx eax, ax
mov dword [esp + edi + 0xb0], eax
mov eax, dword [esp + 0x3c]
mov byte [eax + 1], 0
jmp 0x1004bb5b
movzx eax, byte [edi + 1]
mov ecx, dword [esp + 0x6c]
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, edx
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x14]
mov edi, dword [edi + 0x38]
movzx ecx, cx
and ecx, eax
lea eax, [edx*4 - 4]
add edi, ecx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x120]
add eax, ecx
mov dword [esp + 0x2c], eax
push edi
mov dword [eax], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
mov dword [esp + eax + 0xa8], edx
mov eax, dword [esp + 0x38]
test byte [eax + 0x16], 4
je 0x1004bb35
mov eax, dword [esp + 0x34]
mov ecx, edi
mov ebx, dword [esp + 0x38]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x24]
mov ebx, 0
jg 0x1004bbb1
mov eax, dword [esp + 0x80]
push edx
add eax, ecx
push edi
push eax
call fcn.100b6ae0
mov eax, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x44]
sub edi, dword [eax + 0x38]
mov eax, dword [esp + 0x2c]
add edi, dword [esp + 0x80]
mov dword [eax], edi
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x6c]
push eax
push edx
movzx eax, byte [edi + 1]
mov edx, dword [esp + 0x6c]
sub ecx, eax
dec edx
add edx, ecx
mov ecx, edi
call fcn.1004ace0
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x90]
mov ecx, dword [esp + 0x40]
add esp, 8
add edi, eax
push 0
push 0
push edi
call fcn.100460c0
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
test eax, eax
je 0x1004b9f8
lea eax, [esi*4 + 4]
push eax
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.100b7060
mov ebx, dword [esp + 0x24]
add esp, 0xc
xor eax, eax
jmp 0x1004cc02
push 0x100f3b28
push 0xf5c5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10035bd0
mov eax, dword [esp + 0x30]
add esp, 0x14
add eax, 4
mov ebx, 0xb
push eax
lea eax, [esp + 0x8c]
push 0
push eax
call fcn.100b7060
add esp, 0xc
xor eax, eax
jmp 0x1004cc02
mov eax, dword [esp + 0x38]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov ecx, dword [eax + 0x20]
lea edi, [esi + esi*2]
add edi, edi
add ecx, edi
call fcn.100335f0
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], eax
test eax, eax
jne 0x1004bc22
lea ebx, [eax + 7]
jmp 0x1004cc02
mov ecx, dword [esp + 0x88]
lea eax, [eax + esi*4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx + 4]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x64], eax
mov al, byte [ecx + 3]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x5c], eax
jle 0x1004be6e
xor edi, edi
nop dword [eax]
shl eax, 2
mov dword [esp + 0x78], eax
mov edx, dword [esp + eax + 0x88]
mov dword [esp + 0x40], edx
movzx eax, word [edx + 0x14]
mov ecx, dword [edx + 0x38]
mov esi, eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x68], esi
movzx esi, word [edx + 0xe]
add esi, ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], esi
mov al, byte [eax]
cmp al, byte [ecx]
jne 0x1004bf6e
movzx eax, byte [edx + 1]
movzx ecx, word [edx + 0x12]
add ecx, eax
mov eax, dword [esp + 0x58]
add ecx, ecx
push ecx
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.100b7060
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov cl, byte [eax + 1]
test cl, cl
je 0x1004bd5a
movzx edx, word [eax + 0x16]
test edx, edx
je 0x1004bd2a
nop
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 + 0x14]
add ecx, dword [esp + 0x44]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x4c], ebx
sub edx, 1
jne 0x1004bcf0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov cl, byte [eax + 1]
xor edx, edx
test cl, cl
je 0x1004bd5a
lea ecx, [eax + 0x20]
mov esi, dword [esp + 0x14]
lea ecx, [ecx + 4]
mov eax, dword [ecx - 4]
inc edx
mov dword [esi + ebx*4], eax
inc ebx
mov esi, dword [esp + 0x40]
mov dword [esp + 0x4c], ebx
movzx eax, byte [esi + 1]
cmp edx, eax
jl 0x1004bd33
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x40]
xor edx, edx
movzx ecx, word [eax + 0x12]
movzx eax, word [eax + 0xe]
add eax, dword [esp + 0x44]
lea eax, [eax + ecx*2]
mov ecx, eax
sub ecx, esi
inc ecx
shr ecx, 1
cmp esi, eax
cmova ecx, edx
mov dword [esp + 0x68], ecx
test ecx, ecx
je 0x1004bdb7
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [esp + 0x84]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x14]
add ecx, dword [esp + 0x44]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x4c], ebx
cmp edx, dword [esp + 0x68]
jb 0x1004bd83
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x1c]
mov dword [esp + edx + 0xec], ebx
cmp eax, dword [esp + 0x60]
jge 0x1004be5f
cmp byte [esp + 0x13], 0
jne 0x1004be5f
movzx eax, word [esp + edx + 0xa8]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x2c]
push eax
push dword [esp + edx + 0x124]
add esi, edi
mov word [ecx + ebx*2], ax
push esi
add edi, eax
call fcn.100b6ae0
mov eax, dword [esp + 0x70]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
movzx eax, ax
add eax, esi
mov dword [ecx + ebx*4], eax
mov eax, dword [esp + 0x64]
sub word [edx + ebx*2], ax
mov eax, dword [esp + 0x40]
cmp byte [eax + 4], 0
jne 0x1004be37
mov eax, dword [eax + 0x38]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x1004be52
cmp word [edx + ebx*2], 4
jae 0x1004be52
mov eax, dword [esp + 0x2c]
mov byte [eax + edi], 0
inc edi
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x1004be42
mov eax, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ebx
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x5c]
jl 0x1004bc70
mov eax, dword [esp + 0x64]
xor ecx, ecx
movzx edx, ax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x24]
add eax, 0xfffffff4
add edx, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x44], edx
test eax, eax
jle 0x1004bf2e
nop word [eax + eax]
mov esi, dword [esp + ecx*4 + 0x88]
mov edi, edx
movzx eax, word [esi + 0x10]
sub edi, eax
lea eax, [esp + 0xa8]
lea eax, [eax + ecx*4]
mov dword [eax], edi
mov dword [esp + 0x60], eax
js 0x1004bf96
cmp byte [esi + 1], 0
mov dword [esp + 0x2c], 0
jbe 0x1004bf0f
lea ebx, [esi + 0x20]
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 + 1]
cmp ecx, eax
jl 0x1004bed6
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
mov dword [eax], edi
mov eax, dword [esp + ecx*4 + 0xec]
mov dword [esp + ecx*4 + 0xbc], eax
inc ecx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x1004bea0
mov dword [esp + 0x20], 0
mov edi, eax
mov dword [esp + 0x40], edi
test eax, eax
jle 0x1004c163
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0xa8]
add eax, ecx
mov dword [esp + 0x60], eax
mov esi, dword [eax]
cmp esi, dword [esp + 0x44]
jle 0x1004c08e
jmp 0x1004bfc9
push 0x100f3b28
push 0xf608
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10035bd0
add esp, 0x14
mov ebx, 0xb
jmp 0x1004cbfe
push 0x100f3b28
push 0xf66a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10035bd0
add esp, 0x14
mov ebx, 0xb
jmp 0x1004cbfe
lea eax, [esp + 0xa8]
add eax, ecx
cmp edx, edi
jl 0x1004bfef
inc edx
mov dword [esp + 0x40], edx
cmp edx, 5
jg 0x1004c2a7
mov dword [esp + ecx + 0xac], 0
mov esi, dword [eax]
mov dword [esp + ecx + 0xc0], ebx
mov edi, dword [esp + ecx + 0xbc]
mov edx, dword [esp + 0x58]
lea ecx, [edi - 1]
mov dword [esp + 0x78], ecx
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x1004c024
mov edx, ecx
lea ecx, [esp + 0x4c]
call fcn.1004b070
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
movzx eax, ax
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x60]
movzx eax, ax
add eax, 2
sub esi, eax
cmp byte [esp + 0x13], 0
mov dword [ecx], esi
jne 0x1004c066
cmp edi, ebx
jge 0x1004c064
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x1004c05c
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.1004b070
mov ebx, dword [esp + 0x4c]
movzx eax, ax
mov dword [esp + 0x24], ebx
movzx eax, ax
add eax, 2
jmp 0x1004c066
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
add dword [esp + ecx + 0xac], eax
mov eax, dword [esp + 0x78]
mov dword [esp + ecx + 0xbc], eax
cmp esi, dword [esp + 0x44]
jg 0x1004bfc0
mov edi, dword [esp + ecx + 0xbc]
cmp edi, ebx
jge 0x1004c138
mov edx, dword [esp + 0x58]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x1004c0c8
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.1004b070
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
movzx eax, ax
mov dword [esp + 0x24], ebx
movzx eax, ax
add eax, 2
add esi, eax
cmp esi, dword [esp + 0x44]
jg 0x1004c27c
inc edi
mov dword [esp + ecx + 0xa8], esi
cmp byte [esp + 0x13], 0
mov dword [esp + ecx + 0xbc], edi
jne 0x1004c125
cmp edi, ebx
jge 0x1004c123
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x1004c117
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.1004b070
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
movzx eax, ax
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x1c]
movzx eax, ax
add eax, 2
jmp 0x1004c125
xor eax, eax
sub dword [esp + ecx + 0xac], eax
cmp edi, ebx
jl 0x1004c0a1
mov edx, dword [esp + 0x14]
mov edi, edx
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x20]
add ecx, 4
inc eax
mov dword [esp + 0x1c], ecx
inc edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edx
cmp eax, edi
jl 0x1004bf53
mov edx, dword [esp + 0x54]
mov dword [esp + 0x14], edx
lea ecx, [edi - 1]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jle 0x1004c354
shl ecx, 2
lea eax, [esp + 0xa8]
add eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
mov edi, dword [eax]
lea eax, [esp + ecx + 0xa4]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
sub eax, 4
mov dword [esp + 0x2c], eax
mov ebx, dword [eax + ecx]
mov ecx, dword [esp + 0x58]
lea esi, [ebx - 1]
mov edx, esi
sub edx, dword [esp + 0x70]
inc edx
lea eax, [edx + edx]
cmp word [eax + ecx], 0
mov dword [esp + 0x20], eax
jne 0x1004c1d4
lea ecx, [esp + 0x4c]
call fcn.1004b070
nop
mov ecx, dword [esp + 0x58]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x84], esi
mov dword [esp + 0x78], esi
jne 0x1004c1f5
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.1004b070
mov ecx, dword [esp + 0x58]
test edi, edi
je 0x1004c22b
cmp dword [ebp + 0x10], 0
mov edx, ebx
jne 0x1004c2ff
movzx eax, word [ecx + esi*2]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x58]
sub ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, 2
movzx eax, word [eax + ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x1004c2ff
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x2c]
movzx eax, word [edx + ecx]
sub edx, 2
add eax, 2
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x84]
add edi, eax
movzx eax, word [ecx + esi*2]
mov ecx, 0xfffffffe
sub ecx, eax
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov dword [ebx + ecx], esi
sub esi, 1
mov ebx, dword [esp + 0x78]
jns 0x1004c1d0
jmp 0x1004c303
cmp edi, ebx
jge 0x1004c134
cmp dword [esp + 0x20], 0
jle 0x1004c294
mov eax, dword [esp + ecx + 0xb8]
jmp 0x1004c296
xor eax, eax
cmp edi, eax
jle 0x1004c2d3
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
jmp 0x1004c13e
push 0x100f3b28
push 0xf676
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10035bd0
add esp, 0x14
mov ebx, 0xb
mov eax, dword [esp + 0x54]
jmp 0x1004cc02
push 0x100f3b28
push 0xf697
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10035bd0
mov eax, dword [esp + 0x68]
add esp, 0x14
mov ebx, 0xb
jmp 0x1004cc02
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x68]
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
cmp ecx, 1
jle 0x1004c329
mov ebx, dword [esp + 0x2c]
lea eax, [ecx*4]
mov eax, dword [eax + ebx - 4]
jmp 0x1004c32b
xor eax, eax
cmp edx, eax
jle 0x1004c3c9
dec ecx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jg 0x1004c172
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x88]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x20], eax
lea eax, [esi + 1]
test edi, edi
jle 0x1004c4d7
cmp esi, dword [esp + 0x5c]
jge 0x1004c434
mov eax, dword [esp + esi*4 + 0x88]
mov dword [esp + esi*4 + 0x94], eax
mov dword [esp + esi*4 + 0x88], 0
mov dword [esp + 0x2c], eax
mov ecx, dword [eax + 0x48]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1004c417
test byte [ecx + 0x18], 4
je 0x1004c3f9
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x14]
jb 0x1004c3f9
cmp dword [edx + 0x68], 0
je 0x1004c3f5
call fcn.1003fc70
jmp 0x1004c413
push 0x100f3b28
push 0xf6c1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10035bd0
mov eax, dword [esp + 0x68]
add esp, 0x14
mov ebx, 0xb
jmp 0x1004cc02
xor eax, eax
jmp 0x1004c413
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa0]
jbe 0x1004c40e
call fcn.10041430
jmp 0x1004c413
call fcn.10041390
mov dword [esp + 0x18], eax
inc dword [esp + 0x30]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1004c4c9
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
jmp 0x1004cc02
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x2c]
mov ecx, dword [esp + 0x48]
cmovne ecx, eax
lea eax, [esp + 0x3c]
push 0
push ecx
mov ecx, dword [esp + 0x40]
push eax
call fcn.10049d20
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], edi
test edi, edi
jne 0x1004cbfa
mov edi, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [esp + 0x20]
call fcn.10045f00
mov ecx, dword [esp + 0x38]
inc dword [esp + 0x30]
mov dword [esp + esi*4 + 0x94], edi
mov dword [esp + esi*4 + 0xec], ebx
cmp byte [ecx + 0x11], 0
je 0x1004c4bd
mov edx, dword [edi + 0x54]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x38]
push dword [eax + 0x54]
push 5
call fcn.10044ee0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1004cbfa
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x48], edx
inc esi
mov eax, 1
cmp esi, edi
jl 0x1004c372
mov esi, dword [esp + 0x30]
xor ecx, ecx
test esi, esi
jle 0x1004c636
nop word [eax + eax]
mov eax, dword [esp + ecx*4 + 0x94]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0x100], edx
mov dword [esp + ecx*4 + 0xd0], edx
mov ax, word [eax + 0x18]
mov word [esp + ecx*2 + 0x120], ax
xor eax, eax
test ecx, ecx
jle 0x1004c532
nop dword [eax]
cmp dword [esp + eax*4 + 0x100], edx
je 0x1004c6f9
inc eax
cmp eax, ecx
jl 0x1004c520
inc ecx
cmp ecx, esi
jl 0x1004c4f0
test esi, esi
jle 0x1004c636
xor ebx, ebx
xor edi, edi
lea edx, [edi + 1]
cmp esi, edx
jle 0x1004c56a
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0xd0]
mov ecx, edx
cmp eax, dword [esp + edi*4 + 0xd0]
cmovae ecx, edi
inc edx
mov edi, ecx
cmp edx, esi
jl 0x1004c550
mov eax, dword [esp + edi*4 + 0xd0]
mov dword [esp + 0x60], eax
mov dword [esp + edi*4 + 0xd0], 0xffffffff
cmp edi, ebx
je 0x1004c629
jle 0x1004c5d7
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov esi, dword [eax + 0x2c]
mov eax, dword [esp + edi*4 + 0x94]
inc esi
add esi, edi
push esi
mov eax, dword [eax + 0x48]
mov dword [esp + 0x74], eax
push dword [eax + 0x14]
mov word [eax + 0x18], cx
push dword [eax]
mov eax, dword [eax + 0x1c]
push dword [eax + 0x2c]
call dword [0x100fc878]
mov ecx, dword [esp + 0x80]
add esp, 0x10
mov al, byte [ecx + 0x18]
and al, 0xa
mov dword [ecx + 0x14], esi
cmp al, 0xa
jne 0x1004c5d7
mov dl, 3
call fcn.1003bd30
mov eax, dword [esp + ebx*4 + 0x94]
mov esi, dword [eax + 0x48]
mov ax, word [esp + edi*2 + 0x120]
mov edi, dword [esp + 0x60]
push edi
push dword [esi + 0x14]
mov word [esi + 0x18], ax
mov eax, dword [esi + 0x1c]
push dword [esi]
push dword [eax + 0x2c]
call dword [0x100fc878]
mov al, byte [esi + 0x18]
add esp, 0x10
and al, 0xa
mov dword [esi + 0x14], edi
cmp al, 0xa
jne 0x1004c61b
mov dl, 3
mov ecx, esi
call fcn.1003bd30
mov eax, dword [esp + ebx*4 + 0x94]
mov esi, dword [esp + 0x30]
mov dword [eax + 0x54], edi
inc ebx
cmp ebx, esi
jl 0x1004c541
mov ebx, dword [esp + 0x24]
test byte [esp + 0x20], 8
mov eax, dword [esp + esi*4 + 0x90]
mov ecx, dword [esp + 0x7c]
mov eax, dword [eax + 0x54]
bswap eax
mov dword [ecx], eax
jne 0x1004c67f
mov ecx, dword [esp + 0x5c]
cmp ecx, esi
je 0x1004c67f
lea edx, [esp + 0x88]
lea eax, [esp + 0x94]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + esi*4 + 0x90]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x38]
cmp byte [edx + 0x11], 0
je 0x1004c883
mov esi, dword [esp + 0x94]
xor edi, edi
mov dword [esp + 0x7c], 0
mov eax, dword [esi + 0x38]
movzx ecx, word [esi + 0x12]
mov dword [esp + 0x2c], eax
movzx eax, byte [esi + 1]
add ecx, eax
mov eax, dword [edx + 0x24]
xor edx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x1c], edx
test ebx, ebx
jle 0x1004c88a
xor eax, eax
mov dword [esp + 0x48], eax
nop
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + edi*4]
mov dword [esp + 0x3c], ecx
cmp edi, dword [esp + 0x20]
jne 0x1004c758
inc edx
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x30]
jge 0x1004c721
mov edx, dword [esp + edx*4 + 0x94]
jmp 0x1004c728
push 0x100f3b28
push 0xf70b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10035bd0
add esp, 0x14
mov ebx, 0xb
jmp 0x1004cbfe
mov edx, dword [esp + edx*4 + 0x88]
movzx eax, byte [edx + 1]
movzx ecx, word [edx + 0x12]
add ecx, eax
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
cmp edi, dword [esp + eax + 0xbc]
jne 0x1004c783
mov eax, dword [esp + 0x7c]
inc eax
mov dword [esp + 0x7c], eax
shl eax, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x48], eax
mov esi, dword [esp + eax + 0x94]
je 0x1004c876
cmp edx, dword [esp + 0x30]
jge 0x1004c7a9
mov eax, dword [esi + 0x54]
cmp eax, dword [esp + edx*4 + 0x100]
jne 0x1004c7a9
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jb 0x1004c7a9
add eax, dword [esp + 0x70]
cmp ecx, eax
jb 0x1004c872
cmp word [esp + 0x64], 0
jne 0x1004c7d3
mov edx, dword [ecx]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x38]
push eax
push dword [esi + 0x54]
bswap edx
push 5
call fcn.10044ee0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x1004c7fe
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.1004b070
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x4c]
movzx eax, ax
mov dword [esp + 0x24], ebx
cmp ax, word [esi + 0xc]
jbe 0x1004c866
cmp dword [esp + 0x18], 0
jne 0x1004cbfa
lea eax, [esp + 0xd0]
push eax
push dword [esp + 0x40]
mov eax, dword [esi + 0x50]
push esi
call eax
movzx eax, word [esp + 0xec]
add esp, 0xc
cmp eax, dword [esp + 0xdc]
jae 0x1004c872
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x28]
mov ecx, dword [esi + 0x34]
push eax
movzx eax, word [esp + 0xe6]
push dword [esi + 0x54]
push 3
mov edx, dword [eax + edx - 4]
bswap edx
call fcn.10044ee0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x1004c86a
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1004cbfa
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
inc edi
cmp edi, ebx
jl 0x1004c6d0
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x30]
xor edi, edi
dec eax
test eax, eax
jle 0x1004ca02
nop dword [eax]
mov eax, dword [esp + edi*4 + 0x94]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + edi*4 + 0xbc]
mov esi, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x58]
movzx edx, bx
mov ebx, dword [esp + 0x1c]
movzx ecx, word [ecx + eax*2]
mov eax, dword [esp + 0x80]
add edx, ecx
add eax, dword [esp + 0x74]
cmp byte [ebx + 4], 0
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
jne 0x1004c8ff
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x1004c9b3
cmp byte [esp + 0x13], 0
je 0x1004c99a
lea eax, [esp + 0x100]
push eax
mov eax, dword [esp + 0x74]
push dword [eax - 4]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax + 0x50]
call eax
mov edx, dword [esp + 0x110]
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov esi, eax
mov ecx, dword [esp + 0x100]
test edx, edx
ja 0x1004c986
jb 0x1004c945
cmp ecx, 0x7f
ja 0x1004c957
and cl, 0x7f
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x1004c9b7
test edx, edx
ja 0x1004c986
jb 0x1004c965
cmp ecx, 0x3fff
ja 0x1004c986
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov edx, dword [esp + 0x3c]
or al, 0x80
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x1004c9b7
push edx
push ecx
lea ecx, [eax + 4]
call fcn.10037370
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x1004c9b7
sub esi, 4
cmp ecx, 4
jne 0x1004c9b7
mov eax, dword [esp + 0x34]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov eax, dword [esp + 0x3c]
add dword [esp + 0x74], edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push dword [ecx + 0x54]
mov ecx, dword [esp + 0x3c]
push eax
push edx
mov edx, dword [esp + 0x7c]
push esi
lea edx, [edx + edi]
call fcn.1004ae10
mov eax, dword [esp + 0x3c]
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1004cbfa
mov eax, dword [esp + 0x30]
inc edi
dec eax
cmp edi, eax
jl 0x1004c8a0
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0x30]
mov eax, 1
sub eax, edi
mov dword [esp + 0x74], eax
cmp eax, edi
jge 0x1004cb08
nop dword [eax]
cdq
lea edi, [esp + 0x118]
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x1004cae4
cmp dword [esp + 0x74], 0
jge 0x1004ca54
mov eax, dword [esp + ecx*4 + 0xe8]
cmp eax, dword [esp + ecx*4 + 0xb8]
jl 0x1004cae4
test ecx, ecx
jne 0x1004ca65
mov edx, dword [esp + 0xbc]
xor ebx, ebx
xor eax, eax
jmp 0x1004ca94
cmp ecx, dword [esp + 0x5c]
jge 0x1004ca7b
xor ebx, ebx
cmp byte [esp + 0x13], bl
sete bl
add ebx, dword [esp + ecx*4 + 0xe8]
mov edx, dword [esp + ecx*4 + 0xbc]
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + ecx*4 + 0xb8]
sub edx, eax
lea esi, [ecx*4]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + esi + 0x98]
push edx
push eax
mov edx, ebx
call fcn.1004b370
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x1004c2ca
mov eax, dword [esp + esi + 0x94]
mov cx, word [esp + 0x44]
sub cx, word [esp + esi + 0xa8]
mov ebx, dword [esp + 0x4c]
mov byte [edi], 1
mov word [eax + 0x10], cx
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x30]
inc eax
mov dword [esp + 0x74], eax
cmp eax, edi
jl 0x1004ca20
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x94]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x1004cb73
mov ebx, dword [esp + 0x34]
cmp word [ebx + 0x12], 0
jne 0x1004cb73
movzx eax, byte [ebx + 5]
cmp ax, word [esi + 0x10]
ja 0x1004cb73
mov ecx, esi
call fcn.10045450
mov ecx, dword [esp + 0x94]
mov edx, ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.1004b7f0
mov edi, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
jne 0x1004cbc8
mov ecx, dword [esp + 0x94]
mov edx, ecx
push dword [ecx + 0x54]
mov ecx, dword [ecx + 0x34]
call fcn.1004a410
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
jmp 0x1004cbc8
mov ecx, dword [esp + 0x38]
cmp byte [ecx + 0x11], 0
je 0x1004cbc4
cmp word [esp + 0x64], 0
jne 0x1004cbc4
xor esi, esi
test edi, edi
jle 0x1004cbc4
nop dword [eax + eax]
mov eax, dword [esp + esi*4 + 0x94]
lea edx, [esp + 0x28]
push edx
push dword [eax + 0x54]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.10044ee0
mov ecx, dword [esp + 0x44]
inc esi
add esp, 0xc
cmp esi, edi
jl 0x1004cb90
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
jmp 0x1004cbc8
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
cmp esi, ebx
jge 0x1004cbfa
mov ecx, dword [esp + esi*4 + 0x88]
test edi, edi
jne 0x1004cbf1
push dword [ecx + 0x54]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.1004a410
add esp, 4
mov edi, eax
inc esi
cmp esi, ebx
jl 0x1004cbd4
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, eax
call fcn.10033700
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
jle 0x1004cc46
mov ecx, dword [esp + esi*4 + 0x88]
test ecx, ecx
je 0x1004cc41
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x1004cc31
call fcn.1003f710
jmp 0x1004cc36
call fcn.1003bef0
mov ecx, edi
call fcn.100409e0
mov eax, dword [esp + 0x5c]
inc esi
cmp esi, eax
jl 0x1004cc13
mov eax, dword [esp + 0x30]
xor esi, esi
test eax, eax
jle 0x1004cc83
mov ecx, dword [esp + esi*4 + 0x94]
test ecx, ecx
je 0x1004cc7e
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x1004cc6e
call fcn.1003f710
jmp 0x1004cc73
call fcn.1003bef0
mov ecx, edi
call fcn.100409e0
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
jl 0x1004cc50
mov ecx, dword [esp + 0x12c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b47d2
mov esp, ebp
pop ebp
ret