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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ecx + 0x34]
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], al
mov dword [ebp - 0x98], edi
cmp esi, eax
jne 0x495c75
pop edi
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba901
mov esp, ebp
pop ebp
ret
movzx esi, word [ecx + 0x12]
push ebx
movzx ebx, byte [ecx + 1]
lea edi, [ebx + esi]
cmp edi, 2
jl 0x495ca0
cmp dword [ebp + 8], eax
je 0x495c99
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x495c98
lea eax, [edi + edx - 2]
jmp 0x495c99
dec eax
mov edi, 2
sub edi, edx
mov dword [ebp - 0xc8], eax
sub eax, ebx
add eax, edi
lea edx, [edi + 1]
mov dword [ebp - 0xac], edx
cmp eax, esi
jne 0x495cc4
movzx eax, byte [ecx + 6]
mov ecx, dword [ecx + 0x38]
lea eax, [eax + ecx + 8]
jmp 0x495cdf
mov edx, dword [ecx + 0x40]
lea esi, [edx + eax*2]
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shl edx, 8
or eax, edx
movzx edx, word [ecx + 0x14]
and eax, edx
add eax, dword [ecx + 0x38]
movzx ebx, byte [eax]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp - 0x98]
shl ebx, 8
mov dword [ebp - 0xd4], eax
movzx eax, byte [eax + 3]
or ebx, edx
push 0
lea esi, [ebp + edi*4 - 0xe0]
shl ebx, 8
or ebx, eax
push esi
push ecx
mov dword [ebp - 0x94], ebx
call fcn.00494f30
add esp, 0xc
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x495ec3
mov esi, dword [esi]
movzx eax, byte [esi + 1]
add eax, dword [ebp - 0x9c]
movzx edx, word [esi + 0x12]
mov ecx, edi
lea eax, [eax + edx + 1]
dec edi
mov dword [ebp - 0x9c], eax
test ecx, ecx
je 0x495ee1
mov ebx, dword [ebp - 0xcc]
movzx edx, word [ebx + 0x16]
mov eax, dword [ebp - 0xc8]
add eax, edi
cmp eax, edx
jne 0x495dba
cmp byte [ebx + 1], 0
je 0x495dba
mov eax, dword [ebx + 0x20]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 3]
shl ecx, 8
mov dword [ebp + edi*4 - 0xec], eax
or ecx, edx
push eax
mov eax, ebx
mov dword [ebp - 0x94], ecx
call fcn.0044a220
movzx eax, ax
add esp, 4
mov dword [ebp + edi*4 - 0x40], eax
mov byte [ebx + 1], 0
jmp 0x495e96
movzx ecx, byte [ebx + 1]
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebx + 0x40]
sub edx, ecx
add edx, edi
movzx esi, byte [eax + edx*2 + 1]
lea eax, [eax + edx*2]
movzx eax, byte [eax]
shl eax, 8
or esi, eax
movzx eax, word [ebx + 0x14]
and esi, eax
add esi, dword [ebx + 0x38]
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [ebp - 0x94], eax
push esi
mov eax, ebx
mov dword [ebp + edi*4 - 0xec], esi
call fcn.0044a220
mov ecx, dword [ebp - 0x98]
movzx eax, ax
add esp, 4
test byte [ecx + 0x16], 4
mov dword [ebp - 0xb8], eax
mov dword [ebp + edi*4 - 0x40], eax
je 0x495e6f
mov edx, dword [ebp - 0xb8]
mov eax, esi
sub eax, dword [ebx + 0x38]
add edx, eax
cmp edx, dword [ecx + 0x24]
jg 0x496ccc
mov ecx, dword [ebp - 0xb8]
push ecx
push esi
mov esi, dword [ebp - 0x104]
lea edx, [esi + eax]
push 0xffffffffffffffff
push edx
call fcn.004bb874
sub esi, dword [ebx + 0x38]
add esp, 0x10
add dword [ebp + edi*4 - 0xec], esi
movzx edx, byte [ebx + 1]
mov ecx, dword [ebp - 0xb8]
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0xc8]
sub eax, edx
push ecx
add eax, edi
push eax
mov esi, ebx
call fcn.00476f60
add esp, 0xc
mov ecx, dword [ebp - 0x98]
mov ebx, dword [ebp - 0x94]
push 0
lea esi, [ebp + edi*4 - 0xe0]
push esi
push ecx
call fcn.00494f30
add esp, 0xc
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x495d30
lea edx, [edi*4 + 4]
push edx
lea eax, [ebp - 0xe0]
push 0
push eax
call fcn.004bad00
add esp, 0xc
jmp 0x496d05
mov edx, dword [ebp - 0x98]
lea esi, [eax + 3]
mov eax, dword [edx + 0x20]
and esi, 0xfffffffc
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
call fcn.00452460
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x495f14
mov dword [ebp - 0x8c], 7
jmp 0x496d05
lea eax, [eax + esi*4]
lea ecx, [eax + esi*2]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xe0]
movzx edx, byte [eax + 5]
add dx, dx
add dx, dx
cmp dword [ebp - 0xac], 0
mov dword [ebp - 0xa0], ecx
movzx ecx, dx
movzx edx, byte [eax + 3]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0x88], 0
jle 0x4961a0
mov eax, dword [ebp - 0xac]
dec eax
mov dword [ebp - 0xd0], eax
lea ecx, [ecx]
mov ecx, dword [ebp - 0x88]
mov esi, dword [ebp + ecx*4 - 0xe0]
mov al, byte [esi + 1]
movzx edx, word [esi + 0x12]
movzx ecx, al
add edx, ecx
mov dword [ebp - 0xc0], edx
test al, al
je 0x49602c
mov dword [ebp - 0x9c], 0
test edx, edx
jle 0x4960aa
mov edi, dword [ebp - 0xa8]
nop
movzx eax, byte [esi + 1]
dec eax
mov ecx, dword [ebp - 0x9c]
js 0x495fd1
lea ebx, [esi + eax*2 + 0x16]
movzx edx, word [ebx]
cmp edx, ecx
jg 0x495fcb
je 0x496026
dec ecx
sub ebx, 2
dec eax
jns 0x495fc1
mov edx, dword [esi + 0x40]
movzx eax, byte [edx + ecx*2]
lea ecx, [edx + ecx*2]
movzx ecx, byte [ecx + 1]
movzx edx, word [esi + 0x14]
shl eax, 8
or eax, ecx
and eax, edx
add eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0xb4]
mov dword [ecx + edi*4], eax
push eax
mov eax, esi
call fcn.0044a220
mov edx, dword [ebp - 0xa4]
mov word [edx + edi*2], ax
mov eax, dword [ebp - 0x9c]
inc eax
add esp, 4
inc edi
mov dword [ebp - 0x9c], eax
cmp eax, dword [ebp - 0xc0]
jl 0x495fb0
jmp 0x4960a4
mov eax, dword [esi + eax*4 + 0x20]
jmp 0x495fed
mov eax, dword [esi + 0x38]
movzx ecx, word [esi + 0xe]
mov dword [ebp - 0x9c], eax
movzx eax, word [esi + 0x14]
test edx, edx
jle 0x4960aa
mov edi, dword [ebp - 0xa8]
mov ebx, ecx
add ebx, dword [ebp - 0x9c]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
nop
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, dword [ebp - 0x9c]
shl ecx, 8
or ecx, edx
and ecx, dword [ebp - 0xc0]
add eax, ecx
mov ecx, dword [ebp - 0xb4]
mov dword [ecx + edi*4], eax
push eax
mov eax, esi
call fcn.0044a220
mov edx, dword [ebp - 0xa4]
mov word [edx + edi*2], ax
add esp, 4
inc edi
add ebx, 2
dec dword [ebp - 0xbc]
jne 0x496060
mov dword [ebp - 0xa8], edi
mov eax, dword [ebp - 0x88]
mov ebx, dword [ebp - 0xa8]
mov dword [ebp + eax*4 - 0x84], ebx
cmp eax, dword [ebp - 0xd0]
jge 0x49618d
cmp dword [ebp - 0xb0], 0
jne 0x49618d
movzx eax, word [ebp + eax*4 - 0x40]
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xa4]
add edx, ecx
push eax
add ecx, eax
mov word [edi + ebx*2], ax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp + eax*4 - 0xec]
push ecx
push 0xffffffffffffffff
push edx
mov dword [ebp - 0xc0], edx
call fcn.004bb874
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
movzx edx, ax
add edx, dword [ebp - 0xc0]
add esp, 0x10
mov dword [ecx + ebx*4], edx
sub word [edi + ebx*2], ax
cmp byte [esi + 5], 0
mov ax, word [edi + ebx*2]
jne 0x49615a
mov eax, dword [esi + 0x38]
mov ecx, dword [ecx + ebx*4]
push 4
add eax, 8
push eax
push 0xffffffffffffffff
push ecx
call fcn.004bb874
add esp, 0x10
jmp 0x496180
cmp ax, 4
jae 0x496180
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xa0]
mov byte [edx + eax], 0
inc eax
mov dword [ebp - 0xc4], eax
mov eax, 4
mov word [edi + ebx*2], ax
mov eax, dword [ebp - 0x88]
inc ebx
mov dword [ebp - 0xa8], ebx
inc eax
mov dword [ebp - 0x88], eax
cmp eax, dword [ebp - 0xac]
jl 0x495f70
movzx eax, word [ebp - 0xb8]
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x24]
mov esi, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xa4]
mov dword [ebp - 0xe8], eax
lea eax, [edx + eax - 0xc]
mov dword [ebp - 0xc0], eax
xor ecx, ecx
xor edi, edi
xor eax, eax
test esi, esi
jle 0x496218
jmp 0x4961e0
movzx edx, word [ebx + ecx*2]
lea eax, [eax + edx + 2]
cmp eax, dword [ebp - 0xc0]
jle 0x496213
sub eax, edx
sub eax, 2
cmp dword [ebp - 0xb0], 0
mov dword [ebp + edi*4 - 0x40], eax
mov dword [ebp + edi*4 - 0x2c], ecx
je 0x496207
dec ecx
inc edi
xor eax, eax
cmp edi, 4
jg 0x4962a4
inc ecx
cmp ecx, esi
jl 0x4961e0
mov dword [ebp + edi*4 - 0x40], eax
mov dword [ebp + edi*4 - 0x2c], esi
inc edi
mov dword [ebp - 0xa0], edi
dec edi
mov dword [ebp - 0x88], edi
test edi, edi
jle 0x4962e3
jmp 0x496240
mov edx, dword [ebp + edi*4 - 0x40]
mov esi, dword [ebp + edi*4 - 0x44]
mov eax, dword [ebp + edi*4 - 0x30]
dec eax
mov ecx, eax
sub ecx, dword [ebp - 0xb0]
inc ecx
test edx, edx
je 0x496289
cmp dword [ebp + 0x14], 0
jne 0x4962cc
movzx edi, word [ebx + eax*2]
mov ebx, esi
sub ebx, edi
mov edi, dword [ebp - 0xa4]
movzx edi, word [edi + ecx*2]
sub ebx, 2
lea edi, [edi + edx + 2]
cmp edi, ebx
mov ebx, dword [ebp - 0xa4]
mov edi, dword [ebp - 0x88]
jg 0x4962cc
movzx ecx, word [ebx + ecx*2]
movzx eax, word [ebx + eax*2]
lea edx, [edx + ecx + 2]
mov ecx, 0xfffffffe
sub ecx, eax
add esi, ecx
dec dword [ebp + edi*4 - 0x30]
jmp 0x496248
push 0x5246cc
push 0xea4d
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004681e0
add esp, 0x10
mov dword [ebp - 0x8c], 0xb
jmp 0x496d05
mov dword [ebp + edi*4 - 0x40], edx
mov dword [ebp + edi*4 - 0x44], esi
dec edi
mov dword [ebp - 0x88], edi
test edi, edi
jg 0x496240
mov eax, dword [ebp - 0xe0]
cmp dword [eax + 0x48], 1
ja 0x4962fb
push 0x5246cc
push 0xea88
jmp 0x4962ae
mov edx, dword [eax + 0x38]
movzx eax, byte [edx]
xor edi, edi
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xa0], edi
jle 0x49643d
mov ebx, dword [ebp - 0xa0]
jmp 0x496320
cmp edi, dword [ebp - 0xac]
jge 0x49638f
mov eax, dword [ebp + edi*4 - 0xe0]
mov dword [ebp + edi*4 - 0x100], eax
mov dword [ebp - 0xa0], eax
mov eax, dword [eax + 0x44]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x94]
mov dword [ebp + edi*4 - 0xe0], 0
cmp edx, dword [ecx + 0x98]
jbe 0x496377
push eax
call fcn.0048b310
inc dword [ebp - 0x90]
add esp, 4
mov dword [ebp - 0x8c], eax
test eax, eax
jmp 0x49642e
call fcn.0048b160
inc dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
test eax, eax
jmp 0x49642e
cmp dword [ebp + 0x14], 0
mov eax, 1
jne 0x4963a0
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x98]
push 0
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xa0]
push ecx
push edx
call fcn.00490ba0
add esp, 0x14
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x496d05
mov eax, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xa0]
push eax
call fcn.00476c50
mov ecx, dword [ebp - 0xa8]
inc dword [ebp - 0x90]
mov dword [ebp + edi*4 - 0x84], ecx
mov ecx, dword [ebp - 0x98]
add esp, 4
cmp byte [ecx + 0x11], 0
mov dword [ebp + edi*4 - 0x100], esi
je 0x496434
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [eax + 0x48]
mov eax, dword [esi + 0x48]
push edx
push 5
call fcn.0048c030
add esp, 0xc
cmp dword [ebp - 0x8c], 0
jne 0x496d05
inc edi
cmp edi, ebx
jl 0x496320
mov edi, dword [ebp - 0x90]
xor eax, eax
test edi, edi
jle 0x496488
lea esp, [esp]
mov ecx, dword [ebp + eax*4 - 0x100]
mov edx, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x44]
mov cx, word [ecx + 0x18]
mov word [ebp + eax*2 - 0x18], cx
xor ecx, ecx
mov dword [ebp + eax*4 - 0x6c], edx
mov dword [ebp + eax*4 - 0x54], edx
test eax, eax
jle 0x496483
cmp dword [ebp + ecx*4 - 0x6c], edx
je 0x496571
inc ecx
cmp ecx, eax
jl 0x496474
inc eax
cmp eax, edi
jl 0x496450
xor ecx, ecx
mov dword [ebp - 0x88], ecx
test edi, edi
jle 0x4966ca
xor ebx, ebx
lea eax, [ebx + 1]
cmp edi, eax
jle 0x4964d0
xor edx, edx
jmp 0x4964b0
lea ecx, [eax*4]
mov esi, dword [ebp + ecx - 0x54]
cmp esi, dword [ebp + edx - 0x54]
jae 0x4964c5
mov ebx, eax
mov edx, ecx
inc eax
cmp eax, edi
jl 0x4964b0
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp + ebx*4 - 0x54]
mov dword [ebp - 0x94], edx
mov dword [ebp + ebx*4 - 0x54], 0xffffffff
cmp ebx, ecx
je 0x4966bb
jle 0x4965d7
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp + ebx*4 - 0x100]
mov esi, dword [edx + 0x44]
mov edx, dword [esi]
lea edi, [ecx + ebx + 1]
mov ecx, dword [esi + 0x14]
xor eax, eax
push edi
mov word [esi + 0x18], ax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [eax + 0x28]
push edx
push ecx
call dword [0x5465bc]
movzx eax, word [esi + 0x18]
add esp, 0x10
mov dword [esi + 0x14], edi
test al, 2
je 0x4965d7
test al, 4
je 0x4965d7
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 8], esi
jne 0x496560
mov eax, dword [esi + 0x24]
test eax, eax
je 0x49655d
jmp 0x496550
test byte [eax + 0x18], 4
je 0x49655d
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x496550
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x20]
xor edx, edx
cmp eax, edx
je 0x496580
mov edi, dword [esi + 0x24]
mov dword [eax + 0x24], edi
jmp 0x496586
push 0x5246cc
push 0xeabf
jmp 0x4962ae
mov eax, dword [esi + 0x24]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x24]
cmp eax, edx
je 0x496595
mov edi, dword [esi + 0x20]
mov dword [eax + 0x20], edi
jmp 0x4965a7
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
cmp eax, edx
jne 0x4965a7
cmp byte [ecx + 0x1c], dl
je 0x4965a7
mov byte [ecx + 0x1d], 2
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov eax, dword [ecx]
mov dword [esi + 0x20], eax
cmp eax, edx
je 0x4965bb
mov dword [eax + 0x24], esi
jmp 0x4965c7
mov dword [ecx + 4], esi
cmp byte [ecx + 0x1c], dl
je 0x4965c7
mov byte [ecx + 0x1d], 1
mov dword [ecx], esi
cmp dword [ecx + 8], edx
jne 0x4965d7
test byte [esi + 0x18], 4
jne 0x4965d7
mov dword [ecx + 8], esi
mov ecx, dword [ebp - 0x88]
mov edi, dword [ebp + ecx*4 - 0x100]
mov esi, dword [edi + 0x44]
mov dx, word [ebp + ebx*2 - 0x18]
mov ebx, dword [ebp - 0x94]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
push ebx
mov word [esi + 0x18], dx
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [edx + 0x28]
push ecx
push eax
call dword [0x5465bc]
movzx eax, word [esi + 0x18]
add esp, 0x10
mov dword [esi + 0x14], ebx
test al, 2
je 0x4966ac
test al, 4
je 0x4966ac
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 8], esi
jne 0x496644
mov eax, dword [esi + 0x24]
test eax, eax
je 0x496641
test byte [eax + 0x18], 4
je 0x496641
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x496634
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x496653
mov edx, dword [esi + 0x24]
mov dword [eax + 0x24], edx
jmp 0x496659
mov eax, dword [esi + 0x24]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x496668
mov edx, dword [esi + 0x20]
mov dword [eax + 0x20], edx
jmp 0x49667a
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
test eax, eax
jne 0x49667a
cmp byte [ecx + 0x1c], al
je 0x49667a
mov byte [ecx + 0x1d], 2
xor edx, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov eax, dword [ecx]
mov dword [esi + 0x20], eax
cmp eax, edx
je 0x496690
mov dword [eax + 0x24], esi
jmp 0x49669c
mov dword [ecx + 4], esi
cmp byte [ecx + 0x1c], dl
je 0x49669c
mov byte [ecx + 0x1d], 1
mov dword [ecx], esi
cmp dword [ecx + 8], edx
jne 0x4966ac
test byte [esi + 0x18], 4
jne 0x4966ac
mov dword [ecx + 8], esi
mov ecx, dword [ebp - 0x88]
mov dword [edi + 0x48], ebx
mov edi, dword [ebp - 0x90]
inc ecx
mov dword [ebp - 0x88], ecx
cmp ecx, edi
jl 0x496498
mov esi, dword [ebp + edi*4 - 0x104]
mov eax, dword [esi + 0x48]
mov ecx, dword [ebp - 0xd4]
mov edx, eax
shr edx, 0x18
mov byte [ecx], dl
mov edx, eax
shr edx, 0x10
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 8
test byte [ebp - 0xbc], 8
mov byte [ecx + 2], dl
mov byte [ecx + 3], al
jne 0x496733
mov eax, dword [ebp - 0xac]
cmp edi, eax
je 0x496733
lea ecx, [ebp - 0x100]
jg 0x496715
lea ecx, [ebp - 0xe0]
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [eax + 0x38]
mov edx, dword [esi + 0x38]
push 4
add ecx, 8
push ecx
add edx, 8
push 0xffffffffffffffff
push edx
call fcn.004bb874
add esp, 0x10
mov eax, dword [ebp - 0x98]
cmp byte [eax + 0x11], 0
mov eax, dword [ebp - 0x100]
je 0x496939
mov ecx, dword [eax + 0x38]
movzx ebx, word [eax + 0x12]
movzx edx, byte [eax + 1]
mov edi, eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [eax + 0x24]
xor eax, eax
add ebx, edx
mov dword [ebp - 0xd0], ecx
xor ecx, ecx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0xa8], eax
jle 0x496939
mov dword [ebp - 0xbc], eax
jmp 0x4967a6
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xb4]
mov esi, dword [edx + eax*4]
cmp eax, ebx
jne 0x496805
inc ecx
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [ebp - 0x90]
jge 0x4967cb
mov eax, dword [ebp + ecx*4 - 0x100]
jmp 0x4967d2
mov eax, dword [ebp + ecx*4 - 0xe0]
movzx edx, byte [eax + 1]
movzx ecx, word [eax + 0x12]
mov eax, dword [eax + 0x38]
add ecx, edx
xor edx, edx
cmp dword [ebp - 0xb0], edx
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x88]
sete dl
add edx, dword [ebp - 0xd4]
lea ebx, [edx + ecx]
mov dword [ebp - 0xd4], ebx
mov ecx, dword [ebp - 0xbc]
cmp eax, dword [ebp + ecx - 0x2c]
jne 0x49683c
mov ecx, dword [ebp - 0xa0]
inc ecx
mov dword [ebp - 0xa0], ecx
add ecx, ecx
add ecx, ecx
cmp dword [ebp - 0xb0], 0
mov edi, dword [ebp + ecx - 0x100]
mov dword [ebp - 0xbc], ecx
je 0x496926
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0x90]
jge 0x49686d
mov edx, dword [edi + 0x48]
cmp edx, dword [ebp + ecx*4 - 0x6c]
jne 0x49686d
mov ecx, dword [ebp - 0xc4]
cmp esi, ecx
jb 0x49686d
mov edx, dword [ebp - 0xd0]
add edx, ecx
cmp esi, edx
jb 0x496926
cmp word [ebp - 0xb8], 0
jne 0x4968b6
movzx edx, byte [esi + 1]
mov ecx, dword [edi + 0x48]
lea eax, [ebp - 0x8c]
push eax
movzx eax, byte [esi]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 3]
push ecx
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp - 0x98]
shl eax, 8
push 5
or eax, edx
call fcn.0048c030
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov ecx, dword [ebp - 0xa4]
mov dx, word [ecx + eax*2]
cmp dx, word [edi + 0xc]
jbe 0x496926
cmp dword [ebp - 0x8c], 0
jne 0x496926
push esi
push edi
lea eax, [ebp - 0x58]
call fcn.0044a0e0
mov ax, word [ebp - 0x46]
add esp, 8
test ax, ax
je 0x496920
mov edx, dword [edi + 0x48]
movzx ecx, ax
add ecx, esi
lea eax, [ebp - 0x8c]
push eax
movzx eax, byte [ecx + 1]
push edx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov ecx, dword [edi + 0x34]
push 3
call fcn.0048c030
add esp, 0xc
mov eax, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x88], eax
cmp eax, dword [ebp - 0xa8]
jl 0x4967a0
mov eax, dword [ebp - 0x90]
dec eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xd0], eax
test eax, eax
jle 0x496aca
mov eax, dword [ebp - 0x88]
mov edi, edi
mov edi, dword [ebp + eax*4 - 0x100]
mov eax, dword [ebp + eax*4 - 0x2c]
mov edx, dword [ebp - 0xb4]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0xe4]
add ebx, dword [ebp - 0x104]
mov dword [ebp - 0x94], ecx
movzx ecx, word [edx + eax*2]
mov esi, ecx
add esi, dword [ebp - 0xe8]
cmp byte [edi + 5], 0
jne 0x4969bd
mov eax, dword [ebp - 0x94]
mov ecx, dword [edi + 0x38]
push 4
push eax
add ecx, 8
push 0xffffffffffffffff
push ecx
call fcn.004bb874
add esp, 0x10
jmp 0x496a6e
cmp dword [ebp - 0xb0], 0
je 0x496a4a
mov edx, dword [ebp - 0xb4]
mov eax, dword [edx + eax*4 - 4]
push eax
push edi
lea eax, [ebp - 0x70]
call fcn.0044a0e0
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
add esp, 8
mov dword [ebp - 0x94], ebx
test edx, edx
ja 0x496a36
jb 0x4969f8
cmp eax, 0x7f
ja 0x496a09
and al, 0x7f
mov byte [ebx + 4], al
mov eax, 1
lea esi, [eax + 4]
xor ebx, ebx
jmp 0x496a6e
test edx, edx
ja 0x496a36
jb 0x496a16
cmp eax, 0x3fff
ja 0x496a36
mov ecx, eax
shrd ecx, edx, 7
and al, 0x7f
or cl, 0x80
mov byte [ebx + 5], al
mov eax, 2
shr edx, 7
mov byte [ebx + 4], cl
lea esi, [eax + 4]
xor ebx, ebx
jmp 0x496a6e
push edx
push eax
lea ecx, [ebx + 4]
call fcn.00445e80
add esp, 8
lea esi, [eax + 4]
xor ebx, ebx
jmp 0x496a6e
sub dword [ebp - 0x94], 4
cmp ecx, 4
jne 0x496a6e
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0xcc]
push edx
call fcn.0044a220
add esp, 4
movzx esi, ax
mov ecx, dword [edi + 0x48]
mov edx, dword [ebp - 0x94]
add dword [ebp - 0xe4], esi
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0x88]
push ecx
mov ecx, dword [ebp - 0xcc]
push esi
push edx
push eax
mov eax, ebx
call fcn.0048c470
add esp, 0x14
cmp dword [ebp - 0x8c], 0
jne 0x496d05
mov eax, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x88], eax
cmp eax, dword [ebp - 0xd0]
jl 0x496960
mov edi, dword [ebp - 0x90]
mov ecx, 1
sub ecx, edi
mov dword [ebp - 0x88], ecx
cmp ecx, edi
jge 0x496bad
mov ebx, dword [ebp - 0xb0]
jmp 0x496af0
mov eax, ecx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp byte [ebp + esi - 0xc], 0
jne 0x496b9e
test ecx, ecx
jns 0x496b19
mov edx, dword [ebp + esi*4 - 0x88]
cmp edx, dword [ebp + esi*4 - 0x30]
jl 0x496b9e
test esi, esi
jne 0x496b26
mov eax, dword [ebp - 0x2c]
xor edx, edx
xor ecx, ecx
jmp 0x496b55
cmp esi, dword [ebp - 0xac]
jge 0x496b3e
xor edx, edx
test ebx, ebx
sete dl
add edx, dword [ebp + esi*4 - 0x88]
jmp 0x496b44
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp + esi*4 - 0x2c]
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, dword [ebp + esi*4 - 0x30]
sub eax, ecx
mov ebx, dword [ebp - 0xa4]
mov edi, dword [ebp + esi*4 - 0x100]
push ebx
mov ebx, dword [ebp - 0xb4]
push ebx
push eax
push ecx
push edx
mov eax, edi
call fcn.00477500
mov ax, word [ebp - 0xc0]
mov ecx, dword [ebp - 0x88]
mov ebx, dword [ebp - 0xb0]
add esp, 0x14
sub ax, word [ebp + esi*4 - 0x40]
mov byte [ebp + esi - 0xc], 1
mov word [edi + 0x10], ax
mov edi, dword [ebp - 0x90]
inc ecx
mov dword [ebp - 0x88], ecx
cmp ecx, edi
jl 0x496af0
cmp dword [ebp + 0x10], 0
je 0x496c1b
mov eax, dword [ebp - 0xcc]
cmp word [eax + 0x12], 0
jne 0x496c1b
movzx ecx, byte [eax + 6]
mov edx, dword [ebp - 0x100]
cmp cx, word [edx + 0x10]
ja 0x496c1b
mov edi, edx
call fcn.00476270
mov ebx, dword [ebp - 0xcc]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x8c]
push eax
mov eax, edi
call fcn.0048c620
add esp, 4
cmp dword [ebp - 0x8c], 0
jne 0x496c88
mov ecx, dword [edi + 0x48]
mov edx, dword [edi + 0x34]
push ecx
push edx
mov eax, edi
call fcn.00491420
add esp, 8
mov dword [ebp - 0x8c], eax
jmp 0x496c88
mov eax, dword [ebp - 0x98]
cmp byte [eax + 0x11], 0
je 0x496c88
cmp word [ebp - 0xb8], 0
jne 0x496c88
xor esi, esi
cmp dword [ebp - 0x90], esi
jle 0x496c88
mov edi, dword [ebp - 0x90]
mov ebx, eax
mov eax, dword [ebp + esi*4 - 0x100]
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x48]
lea edx, [ebp - 0x8c]
push edx
movzx edx, byte [ecx + 8]
push eax
movzx eax, byte [ecx + 9]
shl edx, 8
or eax, edx
movzx edx, byte [ecx + 0xa]
movzx ecx, byte [ecx + 0xb]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
push 5
mov ecx, ebx
call fcn.0048c030
inc esi
add esp, 0xc
cmp esi, edi
jl 0x496c43
mov esi, dword [ebp - 0x90]
cmp esi, dword [ebp - 0xac]
jge 0x496d05
mov edi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp + esi*4 - 0xe0]
test ecx, ecx
jne 0x496cbf
mov edx, dword [eax + 0x48]
mov ecx, dword [eax + 0x34]
push edx
push ecx
call fcn.00491420
add esp, 8
mov ecx, eax
inc esi
cmp esi, edi
jl 0x496ca2
mov dword [ebp - 0x8c], ecx
jmp 0x496d05
push 0x5246cc
push 0xe9c3
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004681e0
lea edx, [edi*4 + 4]
push edx
lea eax, [ebp - 0xe0]
push 0
push eax
mov dword [ebp - 0x8c], 0xb
call fcn.004bad00
add esp, 0x1c
mov esi, dword [ebp - 0xb4]
call fcn.00452560
xor esi, esi
mov dword [ebp - 0x88], esi
cmp dword [ebp - 0xac], esi
jle 0x496dfd
jmp 0x496d30
mov eax, dword [ebp + esi*4 - 0xe0]
test eax, eax
je 0x496dea
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x496d8e
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
mov edi, dword [esi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004bd3d0
push edx
mov edx, dword [edi + 0x48]
push eax
push esi
call edx
mov esi, dword [ebp - 0x88]
add esp, 0x10
jmp 0x496d93
call fcn.00447820
cmp dword [ebx + 0x78], 0
jne 0x496dea
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x496dea
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x496de5
test al, al
je 0x496de5
cmp al, 2
jb 0x496dd3
mov eax, dword [0x54e76c]
test eax, eax
je 0x496dbf
call eax
mov eax, ebx
call fcn.0048eff0
mov eax, dword [0x54e770]
test eax, eax
je 0x496de5
call eax
jmp 0x496de5
cmp byte [ebx + 4], 0
jne 0x496de5
push 0
push 0
call fcn.00454780
add esp, 8
call fcn.0045d3c0
inc esi
mov dword [ebp - 0x88], esi
cmp esi, dword [ebp - 0xac]
jl 0x496d30
xor esi, esi
mov dword [ebp - 0x88], esi
cmp dword [ebp - 0x90], esi
jle 0x496ede
mov eax, dword [ebp + esi*4 - 0x100]
test eax, eax
je 0x496ecb
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x496e6f
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
mov edi, dword [esi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004bd3d0
push edx
mov edx, dword [edi + 0x48]
push eax
push esi
call edx
mov esi, dword [ebp - 0x88]
add esp, 0x10
jmp 0x496e74
call fcn.00447820
cmp dword [ebx + 0x78], 0
jne 0x496ecb
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x496ecb
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x496ec6
test al, al
je 0x496ec6
cmp al, 2
jb 0x496eb4
mov eax, dword [0x54e76c]
test eax, eax
je 0x496ea0
call eax
mov eax, ebx
call fcn.0048eff0
mov eax, dword [0x54e770]
test eax, eax
je 0x496ec6
call eax
jmp 0x496ec6
cmp byte [ebx + 4], 0
jne 0x496ec6
push 0
push 0
call fcn.00454780
add esp, 8
call fcn.0045d3c0
inc esi
mov dword [ebp - 0x88], esi
cmp esi, dword [ebp - 0x90]
jl 0x496e11
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8c]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004ba901
mov esp, ebp
pop ebp
ret